Skip to main content
View module source on GitHub

ToolCallConfig

Tool call config. This class represents a tool call config.

ToolCallConfigDict

Tool call config dict. This class represents a tool call config dictionary.

get_tool_call_config_dict

Convert a tool call config to a tool call config dict else return the config. Arguments: Returns:

ToolCallError

Tool call error. This class represents a tool call error.

get_tool_call_error_dict

Convert a tool call error to a tool call error dict else return the error. Arguments: Returns: dict[str, Any]: The tool call error dict.

ToolCall

Tool call. This class represents a tool call.

__init__

Initialize a tool call. Arguments:

update

Update the tool call. Arguments:

update_

Update the tool call. Arguments:

result_

Update the tool call. Arguments:

attach_evaluators

Attach evaluators to the tool call. Arguments:

result

Update the tool call. Arguments:

error

Add an error to the tool call. Arguments:

error_

Add an error to the tool call. Arguments:

data

Get the data for the tool call. Returns: Dict[str, Any]: The data for the tool call.