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 '{
"parameters": "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
"version_description": "Fetches current weather and uses celsius, fahrenheit, or kelvin 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": "00183a3f-79ba-413d-9f3b-609864268bea",
"version": 1,
"version_type": "FIXED",
"name": "get_current_weather",
"created_on": 1715277014228,
"modified_on": 1715277602313,
"parameters": "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
"version_description": "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.",
"fallback_content": "Unable to fetch current weather.",
"description": "This tool is for getting the current weather."
}