Module structured_llm

Module structured_llm 

Source
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

VariantMeaning
StructuredOutputError::StreamThe LLM stream itself failed (network, timeout, etc.)
StructuredOutputError::ParseThe collected text was not valid JSON or did not match the expected type
StructuredOutputError::MaxRetriesExceededAll retry attempts were exhausted without a successful parse

Enums§

StructuredOutputError
Failure modes for a structured-output LLM call.