SchemaValidationException

Thrown when a model's response doesn't conform to the evaluation's schema.

The model already answered — it just produced a shape that doesn't match — so this is a different failure than an error thrown by ModelAdapter.respond itself. An ModelAdapter.retryDecision implementation can test for this type to retry it on a different schedule than a network or timeout error. The constructor is public so that branch can be unit-tested.

Parameters

cause

The error describing what didn't conform.

Constructors

Link copied to clipboard
constructor(cause: Throwable)

Properties

Link copied to clipboard
open override val cause: Throwable

Inherited properties

Link copied to clipboard
open val message: String?