pub enum ReActStep {
Thought(String),
Action {
tool: String,
input: String,
},
Observation(String),
FinalAnswer(String),
}Expand description
A single step in the ReAct loop.
Variants§
Thought(String)
The agent’s internal reasoning trace.
Action
A tool invocation with its name and JSON input.
Observation(String)
The result of a tool invocation.
FinalAnswer(String)
The agent’s final answer, terminating the loop.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ReActStep
impl<'de> Deserialize<'de> for ReActStep
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 ReActStep
impl StructuralPartialEq for ReActStep
Auto Trait Implementations§
impl Freeze for ReActStep
impl RefUnwindSafe for ReActStep
impl Send for ReActStep
impl Sync for ReActStep
impl Unpin for ReActStep
impl UnsafeUnpin for ReActStep
impl UnwindSafe for ReActStep
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