pub struct CapturedReasoningRouter {
pub service_kind: String,
pub id: String,
pub origin: String,
pub legacy_inline: bool,
pub route: FrozenRoute,
pub requested_call_reasoning: RouterCallReasoning,
pub dispatchable: bool,
pub permissions: PermissionCeiling,
}Expand description
The Router service as frozen into a Workflow snapshot.
Whether it came from a named profile or from the legacy inline member, this is the single runtime representation. Nothing downstream branches on which form the operator wrote.
Fields§
§service_kind: StringAlways REASONING_ROUTER_SERVICE_KIND. Recorded explicitly so a
receipt states what kind of thing this is instead of implying it.
id: StringThe Router’s id: the profile name, or the inline member’s id.
origin: StringThe origin the definition came from, or LEGACY_INLINE_ROUTER_ORIGIN.
legacy_inline: boolTrue when this was written inline in the Fleet file rather than saved as a reusable profile.
route: FrozenRouteThe Router’s own exact provider/model.
requested_call_reasoning: RouterCallReasoningWhat the operator configured this Router’s call to run at.
dispatchable: boolAlways false. Stated rather than implied.
permissions: PermissionCeilingAlways PermissionCeiling::ROUTER.
Implementations§
Source§impl CapturedReasoningRouter
impl CapturedReasoningRouter
Sourcepub fn from_profile(
profile: &ReasoningRouterProfile,
origin: impl Into<String>,
) -> Self
pub fn from_profile( profile: &ReasoningRouterProfile, origin: impl Into<String>, ) -> Self
Capture a saved, reusable profile.
Sourcepub fn from_legacy_inline(member: &RouterMember) -> Self
pub fn from_legacy_inline(member: &RouterMember) -> Self
Normalize the prototype inline form into the same captured service.
The inline member’s own reasoning was a full ReasoningTier; it is
mapped onto the cheap call ceiling here, and anything above low is
rejected by the Fleet parser rather than clamped silently.
Sourcepub const fn is_dispatchable(&self) -> bool
pub const fn is_dispatchable(&self) -> bool
A Router is never a worker. 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.
Trait Implementations§
Source§impl Clone for CapturedReasoningRouter
impl Clone for CapturedReasoningRouter
Source§fn clone(&self) -> CapturedReasoningRouter
fn clone(&self) -> CapturedReasoningRouter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more