Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Tool Call functionality for Components integration.
@deprecated( "This class will be removed in a future version. Use {} which is TypedDict." ) @dataclass class ToolCallConfig()
class ToolCallConfigDict(TypedDict)
def get_tool_call_config_dict( config: Union[ToolCallConfig, ToolCallConfigDict]) -> ToolCallConfigDict
config
[ToolCallConfigDict](/sdk/python/references/logger/components/tool_call)
@deprecated( "This class will be removed in a future version. Use {} which is TypedDict instead." ) @dataclass class ToolCallError()
def get_tool_call_error_dict( error: Union[ToolCallError, ToolCallErrorDict]) -> dict[str, Any]
error
class ToolCall(BaseContainer)
def __init__(config: Union[ToolCallConfig, ToolCallConfigDict], writer: LogWriter)
writer
def update(data: Dict[str, Any])
data
@staticmethod def update_(writer: LogWriter, id: str, data: Dict[str, Any])
id
@staticmethod def result_(writer: LogWriter, id: str, result: str)
result
def attach_evaluators(evaluators: List[str])
evaluators
def result(result: str)
def error(error: ToolCallError)
@staticmethod def error_(writer: LogWriter, id: str, error: Union[ToolCallError, ToolCallErrorDict])
def data() -> Dict[str, Any]
Was this page helpful?