You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's to take advantage of function calling to have greater assurance of the output matching the schema vs. prompt engineering - this could use an update though as we've updated the best way to do this!
https://github.com/langchain-ai/langchain-nextjs-template/blob/03e4a849c45573812b853383f946bfa56c4cf339/app/api/chat/structured_output/route.ts#L69C23-L69C38
I can't tell why you need this. What is the benefit of this approach over
StructuredOutputParser.fromZodSchema
as described in https://js.langchain.com/docs/modules/model_io/output_parsers/types/structured?The text was updated successfully, but these errors were encountered: