pub struct AgentRuntimeOptions {Show 16 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>,
}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.