ToolCallingRecord

class ToolCallingRecord(BaseModel):

Historical records of tools called in the conversation.

Parameters:

  • func_name (str): The name of the tool being called.
  • args (Dict[str, Any]): The dictionary of arguments passed to the tool.
  • result (Any): The execution result of calling this tool.
  • tool_call_id (str): The ID of the tool call, if available.

str

def __str__(self):

Returns:

str: Modified string to represent the tool calling.

as_dict

def as_dict(self):

Returns:

dict[str, Any]: The tool calling record as a dictionary.