pub struct AgentConfigOverlay {
pub system_prompt: Option<String>,
pub capabilities: Vec<AgentCapabilityConfig>,
pub initial_files: Vec<InitialFile>,
pub network_access: Option<NetworkAccessList>,
pub default_model_id: Option<ModelId>,
pub tools: Vec<ToolDefinition>,
pub max_iterations: Option<usize>,
pub mcp_servers: ScopedMcpServers,
}Expand description
A composable configuration layer.
Produced by Harness, Agent, or Session via From<&T>. Layers merge
bottom-up into a single effective config for RuntimeAgent building.
Fields§
§system_prompt: Option<String>System prompt fragment for this layer.
capabilities: Vec<AgentCapabilityConfig>Capabilities with per-layer configuration.
initial_files: Vec<InitialFile>Starter files for the session filesystem.
network_access: Option<NetworkAccessList>Network access restrictions.
default_model_id: Option<ModelId>Default model ID for this layer.
tools: Vec<ToolDefinition>Tool definitions (client-side or capability-provided).
max_iterations: Option<usize>Max iterations per turn.
mcp_servers: ScopedMcpServersRemote MCP servers scoped to this layer.
Implementations§
Source§impl AgentConfigOverlay
impl AgentConfigOverlay
Sourcepub fn merge(self, overlay: AgentConfigOverlay) -> AgentConfigOverlay
pub fn merge(self, overlay: AgentConfigOverlay) -> AgentConfigOverlay
Merge an overlay on top of this base layer, producing a new effective layer.
This is the core composition operation. Each field follows its own merge semantic (see module-level docs). The result represents the combined configuration of both layers.
Sourcepub fn fold(
layers: impl IntoIterator<Item = AgentConfigOverlay>,
) -> AgentConfigOverlay
pub fn fold( layers: impl IntoIterator<Item = AgentConfigOverlay>, ) -> AgentConfigOverlay
Fold multiple layers bottom-up into a single effective layer.
Layers are applied in order: the first layer is the base, each subsequent layer is merged on top.
Trait Implementations§
Source§impl Clone for AgentConfigOverlay
impl Clone for AgentConfigOverlay
Source§fn clone(&self) -> AgentConfigOverlay
fn clone(&self) -> AgentConfigOverlay
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentConfigOverlay
impl Debug for AgentConfigOverlay
Source§impl Default for AgentConfigOverlay
impl Default for AgentConfigOverlay
Source§fn default() -> AgentConfigOverlay
fn default() -> AgentConfigOverlay
Source§impl From<&Agent> for AgentConfigOverlay
impl From<&Agent> for AgentConfigOverlay
Source§impl From<&Harness> for AgentConfigOverlay
impl From<&Harness> for AgentConfigOverlay
Auto Trait Implementations§
impl Freeze for AgentConfigOverlay
impl RefUnwindSafe for AgentConfigOverlay
impl Send for AgentConfigOverlay
impl Sync for AgentConfigOverlay
impl Unpin for AgentConfigOverlay
impl UnsafeUnpin for AgentConfigOverlay
impl UnwindSafe for AgentConfigOverlay
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request