pub struct PlannerContext {
pub history: Vec<AgentMessage>,
pub system_prompt: String,
pub tools: Vec<ToolSchema>,
}
Expand description
Context passed to planners containing the latest exchange history.
Fields§
§history: Vec<AgentMessage>
§system_prompt: String
§tools: Vec<ToolSchema>
Trait Implementations§
Source§impl Clone for PlannerContext
impl Clone for PlannerContext
Source§fn clone(&self) -> PlannerContext
fn clone(&self) -> PlannerContext
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 PlannerContext
impl Debug for PlannerContext
Source§impl<'de> Deserialize<'de> for PlannerContext
impl<'de> Deserialize<'de> for PlannerContext
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 PlannerContext
impl RefUnwindSafe for PlannerContext
impl Send for PlannerContext
impl Sync for PlannerContext
impl Unpin for PlannerContext
impl UnwindSafe for PlannerContext
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