pub struct AgentContext {
pub agent_id: AgentId,
pub team_id: Option<TeamId>,
pub org_id: Option<OrgId>,
pub turn: TurnInput,
}Expand description
State the per-turn pipeline reads from. Strategies receive a
reference to this; they do not mutate it directly (they return
fragments which the ContextAssembler merges).
Fields§
§agent_id: AgentId§team_id: Option<TeamId>§org_id: Option<OrgId>§turn: TurnInputImplementations§
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