pub struct ExecuteRequest {Show 15 fields
pub initial_message: String,
pub event_tx: Sender<AgentEvent>,
pub cancel_token: CancellationToken,
pub tools: Option<Arc<dyn ToolExecutor>>,
pub provider_override: Option<Arc<dyn LLMProvider>>,
pub model: Option<String>,
pub provider_name: Option<String>,
pub background_model: Option<String>,
pub background_model_provider: Option<Arc<dyn LLMProvider>>,
pub reasoning_effort: Option<ReasoningEffort>,
pub disabled_tools: Option<BTreeSet<String>>,
pub disabled_skill_ids: Option<BTreeSet<String>>,
pub selected_skill_ids: Option<Vec<String>>,
pub selected_skill_mode: Option<String>,
pub image_fallback: Option<ImageFallbackConfig>,
}Expand description
Per-request parameters for agent execution.
Required fields (initial_message, event_tx, cancel_token) must always
be provided. The provider is taken from AgentRuntime::provider; tools
default to AgentRuntime::default_tools when None.
Fields§
§initial_message: String§event_tx: Sender<AgentEvent>§cancel_token: CancellationToken§tools: Option<Arc<dyn ToolExecutor>>Override runtime’s default_tools. When None, uses the runtime’s
default tool executor.
provider_override: Option<Arc<dyn LLMProvider>>Override the LLM provider for this execution. When None, uses the
runtime’s shared provider handle.
model: Option<String>§provider_name: Option<String>§background_model: Option<String>When None, falls back to Config::get_memory_background_model().
background_model_provider: Option<Arc<dyn LLMProvider>>Optional provider override for background/fast model calls.
When set, compression/summarization use this provider instead of the shared llm.
reasoning_effort: Option<ReasoningEffort>§disabled_tools: Option<BTreeSet<String>>When None, falls back to Config::disabled_tool_names().
disabled_skill_ids: Option<BTreeSet<String>>When None, falls back to Config::disabled_skill_ids().
selected_skill_ids: Option<Vec<String>>§selected_skill_mode: Option<String>§image_fallback: Option<ImageFallbackConfig>Auto Trait Implementations§
impl Freeze for ExecuteRequest
impl !RefUnwindSafe for ExecuteRequest
impl Send for ExecuteRequest
impl Sync for ExecuteRequest
impl Unpin for ExecuteRequest
impl UnsafeUnpin for ExecuteRequest
impl !UnwindSafe for ExecuteRequest
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