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 Freeze for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
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