pub struct DecisionContext {
pub conversation_turn: usize,
pub user_input: Option<String>,
pub previous_actions: Vec<String>,
pub available_tools: Vec<String>,
pub current_state: HashMap<String, Value>,
}
Expand description
Context information that led to a decision
Fields§
§conversation_turn: usize
§user_input: Option<String>
§previous_actions: Vec<String>
§available_tools: Vec<String>
§current_state: HashMap<String, Value>
Trait Implementations§
Source§impl Clone for DecisionContext
impl Clone for DecisionContext
Source§fn clone(&self) -> DecisionContext
fn clone(&self) -> DecisionContext
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 DecisionContext
impl Debug for DecisionContext
Source§impl<'de> Deserialize<'de> for DecisionContext
impl<'de> Deserialize<'de> for DecisionContext
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 DecisionContext
impl RefUnwindSafe for DecisionContext
impl Send for DecisionContext
impl Sync for DecisionContext
impl Unpin for DecisionContext
impl UnwindSafe for DecisionContext
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