pub struct GatewayConfig {Show 16 fields
pub gateway: GatewaySection,
pub agent: AgentSection,
pub auth: AuthSection,
pub channels: ChannelsSection,
pub skills: SkillsSection,
pub session: SessionSection,
pub agent_roster: Vec<AgentEntry>,
pub backends: Vec<BackendCatalogEntry>,
pub provider_profiles: Vec<ProviderProfileConfig>,
pub memory: MemorySection,
pub scheduler: SchedulerSection,
pub groups: Vec<GroupConfig>,
pub team_scopes: Vec<TeamScopeConfig>,
pub bindings: Vec<BindingConfig>,
pub delivery_sender_bindings: Vec<DeliverySenderBindingConfig>,
pub delivery_target_overrides: Vec<DeliveryTargetOverrideConfig>,
}Fields§
§gateway: GatewaySection§agent: AgentSection§auth: AuthSection§channels: ChannelsSection§skills: SkillsSection§session: SessionSection§agent_roster: Vec<AgentEntry>§backends: Vec<BackendCatalogEntry>Canonical backend catalog ([[backend]]).
provider_profiles: Vec<ProviderProfileConfig>Canonical provider profile registry ([[provider_profile]]).
memory: MemorySection§scheduler: SchedulerSection§groups: Vec<GroupConfig>群组专项配置列表([[group]] 段,可配置交互模式和 Team Mode 参数)
team_scopes: Vec<TeamScopeConfig>精确 scope team 配置([[team_scope]] 段),用于 DM 等非 group scope。
bindings: Vec<BindingConfig>Deterministic routing bindings ([[binding]]).
delivery_sender_bindings: Vec<DeliverySenderBindingConfig>§delivery_target_overrides: Vec<DeliveryTargetOverrideConfig>Implementations§
Source§impl GatewayConfig
impl GatewayConfig
pub fn from_toml_str(content: &str) -> Result<Self>
pub fn resolved_default_backend_id(&self) -> Option<String>
pub fn normalized_team_scopes(&self) -> Vec<TeamScopeSpec>
pub fn validate_runtime_topology(&self) -> Result<()>
Source§impl GatewayConfig
impl GatewayConfig
pub fn resolve_provider_profile( &self, provider_profile_id: Option<&str>, ) -> Result<Option<ConfiguredProviderProfile>>
Trait Implementations§
Source§impl Clone for GatewayConfig
impl Clone for GatewayConfig
Source§fn clone(&self) -> GatewayConfig
fn clone(&self) -> GatewayConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 GatewayConfig
impl Debug for GatewayConfig
Source§impl Default for GatewayConfig
impl Default for GatewayConfig
Source§fn default() -> GatewayConfig
fn default() -> GatewayConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GatewayConfig
impl<'de> Deserialize<'de> for GatewayConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GatewayConfig
impl RefUnwindSafe for GatewayConfig
impl Send for GatewayConfig
impl Sync for GatewayConfig
impl Unpin for GatewayConfig
impl UnsafeUnpin for GatewayConfig
impl UnwindSafe for GatewayConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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> 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