pub struct SessionContext {
pub messages: Vec<AgentMessage>,
pub thinking_level: String,
pub model: Option<(String, String)>,
pub active_tool_names: Option<Vec<String>>,
}Expand description
Resolved conversation context sent to the LLM. Pi-compatible: includes resolved thinking level, model, and active tool names.
Fields§
§messages: Vec<AgentMessage>§thinking_level: String§model: Option<(String, String)>§active_tool_names: Option<Vec<String>>Trait Implementations§
Source§impl Clone for SessionContext
impl Clone for SessionContext
Source§fn clone(&self) -> SessionContext
fn clone(&self) -> SessionContext
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 moreAuto Trait Implementations§
impl Freeze for SessionContext
impl RefUnwindSafe for SessionContext
impl Send for SessionContext
impl Sync for SessionContext
impl Unpin for SessionContext
impl UnsafeUnpin for SessionContext
impl UnwindSafe for SessionContext
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