pub struct AgentConfig {Show 18 fields
pub name: String,
pub session_agent: String,
pub model: String,
pub max_turns: usize,
pub max_tokens: Option<u64>,
pub compact_threshold: Option<u64>,
pub system_prompt: String,
pub subagent_system_prompt: Option<String>,
pub client: Arc<dyn LLMClientDyn>,
pub depth: AgentDepth,
pub terminal_tools: Vec<String>,
pub empty_response_nudge: Option<String>,
pub max_empty_responses: usize,
pub subagent_counter: Arc<AtomicUsize>,
pub llm_semaphore: Arc<Semaphore>,
pub progress: Option<Arc<dyn Fn(AgentProgress) + Send + Sync>>,
pub project_context: Option<String>,
pub session_writer: Option<SessionWriter>,
}Fields§
§name: String§session_agent: StringLabel stamped on this agent’s trajectory records. Must be unique within a session
directory: reflect merges every file by timestamp, so colliding labels conflate
distinct agents in the merged trace.
model: String§max_turns: usize§max_tokens: Option<u64>Output cap per turn. None (the default) sends none, so the provider’s per-model limit
applies: a fixed budget is spent on reasoning before the model writes a character.
compact_threshold: Option<u64>§system_prompt: String§subagent_system_prompt: Option<String>System prompt for spawned subagents. None uses the built-in generic prompt
(prompts::subagent_system_prompt); subagents inherit the parent’s value so an
override propagates through nested spawns.
client: Arc<dyn LLMClientDyn>§depth: AgentDepth§terminal_tools: Vec<String>§empty_response_nudge: Option<String>§max_empty_responses: usize§subagent_counter: Arc<AtomicUsize>§llm_semaphore: Arc<Semaphore>§progress: Option<Arc<dyn Fn(AgentProgress) + Send + Sync>>§project_context: Option<String>§session_writer: Option<SessionWriter>Auto Trait Implementations§
impl !RefUnwindSafe for AgentConfig
impl !UnwindSafe for AgentConfig
impl Forget for AgentConfig
impl Freeze for AgentConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn LLMClientDyn> is !null: Freeze,
PhantomData<ArcInner<dyn LLMClientDyn>>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<Atomic<usize>> is !null: Freeze,
PhantomData<ArcInner<Atomic<usize>>>: Freeze,
*const ArcInner<Semaphore> is !null: Freeze,
PhantomData<ArcInner<Semaphore>>: Freeze,
*const ArcInner<dyn Fn(AgentProgress) + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(AgentProgress) + Sync + Send>>: Freeze,
*const ArcInner<PathBuf> is !null: Freeze,
PhantomData<ArcInner<PathBuf>>: Freeze,
*const ArcInner<Mutex<()>> is !null: Freeze,
PhantomData<ArcInner<Mutex<()>>>: Freeze,
impl Move for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn LLMClientDyn> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn LLMClientDyn>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<Atomic<usize>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<usize>>>: UnsafeUnpin,
*const ArcInner<Semaphore> is !null: UnsafeUnpin,
PhantomData<ArcInner<Semaphore>>: UnsafeUnpin,
*const ArcInner<dyn Fn(AgentProgress) + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(AgentProgress) + Sync + Send>>: UnsafeUnpin,
*const ArcInner<PathBuf> is !null: UnsafeUnpin,
PhantomData<ArcInner<PathBuf>>: UnsafeUnpin,
*const ArcInner<Mutex<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<()>>>: UnsafeUnpin,
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