pub struct ThoughtActionObservation {
pub thought: String,
pub action: String,
pub observation: String,
}Expand description
A single step in the ReAct loop capturing thought, action, and observation.
This model represents one iteration of the ReAct pattern where the agent:
- Thinks about what to do
- Takes an action
- Observes the result
Fields§
§thought: StringThe thought process behind the action taken in the current context.
action: StringThe action taken in the current context.
observation: StringThe observation made after the action taken in the current context.
Trait Implementations§
Source§impl Clone for ThoughtActionObservation
impl Clone for ThoughtActionObservation
Source§fn clone(&self) -> ThoughtActionObservation
fn clone(&self) -> ThoughtActionObservation
Returns a duplicate of the value. Read more
1.0.0 · 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 ThoughtActionObservation
impl Debug for ThoughtActionObservation
Source§impl<'de> Deserialize<'de> for ThoughtActionObservation
impl<'de> Deserialize<'de> for ThoughtActionObservation
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
Auto Trait Implementations§
impl Freeze for ThoughtActionObservation
impl RefUnwindSafe for ThoughtActionObservation
impl Send for ThoughtActionObservation
impl Sync for ThoughtActionObservation
impl Unpin for ThoughtActionObservation
impl UnwindSafe for ThoughtActionObservation
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