pub struct AgentRuntimeOptions {Show 17 fields
pub loaded_config: LoadedConfig,
pub model_provider: Arc<dyn ModelProvider>,
pub project_dir: PathBuf,
pub tool_executor: Option<Arc<ToolExecutor>>,
pub context_packets: Vec<ContextPacket>,
pub active_skills: Vec<String>,
pub initial_messages: Vec<ModelMessage>,
pub initial_events: Vec<AgentEvent>,
pub initial_created_at: Option<u64>,
pub initial_updated_at: Option<u64>,
pub initial_goal: Option<SessionGoal>,
pub session_id: Option<SessionId>,
pub event_tx: Option<UnboundedSender<AgentEvent>>,
pub runtime_components: Option<RuntimeComponents>,
pub session_title_handle: Option<SessionTitleHandle>,
pub memory_extraction_model: Option<MemoryExtractionModel>,
pub skip_auto_tool_bootstrap: bool,
}Expand description
Options for constructing an AgentRuntime.
Fields§
§loaded_config: LoadedConfigLoaded and merged configuration.
model_provider: Arc<dyn ModelProvider>The model provider implementation.
project_dir: PathBufProject root directory.
tool_executor: Option<Arc<ToolExecutor>>Optional custom tool executor (defaults to built-in tools).
context_packets: Vec<ContextPacket>Context packets to inject into the session.
active_skills: Vec<String>Active skill names for this session.
initial_messages: Vec<ModelMessage>Seed messages for restoring a session.
initial_events: Vec<AgentEvent>Seed events for restoring a persisted session without losing history.
initial_created_at: Option<u64>Original creation timestamp for restored sessions.
initial_updated_at: Option<u64>Original update timestamp for restored sessions.
initial_goal: Option<SessionGoal>Goal restored from a persisted session snapshot.
session_id: Option<SessionId>Session id for restoring an existing session.
event_tx: Option<UnboundedSender<AgentEvent>>Optional channel for forwarding agent events outside the runtime.
runtime_components: Option<RuntimeComponents>Replaceable runtime components. Defaults preserve NAVI’s code-agent behavior.
session_title_handle: Option<SessionTitleHandle>Session-local title state written by the set_session_title tool.
When omitted, direct runtime users simply do not get agent-managed titles.
memory_extraction_model: Option<MemoryExtractionModel>Explicit model for automatic durable-memory extraction. None means
extraction is disabled rather than silently billing the chat model.
skip_auto_tool_bootstrap: boolWhen true, skip auto-registering goal tools and skill loaders on the
provided tool executor. Used by host tool profiles (chat_only,
host_tools_only) so the host’s filtered tool set is preserved.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentRuntimeOptions
impl !UnwindSafe for AgentRuntimeOptions
impl Freeze for AgentRuntimeOptions
impl Send for AgentRuntimeOptions
impl Sync for AgentRuntimeOptions
impl Unpin for AgentRuntimeOptions
impl UnsafeUnpin for AgentRuntimeOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more