pub struct AgentContext {
pub user_id: String,
pub session_id: String,
pub conversation_history: Vec<Message>,
pub user_memory: Option<UserMemory>,
}Expand description
Context passed to agents during request processing.
Fields§
§user_id: StringUnique identifier for the user making the request.
session_id: StringSession identifier for conversation tracking.
conversation_history: Vec<Message>Previous messages in the conversation.
user_memory: Option<UserMemory>User’s stored memory and preferences.
Trait Implementations§
Source§impl Clone for AgentContext
impl Clone for AgentContext
Source§fn clone(&self) -> AgentContext
fn clone(&self) -> AgentContext
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 AgentContext
impl RefUnwindSafe for AgentContext
impl Send for AgentContext
impl Sync for AgentContext
impl Unpin for AgentContext
impl UnsafeUnpin for AgentContext
impl UnwindSafe for AgentContext
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