camel.types.agents package#
Submodules#
camel.types.agents.tool_calling_record module#
- class camel.types.agents.tool_calling_record.ToolCallingRecord(*, tool_name: str, args: Dict[str, Any], result: Any, tool_call_id: str)[source]#
Bases:
BaseModel
Historical records of tools called in the conversation.
- func_name#
The name of the tool being called.
- Type:
str
- args#
The dictionary of arguments passed to the tool.
- Type:
Dict[str, Any]
- result#
The execution result of calling this tool.
- Type:
Any
- tool_call_id#
The ID of the tool call, if available.
- Type:
str
- args: Dict[str, Any]#
- as_dict() dict[str, Any] [source]#
Returns the tool calling record as a dictionary.
- Returns:
The tool calling record as a dictionary.
- Return type:
dict[str, Any]
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'args': FieldInfo(annotation=Dict[str, Any], required=True), 'result': FieldInfo(annotation=Any, required=True), 'tool_call_id': FieldInfo(annotation=str, required=True), 'tool_name': FieldInfo(annotation=str, required=True)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- result: Any#
- tool_call_id: str#
- tool_name: str#
Module contents#
- class camel.types.agents.ToolCallingRecord(*, tool_name: str, args: Dict[str, Any], result: Any, tool_call_id: str)[source]#
Bases:
BaseModel
Historical records of tools called in the conversation.
- func_name#
The name of the tool being called.
- Type:
str
- args#
The dictionary of arguments passed to the tool.
- Type:
Dict[str, Any]
- result#
The execution result of calling this tool.
- Type:
Any
- tool_call_id#
The ID of the tool call, if available.
- Type:
str
- args: Dict[str, Any]#
- as_dict() dict[str, Any] [source]#
Returns the tool calling record as a dictionary.
- Returns:
The tool calling record as a dictionary.
- Return type:
dict[str, Any]
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'args': FieldInfo(annotation=Dict[str, Any], required=True), 'result': FieldInfo(annotation=Any, required=True), 'tool_call_id': FieldInfo(annotation=str, required=True), 'tool_name': FieldInfo(annotation=str, required=True)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- result: Any#
- tool_call_id: str#
- tool_name: str#