Create tool version | Hume API

Updates a Tool by creating a new version of the Tool.

Refer to our tool use guide for comprehensive instructions on defining and integrating tools into EVI.

Authentication

X-Hume-Api-Keystring

API Key authentication via header

Path parameters

idstringRequiredformat: "uuid"

Identifier for a Tool. Formatted as a UUID.

Request

This endpoint expects an object.

parametersstringRequired

Stringified JSON defining the parameters used by this version of the Tool.

These parameters define the inputs needed for the Tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the Tool receives data in the expected format.

descriptionstring or nullOptional

An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function.

fallback_contentstring or nullOptional

Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the Tool errors.

version_descriptionstring or nullOptional

An optional description of the Tool version.

Response

Created

created_onlong

The timestamp when the first version of this tool was created.

idstring

Identifier for a Tool. Formatted as a UUID.

modified_onlong

The timestamp when this version of the tool was created.

namestring

Name of the built-in tool to use. Hume supports the following built-in tools:

For more information, see our guide on using built-in tools.

parametersstring

Stringified JSON defining the parameters used by this version of the Tool.

tool_typeenum

Allowed values:BUILTINFUNCTION

versioninteger

Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique.

version_typeenum

Allowed values:FIXEDLATEST

descriptionstring or null

An optional description of what the Tool does, used by the supplemental LLM to choose when and how to call the function.

fallback_contentstring or null

version_descriptionstring or null

An optional description of the Tool version.