ToolChoiceObjectFunction Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Use this option to force the model to call a specific function.
public class ToolChoiceObjectFunction : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObject, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObjectFunction>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObjectFunction>
type ToolChoiceObjectFunction = class
inherit ToolChoiceObject
interface IUtf8JsonSerializable
interface IJsonModel<ToolChoiceObjectFunction>
interface IPersistableModel<ToolChoiceObjectFunction>
Public Class ToolChoiceObjectFunction
Inherits ToolChoiceObject
Implements IJsonModel(Of ToolChoiceObjectFunction), IPersistableModel(Of ToolChoiceObjectFunction)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| ToolChoiceObjectFunction() |
Initializes a new instance of ToolChoiceObjectFunction for deserialization. |
| ToolChoiceObjectFunction(String) |
Initializes a new instance of ToolChoiceObjectFunction. |
| ToolChoiceObjectFunction(ToolChoiceObjectType, IDictionary<String,BinaryData>, String) |
Initializes a new instance of ToolChoiceObjectFunction. |
Properties
| Name | Description |
|---|---|
| Name |
The name of the function to call. |
| Type |
Gets or sets the type. (Inherited from ToolChoiceObject) |
Methods
| Name | Description |
|---|---|
| DeserializeToolChoiceObjectFunction(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |