pub struct AgentConfigOverlay {
pub system_prompt: Option<String>,
pub capabilities: Vec<CapabilityRef>,
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 parallel_tool_calls: Option<bool>,
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<CapabilityRef>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.
parallel_tool_calls: Option<bool>Request-level parallel tool calling preference (EVE-598).
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 more