Complete API reference for the ToolsRepository class including all methods and properties
configuration
(Optional[Configuration]): SDK configuration. Defaults to environment variables if not provided.functions
register_tool(tool)
tool
(Tool): The tool instance to register.get_tool_by_id(tool_id)
tool_id
(str): Unique identifier of the tool.ModuleException
: If there’s an error accessing the tools repository.should_sync_local_tools()
bool
: True
if synchronization needed, otherwise False
.id
name
configuration
ainvoke(agent_id, payload, **kwargs)
agent_id
(str): Identifier for the agent using the tool.payload
(dict): Input data for tool execution.**kwargs
: Additional parameters for the tool invocation.ToolInvocationResult
with execution details and success status.
Example:
invoke(agent_id, payload, **kwargs)
ainvoke()
.
Returns: ToolInvocationResult
with execution details.
set_configuration(config)
config
(dict): Configuration settings for the tool.ToolInvocationResult
: Tool execution result detailsAgent
: Agents that use tools for task executionConfiguration
: SDK configuration