curl --location --request POST 'http://dev-cn.your-api-server.com/v0/evi/tools' \
--header 'X-Hume-Api-Key: <apiKey>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "get_current_weather",
"parameters": "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
"version_description": "Fetches current weather and uses celsius or fahrenheit based on location of user.",
"description": "This tool is for getting the current weather.",
"fallback_content": "Unable to fetch current weather."
}'
{
"tool_type": "FUNCTION",
"id": "aa9b71c4-723c-47ff-9f83-1a1829e74376",
"version": 0,
"version_type": "FIXED",
"name": "get_current_weather",
"created_on": 1715275452390,
"modified_on": 1715275452390,
"parameters": "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
"version_description": "Fetches current weather and uses celsius or fahrenheit based on location of user.",
"fallback_content": "Unable to fetch current weather.",
"description": "This tool is for getting the current weather."
}