ToolChoiceObjectMCP 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 tool on a remote MCP server.
public class ToolChoiceObjectMCP : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObject, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObjectMCP>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObjectMCP>
type ToolChoiceObjectMCP = class
inherit ToolChoiceObject
interface IUtf8JsonSerializable
interface IJsonModel<ToolChoiceObjectMCP>
interface IPersistableModel<ToolChoiceObjectMCP>
Public Class ToolChoiceObjectMCP
Inherits ToolChoiceObject
Implements IJsonModel(Of ToolChoiceObjectMCP), IPersistableModel(Of ToolChoiceObjectMCP)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| ToolChoiceObjectMCP() |
Initializes a new instance of ToolChoiceObjectMCP for deserialization. |
| ToolChoiceObjectMCP(String) |
Initializes a new instance of ToolChoiceObjectMCP. |
| ToolChoiceObjectMCP(ToolChoiceObjectType, IDictionary<String,BinaryData>, String, String) |
Initializes a new instance of ToolChoiceObjectMCP. |
Properties
| Name | Description |
|---|---|
| Name |
The name of the tool to call on the server. |
| ServerLabel |
The label of the MCP server to use. |
| Type |
Gets or sets the type. (Inherited from ToolChoiceObject) |
Methods
| Name | Description |
|---|---|
| DeserializeToolChoiceObjectMCP(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |