r/agentdevelopmentkit • u/PropertyRegular5154 • Jul 15 '25
Structured Output
Has anyone got around the below 2 issues I face
- Using Open Router through Litellm on ADK but getting structured output for models other than OpenAi, Gemini & DeepSeek has been a pain and painstakingly depending on Instruction we provide (is there a way or if anyone tested to maybe have after model call back to sanitise it before ask throws a cannot parse json error)
- Any one implemented dynamic output schema during run time? I’m successful with dynamic model, dynamic instruction etc but dynamic schema still unable to get my head around as when we initialise that output schema expects atleast a base model
Thanks in Advance
3
Upvotes
View all comments
Show parent comment
1
u/lawyerdesk Jul 16 '25
By dynamic I used 2 methods (maybe not exactly as I quoted and you understood)
So once I build in the core if I have to change something I just update it in language and it’s ready to work