Create Tool
Create a new tool
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Query Parameters
Body
The source code of the function.
The description of the tool.
The type of the source code.
The module of the function.
The unique identifier of the user associated with the function.
The unique identifier of the tool. If this is not provided, it will be autogenerated.
The name of the function (auto-generated from source_code if not provided).
Metadata tags.
The JSON schema of the function (auto-generated from source_code if not provided)
Whether the tool is a terminal tool (allow requesting heartbeats).
Response
Representation of a tool, which is a function that can be called by the agent.
Parameters: id (str): The unique identifier of the tool. name (str): The name of the function. tags (List[str]): Metadata tags. source_code (str): The source code of the function. json_schema (Dict): The JSON schema of the function.
The name of the function.
Metadata tags.
The source code of the function.
The description of the tool.
The type of the source code.
The module of the function.
The unique identifier of the user associated with the function.
The human-friendly ID of the Tool
The JSON schema of the function.