Tools
ModelsExpand Collapse
class Tool: …
Representation of a tool, which is a function that can be called by the agent.
default_requires_approval: Optional[bool]
Default value for whether or not executing this tool requires approval.
enable_parallel_execution: Optional[bool]
If set to True, then this tool will potentially be executed concurrently with other tools. Default False.
class ToolCreate: …
default_requires_approval: Optional[bool]
Whether or not to require approval before executing this tool.
enable_parallel_execution: Optional[bool]
If set to True, then this tool will potentially be executed concurrently with other tools. Default False.
json_schema: Optional[Dict[str, object]]
The JSON schema of the function (auto-generated from source_code if not provided)
class ToolReturnMessage: …
A message representing the return value of a tool call (generated by Letta executing the requested tool).
Args: id (str): The ID of the message date (datetime): The date the message was created in ISO format name (Optional[str]): The name of the sender of the message tool_return (str): The return value of the tool (deprecated, use tool_returns) status (Literal[“success”, “error”]): The status of the tool call (deprecated, use tool_returns) tool_call_id (str): A unique identifier for the tool call that generated this message (deprecated, use tool_returns) stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation (deprecated, use tool_returns) stderr (Optional[List(str)]): Captured stderr from the tool invocation (deprecated, use tool_returns) tool_returns (Optional[List[ToolReturn]]): List of tool returns for multi-tool support
otid: Optional[str]
The offline threading id (OTID). Set by the client to deduplicate requests. Used for idempotency in background streaming mode — each message in a request must have a unique OTID. Retries of the same request should reuse the same OTIDs.
tool_return: Union[List[ToolReturnUnionMember0], str]
The tool return value - either a string or list of content parts (text/image)
List[ToolReturnUnionMember0]
class ToolSearchResult: …
Result from a tool search operation.
The matched tool.
default_requires_approval: Optional[bool]
Default value for whether or not executing this tool requires approval.
enable_parallel_execution: Optional[bool]
If set to True, then this tool will potentially be executed concurrently with other tools. Default False.
List[ToolSearchResult]
The matched tool.
default_requires_approval: Optional[bool]
Default value for whether or not executing this tool requires approval.
enable_parallel_execution: Optional[bool]
If set to True, then this tool will potentially be executed concurrently with other tools. Default False.
Skip to content