pub enum ModelStepOutcome {
Completed {
end_turn: bool,
tool_call_ids: Vec<String>,
usage: TokenUsage,
content: Vec<ModelStepContent>,
},
Failed,
Interrupted,
Retrying,
}Expand description
Provider-neutral outcome of a completed model step.
Variants§
Completed
Failed
Interrupted
Retrying
The response stream failed and the logical step will restart with a fresh ID.
Trait Implementations§
Source§impl Clone for ModelStepOutcome
impl Clone for ModelStepOutcome
Source§fn clone(&self) -> ModelStepOutcome
fn clone(&self) -> ModelStepOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelStepOutcome
impl Debug for ModelStepOutcome
Source§impl<'de> Deserialize<'de> for ModelStepOutcome
impl<'de> Deserialize<'de> for ModelStepOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelStepOutcome
Source§impl PartialEq for ModelStepOutcome
impl PartialEq for ModelStepOutcome
Source§impl Serialize for ModelStepOutcome
impl Serialize for ModelStepOutcome
impl StructuralPartialEq for ModelStepOutcome
Auto Trait Implementations§
impl Freeze for ModelStepOutcome
impl RefUnwindSafe for ModelStepOutcome
impl Send for ModelStepOutcome
impl Sync for ModelStepOutcome
impl Unpin for ModelStepOutcome
impl UnsafeUnpin for ModelStepOutcome
impl UnwindSafe for ModelStepOutcome
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