Typed Outputs¶
PyFlue validates structured results with Pydantic v2.
Pass the model to prompt or skill:
Result Delimiters¶
When a result model is provided, PyFlue asks the backend to return JSON between these delimiters:
PyFlue extracts the JSON and validates it with pydantic.TypeAdapter.
Validation Errors¶
If the model returns invalid data, PyFlue asks the backend to repair the
response. The default retry count is 3 and can be configured with
typed_retries in pyflue.toml.
You can override retries for one call: