Important: responseFormat
requires the model to support .withStructuredOutput()
.
Note: The graph will make a separate call to the LLM to generate the structured response after the agent loop is finished. This is not the only strategy to get structured responses, see more options in this guide.
Create a multi-agent supervisor.