pub enum StepType {
TextResponse,
ToolCall,
SystemMessage,
Compaction,
Finish,
Unknown,
}Expand description
The high-level type of a step in the agent trajectory.
Variants§
TextResponse
A textual response from the model.
ToolCall
A tool invocation requested by the model.
SystemMessage
A system-generated message (e.g. context injection).
Compaction
A context-window compaction event.
Finish
The agent has signaled task completion.
Unknown
Unrecognized step type (forward-compatibility fallback).
Trait Implementations§
impl Copy for StepType
Source§impl<'de> Deserialize<'de> for StepType
impl<'de> Deserialize<'de> for StepType
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 StepType
Source§impl<'a, 'py> FromPyObject<'a, 'py> for StepType
impl<'a, 'py> FromPyObject<'a, 'py> for StepType
impl StructuralPartialEq for StepType
Auto Trait Implementations§
impl Freeze for StepType
impl RefUnwindSafe for StepType
impl Send for StepType
impl Sync for StepType
impl Unpin for StepType
impl UnsafeUnpin for StepType
impl UnwindSafe for StepType
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