pub struct AgentRuntimeConfig {
pub mcp_streamable_http_enabled: bool,
pub mcp_endpoint: String,
pub mcp_allowed_origins: Vec<String>,
pub access_policy: AgentAccessPolicy,
pub audit_sink_enabled: bool,
pub audit_queue_depth: usize,
}Expand description
Resident agent protocol runtime configuration.
Fields§
§mcp_streamable_http_enabled: bool§mcp_endpoint: String§mcp_allowed_origins: Vec<String>§access_policy: AgentAccessPolicy§audit_sink_enabled: bool§audit_queue_depth: usizeImplementations§
Source§impl AgentRuntimeConfig
impl AgentRuntimeConfig
pub const DEFAULT_AUDIT_QUEUE_DEPTH: usize = 1024
Sourcepub fn from_environment(
environment: &EnvironmentConfig,
request_timeout: Duration,
) -> Result<Self, AgentRuntimeConfigError>
pub fn from_environment( environment: &EnvironmentConfig, request_timeout: Duration, ) -> Result<Self, AgentRuntimeConfigError>
Builds agent protocol config from typed environment overrides.
Sourcepub fn with_streamable_http_enabled(self) -> Self
pub fn with_streamable_http_enabled(self) -> Self
Returns a copy with streamable HTTP forced on by a CLI command.
Trait Implementations§
Source§impl Clone for AgentRuntimeConfig
impl Clone for AgentRuntimeConfig
Source§fn clone(&self) -> AgentRuntimeConfig
fn clone(&self) -> AgentRuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentRuntimeConfig
impl Debug for AgentRuntimeConfig
Source§impl PartialEq for AgentRuntimeConfig
impl PartialEq for AgentRuntimeConfig
Source§fn eq(&self, other: &AgentRuntimeConfig) -> bool
fn eq(&self, other: &AgentRuntimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AgentRuntimeConfig
impl StructuralPartialEq for AgentRuntimeConfig
Auto Trait Implementations§
impl Freeze for AgentRuntimeConfig
impl RefUnwindSafe for AgentRuntimeConfig
impl Send for AgentRuntimeConfig
impl Sync for AgentRuntimeConfig
impl Unpin for AgentRuntimeConfig
impl UnsafeUnpin for AgentRuntimeConfig
impl UnwindSafe for AgentRuntimeConfig
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