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
Sometimes the LLM will respond with a malformed object when using structure output with LangChain. To compensate for this, we should use Zod to validate the response.
Additionally, we can add a maxRetry config value that will automatically attempt to retry the request until response matches the expected shape.
The text was updated successfully, but these errors were encountered:
Describe the request
Sometimes the LLM will respond with a malformed object when using structure output with LangChain. To compensate for this, we should use Zod to validate the response.
Additionally, we can add a maxRetry config value that will automatically attempt to retry the request until response matches the expected shape.
The text was updated successfully, but these errors were encountered: