pub struct AgentRuntimeConfig {Show 16 fields
pub provider: Arc<dyn LlmProvider>,
pub model: String,
pub system_prompt: Option<String>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub max_iter: u32,
pub max_consecutive_fail_count: u32,
pub checkpoint_storage: Arc<dyn CheckpointStorage>,
pub transcript_storage: Arc<dyn TranscriptStorage>,
pub sandbox: Arc<dyn Sandbox>,
pub tools: ToolRegistry,
pub skill_dirs: Vec<PathBuf>,
pub middleware: MiddlewareChain,
pub trajectory: Arc<dyn TrajectorySink>,
pub retry_backoff: Duration,
pub tool_timeout: Duration,
}Fields§
§provider: Arc<dyn LlmProvider>§model: String§system_prompt: Option<String>§temperature: Option<f32>§max_tokens: Option<u32>§max_iter: u32§max_consecutive_fail_count: u32§checkpoint_storage: Arc<dyn CheckpointStorage>§transcript_storage: Arc<dyn TranscriptStorage>§sandbox: Arc<dyn Sandbox>§tools: ToolRegistry§skill_dirs: Vec<PathBuf>§middleware: MiddlewareChain§trajectory: Arc<dyn TrajectorySink>§retry_backoff: Duration§tool_timeout: DurationImplementations§
Source§impl AgentRuntimeConfig
impl AgentRuntimeConfig
pub fn new( provider: Arc<dyn LlmProvider>, model: impl Into<String>, checkpoint_storage: Arc<dyn CheckpointStorage>, transcript_storage: Arc<dyn TranscriptStorage>, sandbox: Arc<dyn Sandbox>, ) -> Self
pub fn with_tools(self, tools: ToolRegistry) -> Self
pub fn with_system_prompt(self, system_prompt: impl Into<String>) -> Self
pub fn with_middleware(self, middleware: Arc<dyn Middleware>) -> Self
pub fn with_trajectory(self, trajectory: Arc<dyn TrajectorySink>) -> Self
Trait Implementations§
Source§impl Clone for AgentRuntimeConfig
impl Clone for AgentRuntimeConfig
Source§fn clone(&self) -> AgentRuntimeConfig
fn clone(&self) -> AgentRuntimeConfig
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 !RefUnwindSafe for AgentRuntimeConfig
impl !UnwindSafe for AgentRuntimeConfig
impl Freeze for AgentRuntimeConfig
impl Send for AgentRuntimeConfig
impl Sync for AgentRuntimeConfig
impl Unpin for AgentRuntimeConfig
impl UnsafeUnpin for AgentRuntimeConfig
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