pub struct RunConfig {
pub max_turns: usize,
pub api_base: String,
pub api_key: Option<String>,
pub model_settings: Option<ModelSettings>,
pub include_tool_calls: bool,
}Expand description
Configuration for agent run
Fields§
§max_turns: usizeMaximum number of turns (LLM invocations)
api_base: StringThe API base URL for the LLM provider
api_key: Option<String>API key for authentication
model_settings: Option<ModelSettings>Global model settings override
include_tool_calls: boolWhether to include tool calls in the context
Implementations§
Source§impl RunConfig
impl RunConfig
Sourcepub fn with_api_base(self, url: impl Into<String>) -> Self
pub fn with_api_base(self, url: impl Into<String>) -> Self
Set the API base URL
Sourcepub fn with_api_key(self, key: impl Into<String>) -> Self
pub fn with_api_key(self, key: impl Into<String>) -> Self
Set the API key
Sourcepub fn with_max_turns(self, turns: usize) -> Self
pub fn with_max_turns(self, turns: usize) -> Self
Set maximum turns
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunConfig
impl RefUnwindSafe for RunConfig
impl Send for RunConfig
impl Sync for RunConfig
impl Unpin for RunConfig
impl UnsafeUnpin for RunConfig
impl UnwindSafe for RunConfig
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