[]
AI工具返回对象。
public class AIToolResponse : AIResponse
构造方法。
public AIToolResponse(ChatMessageParam assistantChatMessage, Dictionary<string, AIToolFunctionCallResponse> functionCalls)
| 类型 | 名称 | 描述 |
|---|---|---|
| ChatMessageParam | assistantChatMessage | AI助手消息参数 |
| System.Collections.Generic.Dictionary<TKey, TValue><string, AIToolFunctionCallResponse> | functionCalls | AI工具函数调用参数返回对象 |
AI助手消息参数。
public ChatMessageParam AssistantChatMessage { get; set; }
| 类型 | 描述 |
|---|---|
| ChatMessageParam |
key: ToolCallId value: FunctionName and Arguments dictionary AI工具函数调用参数。
public Dictionary<string, AIToolFunctionCallResponse> FunctionCalls { get; set; }
| 类型 | 描述 |
|---|---|
| System.Collections.Generic.Dictionary<TKey, TValue><string, AIToolFunctionCallResponse> |
AI工具类型。
public override string Type { get; }
| 类型 | 描述 |
|---|---|
| string |