Tools
Upsert Base Tools
ModelsExpand Collapse
class NpmRequirement: …
name: str
Name of the npm package.
version: Optional[str]
Optional version of the package, following semantic versioning.
class PipRequirement: …
name: str
Name of the pip package.
version: Optional[str]
Optional version of the package, following semantic versioning.
class Tool: …
Representation of a tool, which is a function that can be called by the agent.
id: str
The human-friendly ID of the Tool
args_json_schema: Optional[Dict[str, object]]
The args JSON schema of the function.
created_by_id: Optional[str]
The id of the user that made this Tool.
default_requires_approval: Optional[bool]
Default value for whether or not executing this tool requires approval.
description: Optional[str]
The description of the 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.
last_updated_by_id: Optional[str]
The id of the user that made this Tool.
metadata: Optional[Dict[str, object]]
A dictionary of additional metadata for the tool.
name: Optional[str]
The name of the function.
Optional list of npm packages required by this tool.
name: str
Name of the npm package.
version: Optional[str]
Optional version of the package, following semantic versioning.
Optional list of pip packages required by this tool.
name: str
Name of the pip package.
version: Optional[str]
Optional version of the package, following semantic versioning.
return_char_limit: Optional[int]
The maximum number of characters in the response.
source_code: Optional[str]
The source code of the function.
source_type: Optional[str]
The type of the source code.
tags: Optional[List[str]]
Metadata tags.
tool_type: Optional[ToolType]
The type of the tool.
class ToolCreate: …
source_code: str
The source code of the function.
args_json_schema: Optional[Dict[str, object]]
The args JSON schema of the function.
default_requires_approval: Optional[bool]
Whether or not to require approval before executing this tool.
description: Optional[str]
The description of the 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)
Optional list of npm packages required by this tool.
name: str
Name of the npm package.
version: Optional[str]
Optional version of the package, following semantic versioning.
Optional list of pip packages required by this tool.
name: str
Name of the pip package.
version: Optional[str]
Optional version of the package, following semantic versioning.
return_char_limit: Optional[int]
The maximum number of characters in the response.
source_type: Optional[str]
The source type of the function.
tags: Optional[List[str]]
Metadata tags.
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
Deprecatedstatus: Literal["success", "error"]
message_type: Optional[Literal["tool_return_message"]]
The type of the message.
status: Literal["success", "error"]
type: Optional[Literal["tool"]]
The message type to be created.