你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatRequestToolMessage Constructors

Definition

Overloads

ChatRequestToolMessage(String)

Source:
ChatRequestToolMessage.cs

Initializes a new instance of ChatRequestToolMessage.

public ChatRequestToolMessage(string toolCallId);
new Azure.AI.Inference.ChatRequestToolMessage : string -> Azure.AI.Inference.ChatRequestToolMessage
Public Sub New (toolCallId As String)

Parameters

toolCallId
String

The ID of the tool call resolved by the provided content.

Exceptions

toolCallId is null.

Applies to

ChatRequestToolMessage(String, String)

Source:
ChatRequestToolMessage.cs

Initializes a new instance of ChatRequestToolMessage.

public ChatRequestToolMessage(string content, string toolCallId);
new Azure.AI.Inference.ChatRequestToolMessage : string * string -> Azure.AI.Inference.ChatRequestToolMessage
Public Sub New (content As String, toolCallId As String)

Parameters

content
String

The content of the message.

toolCallId
String

The ID of the tool call resolved by the provided content.

Exceptions

toolCallId is null.

Applies to