Updated
On this page
Defines Tool (name, description, parameters, execute, location, capabilities) and the generic ToolOutput[T] wrapper pairing structured data with its LLM-readable text; ToolError is the tool-layer exception base.
#protocols.src.orxtra.protocols._types._tool
#protocols.src.orxtra.protocols._types._tool
#ToolOutput
Generic wrapper for typed tool results.
data holds the structured result; text holds the human/LLM-readable rendering.
#Tool
| Field | Type | Default |
|---|---|---|
name | str | |
description | str | |
parameters | dict[str, Any] | |
execute | Callable[[dict[str, Any]], Awaitable[ToolOutput[Any]]] | |
suspending | bool | False |
namespace | str | '' |
tags | frozenset[str] | frozenset() |
deferred | bool | False |
location | ToolLocation | ToolLocation.ANYWHERE |
capabilities | frozenset[ToolCapability] | frozenset() |
#ToolError
python
class ToolError(Exception):