pub enum CompletionOutcome {
Response(CompletionResponse),
Stream(Box<dyn Stream<Item = Result<CompletionChunk>> + Send + Unpin>),
HealedJson(HealedJsonResponse),
CoercedSchema(HealedSchemaResponse),
}Expand description
Result of a unified completion call.
Variants§
Response(CompletionResponse)
A standard, non-streaming completion response.
Stream(Box<dyn Stream<Item = Result<CompletionChunk>> + Send + Unpin>)
A streaming response yielding completion chunks.
HealedJson(HealedJsonResponse)
A healed JSON response.
CoercedSchema(HealedSchemaResponse)
A schema-coerced response.
Auto Trait Implementations§
impl Freeze for CompletionOutcome
impl !RefUnwindSafe for CompletionOutcome
impl Send for CompletionOutcome
impl !Sync for CompletionOutcome
impl Unpin for CompletionOutcome
impl UnsafeUnpin for CompletionOutcome
impl !UnwindSafe for CompletionOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more