POST
/
sdk
/
v1
/
tools

Body

application/json
name
string
required

The name of the tool to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

description
string
required

A description of what the tool does, used by the model to choose when and how to call the tool.

parameters
object
required

The parameters the functions accepts, described as a JSON Schema object. This schema is designed to match the TypeScript Record<string, unknown>, allowing for any properties with values of any type.

Response

201 - application/json
id
string
required

The initial messages to be included with your call to the LLM API.

name
string
required

The name of the tool to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

description
string
required

A description of what the tool does, used by the model to choose when and how to call the tool.

parameters
object
required

The parameters the functions accepts, described as a JSON Schema object. This schema is designed to match the TypeScript Record<string, unknown>, allowing for any properties with values of any type.