Unverified50% confidenceFactExact time
When using a pydantic model as the schema for with_structured_output, parsing failure throws an OutputParserException, or when include_raw=True, writes the error into the parsing_error field, making the failure visible.
1
Sources
50%
Confidence
Long-term
Relevance
11/13/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedPydantic errors often occur at tool call boundaries; you can use model_validate_json with a tolerant mode, or set default values for optional fields to avoid overall failure.78% similarUnverifiedThe on_failure option of ModelRetryMiddleware can be set to continue to skip failed items in batch scenarios, or to error in multi-step agents to let the upper-level orchestration logic take over.75% similarUnverifiedAn output parser filling in default values when it encounters a malformed response leaves downstream code unable to distinguish whether a field was produced by the model or fabricated by the parser, which is a silent failure mode.74% similarUnverifiedUsing strong type constraints can detect data structure mismatch issues at the compilation stage, reducing runtime errors.73% similarVerifiedFailure modes (e.g., {"error": ...}) should be explicitly defined and validated at the code layer, transforming drift from silent wrong answers into catchable exceptions.71% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1167608API
curl https://kongchang.com/api/v1/knowledge/claims/1167608MCP
get_claim(id=1167608)