pub struct AgentConfig {Show 20 fields
pub model: String,
pub api_key: String,
pub provider: String,
pub openai_chatgpt_auth: Option<OpenAIChatGptAuthHandle>,
pub api_key_env: String,
pub workspace: PathBuf,
pub verbose: bool,
pub quiet: bool,
pub theme: String,
pub reasoning_effort: ReasoningEffortLevel,
pub ui_surface: UiSurfacePreference,
pub prompt_cache: PromptCachingConfig,
pub model_source: ModelSelectionSource,
pub custom_api_keys: BTreeMap<String, String>,
pub checkpointing_enabled: bool,
pub checkpointing_storage_dir: Option<PathBuf>,
pub checkpointing_max_snapshots: usize,
pub checkpointing_max_age_days: Option<u64>,
pub max_conversation_turns: usize,
pub model_behavior: Option<ModelConfig>,
}Expand description
Configuration for the agent
Fields§
§model: String§api_key: String§provider: String§openai_chatgpt_auth: Option<OpenAIChatGptAuthHandle>§api_key_env: String§workspace: PathBuf§verbose: bool§quiet: bool§theme: String§reasoning_effort: ReasoningEffortLevel§ui_surface: UiSurfacePreference§prompt_cache: PromptCachingConfig§model_source: ModelSelectionSource§custom_api_keys: BTreeMap<String, String>§checkpointing_enabled: bool§checkpointing_storage_dir: Option<PathBuf>§checkpointing_max_snapshots: usize§checkpointing_max_age_days: Option<u64>§max_conversation_turns: usize§model_behavior: Option<ModelConfig>Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
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<Mutex<OpenAIChatGptSession>> is !null: Freeze,
PhantomData<ArcInner<Mutex<OpenAIChatGptSession>>>: Freeze,
*const ArcInner<Mutex<()>> is !null: Freeze,
PhantomData<ArcInner<Mutex<()>>>: Freeze,
*const ArcInner<dyn OpenAIChatGptSessionRefresher> is !null: Freeze,
PhantomData<ArcInner<dyn OpenAIChatGptSessionRefresher>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: 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<Mutex<OpenAIChatGptSession>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<OpenAIChatGptSession>>>: UnsafeUnpin,
*const ArcInner<Mutex<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<()>>>: UnsafeUnpin,
*const ArcInner<dyn OpenAIChatGptSessionRefresher> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn OpenAIChatGptSessionRefresher>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: 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