pub struct AgentContext {
pub agent_id: AgentId,
pub session_key: SessionKey,
pub session: SessionProjection,
pub tools: Arc<ToolRegistry>,
pub values: HashMap<String, Value>,
}Expand description
Agent execution context.
Fields§
§agent_id: AgentIdAgent ID.
session_key: SessionKeySession key.
session: SessionProjectionSession state.
tools: Arc<ToolRegistry>Available tools.
values: HashMap<String, Value>Custom context values.
Implementations§
Source§impl AgentContext
impl AgentContext
Sourcepub fn new(
agent_id: AgentId,
session_key: SessionKey,
session: SessionProjection,
tools: Arc<ToolRegistry>,
) -> Self
pub fn new( agent_id: AgentId, session_key: SessionKey, session: SessionProjection, tools: Arc<ToolRegistry>, ) -> Self
Create a new agent context.
Auto Trait Implementations§
impl Freeze for AgentContext
impl !RefUnwindSafe for AgentContext
impl Send for AgentContext
impl Sync for AgentContext
impl Unpin 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