Skip to content

Sometimes validation error with with_structured_output(Class) #26619

Answered by dosubot bot
leoniewgnr asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @leoniewgnr! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together!

I found a similar solved discussion that might be relevant to your issue: Unexpected string validation error in Pydantic output parser. This discussion addresses validation errors related to the PydanticOutputParser expecting a specific format [1].

The with_structured_output(Act) method sometimes fails with validation errors in the Act class because the input provided to the model does not conform to the specified input_schema. The with_structured_output method ensures that the model's output adheres to the specified schema, and if the output does not match, valida…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leoniewgnr
Comment options

Answer selected by leoniewgnr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant