[]
        
立即下载
(Showing Draft Content)

GrapeCity.Forguncy.Commands.AIToolResponse

类 AIToolResponse

AI工具返回对象。

继承
object
AIToolResponse
继承成员
命名空间: GrapeCity.Forguncy.Commands
程序集: Forguncy.Commands.dll
语法
public class AIToolResponse : AIResponse

构造函数

AIToolResponse(ChatMessageParam, Dictionary<string, AIToolFunctionCallResponse>)

构造方法。

声明
public AIToolResponse(ChatMessageParam assistantChatMessage, Dictionary<string, AIToolFunctionCallResponse> functionCalls)
参数
类型 名称 描述
ChatMessageParam assistantChatMessage

AI助手消息参数

System.Collections.Generic.Dictionary<TKey, TValue><string, AIToolFunctionCallResponse> functionCalls

AI工具函数调用参数返回对象

属性

AssistantChatMessage

AI助手消息参数。

声明
public ChatMessageParam AssistantChatMessage { get; set; }
属性值
类型 描述
ChatMessageParam

FunctionCalls

key: ToolCallId value: FunctionName and Arguments dictionary AI工具函数调用参数。

声明
public Dictionary<string, AIToolFunctionCallResponse> FunctionCalls { get; set; }
属性值
类型 描述
System.Collections.Generic.Dictionary<TKey, TValue><string, AIToolFunctionCallResponse>

Type

AI工具类型。

声明
public override string Type { get; }
属性值
类型 描述
string
重载
AIResponse.Type