orxtra v0.13.0 /protocols.src.orxtra.protocols._types._tool
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

Tool
FieldTypeDefault
namestr
descriptionstr
parametersdict[str, Any]
executeCallable[[dict[str, Any]], Awaitable[ToolOutput[Any]]]
suspendingboolFalse
namespacestr''
tagsfrozenset[str]frozenset()
deferredboolFalse
locationToolLocationToolLocation.ANYWHERE
capabilitiesfrozenset[ToolCapability]frozenset()

#ToolError

python
class ToolError(Exception):
Search