https://retellai.com/?utm_source=discord&utm_medium=seo logo
custom function Error with VALID JSON Schema
# ❓・bug-report
k
I checked with the example schemas provided, they return the same error on updating twice. Retell never called the API. Can Retell call a backend without domain name and just http? Schema used: { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Generated schema for Root", "type": "object", "properties": { "events": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "summary": { "type": "string" }, "location": { "type": "string" } }, "required": [ "id", "summary", "location" ] } } }, "required": [ "events" ] }
r
Hey @komalvendidandi... not from Retell (but a certified partner), and just saw this. this does not look correct at all. you should not have $schema, title, type, etc.? These need to be modelled off of only the parameters section that you would use with, for example, OpenAI. See the example in step 2 here, and model the parameters off of this: https://platform.openai.com/docs/guides/function-calling