Partager via


AzureAIInferencePromptExecutionSettings.Tools Property

Definition

The available tool definitions that the chat completions request can use, including caller-defined functions. Please note ChatCompletionsToolDefinition is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include Azure.AI.Inference.ChatCompletionsFunctionToolDefinition.

[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
[System.Text.Json.Serialization.JsonPropertyName("tools")]
public System.Collections.Generic.IList<Azure.AI.Inference.ChatCompletionsToolDefinition> Tools { get; set; }
[<System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)>]
[<System.Text.Json.Serialization.JsonPropertyName("tools")>]
member this.Tools : System.Collections.Generic.IList<Azure.AI.Inference.ChatCompletionsToolDefinition> with get, set
Public Property Tools As IList(Of ChatCompletionsToolDefinition)

Property Value

Attributes

Applies to