camel.types.agents 包#

子模块#

camel.types.agents.tool_calling_record 模块#

class camel.types.agents.tool_calling_record.ToolCallingRecord(*, tool_name: str, args: Dict[str, Any], result: Any, tool_call_id: str)[来源]#

基类:BaseModel

对话中调用的工具的历史记录。

func_name#

被调用工具的名称。

Type:

字符串

args#

传递给工具的参数字典。

Type:

字典[字符串, 任意类型]

result#

调用此工具的执行结果。

Type:

任何

tool_call_id#

工具调用的ID(如果可用)。

Type:

字符串

args: Dict[str, Any]#
as_dict() dict[str, Any][来源]#

以字典形式返回工具调用记录。

Returns:

工具调用记录以字典形式呈现。

Return type:

字典[字符串, 任意类型]

model_config: ClassVar[ConfigDict] = {}#

模型的配置,应该是一个符合[ConfigDict][pydantic.config.ConfigDict]的字典。

result: Any#
tool_call_id: str#
tool_name: str#

模块内容#

class camel.types.agents.ToolCallingRecord(*, tool_name: str, args: Dict[str, Any], result: Any, tool_call_id: str)[来源]#

基类:BaseModel

对话中调用的工具的历史记录。

func_name#

被调用工具的名称。

Type:

字符串

args#

传递给工具的参数字典。

Type:

字典[字符串, 任意类型]

result#

调用此工具的执行结果。

Type:

任何

tool_call_id#

工具调用的ID(如果可用)。

Type:

字符串

args: Dict[str, Any]#
as_dict() dict[str, Any][来源]#

以字典形式返回工具调用记录。

Returns:

工具调用记录以字典形式呈现。

Return type:

字典[字符串, 任意类型]

model_config: ClassVar[ConfigDict] = {}#

模型的配置,应该是一个符合[ConfigDict][pydantic.config.ConfigDict]的字典。

result: Any#
tool_call_id: str#
tool_name: str#