pub struct RunnerConfig {
pub app_name: String,
pub agent: Arc<dyn Agent>,
pub session_service: Arc<dyn SessionService>,
pub artifact_service: Option<Arc<dyn ArtifactService>>,
pub memory_service: Option<Arc<dyn MemoryService>>,
pub plugin_config: PluginConfig,
pub auto_create_session: bool,
pub platform: Platform,
pub compaction: Option<Config>,
}Expand description
Configuration for a Runner.
Fields§
§app_name: StringThe application name sessions are scoped to.
agent: Arc<dyn Agent>The root agent, which starts the execution.
session_service: Arc<dyn SessionService>The session service.
artifact_service: Option<Arc<dyn ArtifactService>>Optional artifact service.
memory_service: Option<Arc<dyn MemoryService>>Optional memory service.
plugin_config: PluginConfigPlugins and their close timeout.
auto_create_session: boolCreate the session on run / run_live when it does not exist: when the session ID is
empty (the service generates one) or when the session service’s get reports
SessionError::NotFound. Any other get error is returned as is, so a transient storage
failure never replaces an existing session.
platform: PlatformClock and ID source.
compaction: Option<Config>Context compaction for the sessions this runner drives; None disables it. A config without
a summarizer gets an LlmSummarizer over the root agent’s model, which then has to be an
LLM agent.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RunnerConfig
impl !UnwindSafe for RunnerConfig
impl Forget for RunnerConfig
impl Freeze for RunnerConfig
impl Move for RunnerConfig
impl Send for RunnerConfig
impl Sync for RunnerConfig
impl Unpin for RunnerConfig
impl UnsafeUnpin for RunnerConfig
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