https://retellai.com/?utm_source=discord&utm_medium=seo logo
Issue with Custom Tool Type in Retell LLM API
# ❓・bug-report
a
I’m using the Create Retell LLM API with a custom tool type. It was working previously, but now I’m encountering the following error:
Copy code
{
  "error_message": "request/body/states/1/tools/0/type must be equal to one of the allowed values: end_call, transfer_call, check_availability_cal, book_appointment_cal, press_digit, send_sms, extract_dynamic_variable, etc. Also, required properties such as 'transfer_destination', 'cal_api_key', 'event_type_id', 'sms_content', or 'variables' may be missing, or the object does not match one of the expected schemas."
}
It seems like the tool type I'm using is no longer recognized or allowed by the API, or it’s missing some required fields. Could you please clarify if custom tool types are still supported or if there has been a recent schema change?
a
I’m using the API endpoint with a
type
set to a custom value under
states > tools
. It was working previously, but I'm now receiving an error.
o
can you show me the request.
a
here is the json request
s
the blocker is type:"custom". type is validated against a fixed enum.
a
Yes, but it uses "custom" value in the enum
Is there anything missing on my end that's causing this error, even though "custom" is included in the enum?
@shahretell Any suggestions?
f
@Omar Ashraf | Community Lead / @shahretell - I'm seeing this as well. Nothing changed on our end. What is the issue? Was there a breaking change to tool types?
s
@shahretell @Omar Ashraf | Community Lead I am still getting this same error
o
Try this format : { "model": "gpt-4o-mini", "general_tools": [ { "type": "custom", "name": "test", "description": "est", "execution_message_description": "e.", "speak_after_execution": true, "speak_during_execution": true, "parameters": { "type": "object", "properties": { "address": { "type": "string", "description": "" , "enum":["omar"] } }, "required": [ "address" ] }, "url": "https://test.me" } ] }