pub struct AgentOptions {
pub checkpointer: Option<Arc<dyn Checkpointer>>,
pub interrupt_before: Vec<String>,
pub interrupt_after: Vec<String>,
pub system_prompt: Option<String>,
pub middleware: Vec<Arc<dyn AgentMiddleware>>,
pub store: Option<Arc<dyn Store>>,
pub name: Option<String>,
pub pre_model_hook: Option<PreModelHook>,
pub post_model_hook: Option<PostModelHook>,
pub response_format: Option<Value>,
}Expand description
Options for creating an agent with create_agent.
Fields§
§checkpointer: Option<Arc<dyn Checkpointer>>§interrupt_before: Vec<String>§interrupt_after: Vec<String>§system_prompt: Option<String>§middleware: Vec<Arc<dyn AgentMiddleware>>§store: Option<Arc<dyn Store>>§name: Option<String>§pre_model_hook: Option<PreModelHook>§post_model_hook: Option<PostModelHook>§response_format: Option<Value>Optional JSON schema for structured output on the final model call.
Trait Implementations§
Source§impl Default for AgentOptions
impl Default for AgentOptions
Source§fn default() -> AgentOptions
fn default() -> AgentOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentOptions
impl !RefUnwindSafe for AgentOptions
impl Send for AgentOptions
impl Sync for AgentOptions
impl Unpin for AgentOptions
impl UnsafeUnpin for AgentOptions
impl !UnwindSafe for AgentOptions
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