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

StreamingToolCallUpdate Class

Definition

Represents an incremental update to a streaming tool call that is part of a streaming chat completions choice.

public abstract class StreamingToolCallUpdate
type StreamingToolCallUpdate = class
Public MustInherit Class StreamingToolCallUpdate
Inheritance
StreamingToolCallUpdate
Derived

Remarks

This type encapsulates the payload located in e.g. $.choices[0].delta.tool_calls[] in the REST API schema.

To differentiate between parallel streaming tool calls within a single streaming choice, use the value of the ToolCallIndex property.

Please note StreamingToolCallUpdate 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: StreamingFunctionToolCallUpdate.

Properties

Id

Gets the ID associated with with the streaming tool call.

ToolCallIndex

Gets the tool call index associated with this StreamingToolCallUpdate.

Applies to