#[non_exhaustive]pub enum ModelCallOutcome {
Generate(Box<GenerateResult>),
Stream(Box<StreamResult>),
}Expand description
Result of a model call as seen by Telemetry::execute_language_model_call.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generate(Box<GenerateResult>)
A non-streaming result.
Stream(Box<StreamResult>)
A streaming result (the stream has not been consumed yet).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ModelCallOutcome
impl !Sync for ModelCallOutcome
impl !UnwindSafe for ModelCallOutcome
impl Freeze for ModelCallOutcome
impl Send for ModelCallOutcome
impl Unpin for ModelCallOutcome
impl UnsafeUnpin for ModelCallOutcome
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