pub struct AgentConfig { /* private fields */ }Expand description
Agent configuration.
Implementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub fn with_system_prompt_generator(
self,
system_prompt_generator: SystemPromptGenerator,
) -> Self
pub fn with_system_prompt_generator( self, system_prompt_generator: SystemPromptGenerator, ) -> Self
Set the system prompt generator.
Sourcepub fn with_chat_history(self, chat_history: ChatHistory) -> Self
pub fn with_chat_history(self, chat_history: ChatHistory) -> Self
Set the chat history.
Sourcepub fn with_chat_options(self, chat_options: ChatOptions) -> Self
pub fn with_chat_options(self, chat_options: ChatOptions) -> Self
Set default genai::chat::ChatOptions merged into each run (e.g. reasoning effort).
Auto Trait Implementations§
impl Freeze for AgentConfig
impl !RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl !Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl !UnwindSafe 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