pub struct RouterMember {
pub id: String,
pub provider: String,
pub model: String,
pub call_reasoning: RouterCallReasoning,
}Expand description
The legacy inline Router form: a [[members]] entry with
kind = "router".
Retained for compatibility with Fleet files written against the prototype.
It is normalized into crate::reasoning_router::CapturedReasoningRouter
at capture, so nothing downstream sees two kinds of Router. New Fleets
should use reasoning_router = "<name>" and a saved profile, which is what
lets several Fleets share one Router configuration.
Fields§
§id: String§provider: String§model: String§call_reasoning: RouterCallReasoningWhat the Router’s own call runs at — off or low only, exactly as for
a saved profile. Defaults to off; auto is rejected (a router cannot
ask a router what to think) and medium/high/max are rejected
rather than clamped.
Implementations§
Source§impl RouterMember
impl RouterMember
Sourcepub const fn public_id(&self) -> &'static str
pub const fn public_id(&self) -> &'static str
The Router’s public id — always the literal router, regardless of the
member id the file used. Receipts and errors name this, so a Fleet
cannot disguise its Router behind a friendly label.
Sourcepub const fn public_role(&self) -> &'static str
pub const fn public_role(&self) -> &'static str
The Router’s public role — always the literal router.
Sourcepub const fn is_dispatchable(&self) -> bool
pub const fn is_dispatchable(&self) -> bool
A Router is never a worker. This is a constant, not a policy lookup.
Sourcepub const fn tool_surface(&self) -> &'static [&'static str]
pub const fn tool_surface(&self) -> &'static [&'static str]
The Router’s tool surface is empty, always.
Sourcepub const fn permissions(&self) -> PermissionCeiling
pub const fn permissions(&self) -> PermissionCeiling
The Router’s fixed permission ceiling.
pub fn frozen_route(&self) -> FrozenRoute
Trait Implementations§
Source§impl Clone for RouterMember
impl Clone for RouterMember
Source§fn clone(&self) -> RouterMember
fn clone(&self) -> RouterMember
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more