Struct AgentRunOverrides
pub struct AgentRunOverrides {
pub security: Option<Arc<SecurityPolicy>>,
pub memory: Option<Arc<dyn Memory>>,
pub is_subagent: bool,
pub suppress_memory_inject: bool,
pub memory_free: bool,
pub mcp_registry: Option<Arc<McpRegistry>>,
}Fields§
§security: Option<Arc<SecurityPolicy>>§memory: Option<Arc<dyn Memory>>§is_subagent: bool§suppress_memory_inject: boolSpawn-site opt-out of the engine’s memory-context injection (e.g. a
cron job configured with uses_memory = false). Default false.
memory_free: bool§mcp_registry: Option<Arc<McpRegistry>>Pre-built MCP registry supplied by the caller. The daemon heartbeat
worker constructs this once at worker start and shares it across
every tick so that stdio MCP children live for the daemon’s
lifetime rather than being orphaned and re-spawned per
agent::run call. When Some, the loop MUST use this
Arc<McpRegistry> and MUST NOT call McpRegistry::connect_all
itself. None preserves the legacy per-call connect path
(CLI / one-shot), which is correct for callers that have no
cross-turn reuse contract.
Trait Implementations§
Source§impl Default for AgentRunOverrides
impl Default for AgentRunOverrides
Source§fn default() -> AgentRunOverrides
fn default() -> AgentRunOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentRunOverrides
impl !RefUnwindSafe for AgentRunOverrides
impl Send for AgentRunOverrides
impl Sync for AgentRunOverrides
impl Unpin for AgentRunOverrides
impl UnsafeUnpin for AgentRunOverrides
impl !UnwindSafe for AgentRunOverrides
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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