Create Tool

POST
/v1/tools/

Create a new tool

Request

This endpoint expects an object.
source_codestringRequired

The source code of the function.

namestringOptional

The name of the function (auto-generated from source_code if not provided).

descriptionstringOptional

The description of the tool.

tagslist of stringsOptional

Metadata tags.

modulestringOptional

The source code of the function.

source_typestringOptionalDefaults to python

The source type of the function.

json_schemamap from strings to anyOptional

The JSON schema of the function (auto-generated from source_code if not provided)

return_char_limitintegerOptionalDefaults to 6000

The maximum number of characters in the response.

Response

Successful Response

source_codestring

The source code of the function.

idstringOptionalformat: "^tool-[a-fA-F0-9]{8}"

The human-friendly ID of the Tool

descriptionstringOptional

The description of the tool.

source_typestringOptional

The type of the source code.

modulestringOptional

The module of the function.

organization_idstringOptional

The unique identifier of the organization associated with the tool.

namestringOptional

The name of the function.

tagslist of stringsOptional

Metadata tags.

json_schemamap from strings to anyOptional

The JSON schema of the function.

return_char_limitintegerOptionalDefaults to 6000

The maximum number of characters in the response.

created_by_idstringOptional

The id of the user that made this Tool.

last_updated_by_idstringOptional

The id of the user that made this Tool.

Errors