Skip to content

model.output_schema_mismatch

The model's structured output did not match its schema

Type https://mthds.ai/errors/model.output_schema_mismatch
Family model: The model a step names.
Domain runtime: nobody could have acted beforehand, so whoever made the call waits, retries or reports the problem
Retry yes: repeating the operation may succeed, after retry_after seconds when the problem gives it
HTTP status 502
Raised as a problem document, sent as the body of an HTTP response or kept in a run's record

What it means

The model's structured answer failed the output schema, after the runtime's own re-asks. Models answer differently from one call to the next, so a new run may succeed.

What to do

Run the method again. If it keeps failing, the method's author can simplify the concept's structure or use a model that follows schemas more closely.

Next steps

A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, whoever made the call, and the second for any other reader.

Reader Kind Detail
The domain's actor retry Run the method again, since another answer may fit.
Any other reader retry Run the method again, since another answer may fit.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

The model '{model}' gave an answer that does not fit the concept '{concept}', after the runtime asked again.

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
model identifier The model.
concept identifier The concept the answer must fit.

See also