[BUG] structured output of the final answer. #886
Unanswered
vitalyshalumov
asked this question in
Q&A
Replies: 2 comments
-
If helpful, I create a schema tool and attach it to an agent. It instructs the agent to creates its final output leveraging the schema tool. probably not the ideal solution but its been working consistently for me. |
Beta Was this translation helpful? Give feedback.
0 replies
-
what worked for me was updating the system prompt to specify the structure of the output I was expecting and create a custom final answer tool. this tool would take the answer as a string that is actually a json and load it before returning it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to get a structured output ofbthe final answer, lets say a number. If i limit the model with grammar i am killing the reasoning of the agent.
How can i get both a react agent and structured final answer?
Is thi possible for bith code and tool calling agents?
Beta Was this translation helpful? Give feedback.
All reactions