次の方法で共有


OpenAIPromptExecutionSettings.ToolCallBehavior Property

Definition

Gets or sets the behavior for how tool calls are handled.

public Microsoft.SemanticKernel.Connectors.OpenAI.ToolCallBehavior? ToolCallBehavior { get; set; }
member this.ToolCallBehavior : Microsoft.SemanticKernel.Connectors.OpenAI.ToolCallBehavior with get, set
Public Property ToolCallBehavior As ToolCallBehavior

Property Value

Remarks

For all options where an instance is provided, auto-invoke behavior may be selected. If the service sends a request for a function call, if auto-invoke has been requested, the client will attempt to resolve that function from the functions available in the Kernel, and if found, rather than returning the response back to the caller, it will handle the request automatically, invoking the function, and sending back the result. The intermediate messages will be retained in the ChatHistory if an instance was provided.

Applies to