pub enum CheckpointStep {
AfterUserInput,
BeforeLlm {
messages: Vec<ChatMessage>,
tools: Vec<Value>,
},
BeforeActions {
actions: Vec<Action>,
},
AfterActions {
actions: Vec<Action>,
observation: Option<Observation>,
},
}Variants§
AfterUserInput
BeforeLlm
BeforeActions
About to execute a batch of actions (id-paired to the observation).
AfterActions
The batch ran; observation is what the backend observed (D3).
Implementations§
Trait Implementations§
Source§impl Clone for CheckpointStep
impl Clone for CheckpointStep
Source§fn clone(&self) -> CheckpointStep
fn clone(&self) -> CheckpointStep
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 CheckpointStep
impl Debug for CheckpointStep
Source§impl<'de> Deserialize<'de> for CheckpointStep
impl<'de> Deserialize<'de> for CheckpointStep
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CheckpointStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CheckpointStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CheckpointStep
impl Serialize for CheckpointStep
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for CheckpointStep
impl Freeze for CheckpointStep
impl Move for CheckpointStep
impl RefUnwindSafe for CheckpointStep
impl Send for CheckpointStep
impl Sync for CheckpointStep
impl Unpin for CheckpointStep
impl UnsafeUnpin for CheckpointStep
impl UnwindSafe for CheckpointStep
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