Expand description
Error types for the structured-output subsystem.
The implementation of get_structured lives in gglib-agent, where
futures-util and stream-collection helpers are already available.
This module holds only the shared error type so that callers in any crate
can pattern-match on failure modes without depending on gglib-agent.
§Variants
| Variant | Meaning |
|---|---|
StructuredOutputError::Stream | The LLM stream itself failed (network, timeout, etc.) |
StructuredOutputError::Parse | The collected text was not valid JSON or did not match the expected type |
StructuredOutputError::MaxRetriesExceeded | All retry attempts were exhausted without a successful parse |
Enums§
- Structured
Output Error - Failure modes for a structured-output LLM call.