Exports
FrameworkMetadata
Mark an explicit output-model field as runtime-owned metadata.FrameworkMetadata[Details] remains a normal Pydantic Details field in
the application’s public result. Harnest omits it from provider-facing
structured output and supplies it after the framework turn completes.
Example
Example
PydanticModel
Example
Example
StructuredOutputError
A configured Pydantic output contract was not satisfied.Example
Example
callable_output_schema
Return a directly or postponed-annotated Pydantic result model.Parameters and example
Parameters and example
framework_metadata_field
Return the single explicit runtime-owned field on an output model.Parameters and example
Parameters and example
provider_output_schema
Derive the output contract a provider may generate for Harnest.Parameters and example
Parameters and example
validate_output_schema
Require a Pydantic model class at an authored schema boundary.Parameters and example
Parameters and example
validate_output_value
Validate Python or JSON text output and redact input values from failures.Parameters and example
Parameters and example
validate_runtime_output
Validate provider output, inject declared metadata, then validate fully.Parameters and example
Parameters and example