https://retellai.com/?utm_source=discord&utm_medium=seo logo
Under the structured output option for the LLM, I ...
# ❓・ai-evy-support
d
@AI Evy Under the structured output option for the LLM, I see that the LLM will generate responses that will adhere to the supplied JSON Schema. Where do I provide the JSON schema? Is it in the custom function? Or do I specify it somewhere else?
a
Thanks for tagging me @dhiraj6401. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, Structured Output ensures that LLM responses strictly follow predefined schemas, particularly important for reliable function calling [(1) ]() . When enabled, the model is constrained to output only valid function calls with all required parameters . However, the specific location where you provide the JSON schema for Structured Output is not detailed in the available sources. The documentation mentions that Structured Output ensures responses follow your provided JSON Schema [(2) ]() , but doesn't specify the exact configuration location. For custom functions, you define parameters using JSON schema format in the custom function configuration [(3) ]() :
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
But this appears to be specifically for custom function parameters rather than the overall Structured Output schema. I don't have the specific details about where to configure the JSON schema for the Structured Output feature in the available sources. For detailed guidance on this configuration, I'd recommend: 1. Visit [Contact Sales]() 2. Visit [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Configure LLM Options](https://docs.retellai.com/build/llm-options) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
2 Views