pub struct RoutingCandidate {
pub role: String,
pub agent_id: Option<String>,
pub model: String,
pub score: Option<f64>,
}Expand description
A single routing candidate the orchestrator considered for a subtask.
Fields§
§role: StringCoordination role the candidate would fill (planner, researcher,
coder, etc.). Free-form so a project’s workflow vocabulary stays
authoritative — the policy plane only stores it verbatim.
agent_id: Option<String>Agent registry id of the candidate, when one exists. None for
candidates produced by an ad-hoc binding (e.g. a one-shot model
override on a workflow run).
model: StringModel id the candidate would run (claude-opus-4-7, gpt-4o, …).
Free-form string so a future model lands here without a schema
migration.
score: Option<f64>Optional ranking score. None when the orchestrator did not perform
ordered scoring (e.g. policy short-circuit). Recorded so AgensFlow
replays can audit ranker drift.
Trait Implementations§
Source§impl Clone for RoutingCandidate
impl Clone for RoutingCandidate
Source§fn clone(&self) -> RoutingCandidate
fn clone(&self) -> RoutingCandidate
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 RoutingCandidate
impl Debug for RoutingCandidate
Source§impl<'de> Deserialize<'de> for RoutingCandidate
impl<'de> Deserialize<'de> for RoutingCandidate
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
Source§impl PartialEq for RoutingCandidate
impl PartialEq for RoutingCandidate
Source§impl Serialize for RoutingCandidate
impl Serialize for RoutingCandidate
impl StructuralPartialEq for RoutingCandidate
Auto Trait Implementations§
impl Freeze for RoutingCandidate
impl RefUnwindSafe for RoutingCandidate
impl Send for RoutingCandidate
impl Sync for RoutingCandidate
impl Unpin for RoutingCandidate
impl UnsafeUnpin for RoutingCandidate
impl UnwindSafe for RoutingCandidate
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