pub struct AgentContext {Show 18 fields
pub agent_id: AgentId,
pub name: String,
pub role_prompt: String,
pub task_store: Arc<TaskStore>,
pub broker: Arc<MessageBroker>,
pub llm_client: Arc<dyn LlmClient>,
pub prompt_builder: Arc<dyn PromptBuilder>,
pub work_dir: PathBuf,
pub source_root: PathBuf,
pub poll_interval_ms: u64,
pub memory_store: Arc<MemoryStore>,
pub max_loop_iterations: usize,
pub max_context_tokens: usize,
pub max_idle_cycles: u32,
pub plan_approval_timeout_secs: u64,
pub event_tx: Option<UnboundedSender<AgentEvent>>,
pub require_plan_approval: bool,
pub hooks: Arc<HookRegistry>,
}Expand description
Per-agent working state. Each teammate gets its own context.
Fields§
§agent_id: AgentId§name: StringHuman-readable name for this teammate (e.g. “security-reviewer”).
role_prompt: StringOptional role instructions for this teammate.
task_store: Arc<TaskStore>§broker: Arc<MessageBroker>§llm_client: Arc<dyn LlmClient>§prompt_builder: Arc<dyn PromptBuilder>§work_dir: PathBuf§source_root: PathBuf§poll_interval_ms: u64§memory_store: Arc<MemoryStore>§max_loop_iterations: usize§max_context_tokens: usize§max_idle_cycles: u32§plan_approval_timeout_secs: u64§event_tx: Option<UnboundedSender<AgentEvent>>§require_plan_approval: boolIf true, the teammate must submit a plan and get approval before implementing.
hooks: Arc<HookRegistry>Hook registry (shared across the team).
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 · 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