How to fix anthropic (Claude Opus 4 output)

I have data from a form that I want the ai to automatically format into a description object and a title object. The issue is the output is json, but it is within an output which does not allow me to use expressions to pull info from the output. How do I prompt the llm to output the right way?


Are you using a structured output parser?

In the agent, there is a checkbox that allows you to enable require a specific output format. That will then allow you to attach a structured output courser where you can specify the output format you require

1 Like