pub struct RoutingChoice {
pub role: String,
pub agent_id: Option<String>,
pub model: String,
}Expand description
The candidate that won the routing decision. Stored separately from the candidate list (rather than as an index) so the chosen binding survives a future change to the candidate-list ordering rules.
Fields§
§role: String§agent_id: Option<String>§model: StringTrait Implementations§
Source§impl Clone for RoutingChoice
impl Clone for RoutingChoice
Source§fn clone(&self) -> RoutingChoice
fn clone(&self) -> RoutingChoice
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 RoutingChoice
impl Debug for RoutingChoice
Source§impl<'de> Deserialize<'de> for RoutingChoice
impl<'de> Deserialize<'de> for RoutingChoice
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 RoutingChoice
impl PartialEq for RoutingChoice
Source§impl Serialize for RoutingChoice
impl Serialize for RoutingChoice
impl StructuralPartialEq for RoutingChoice
Auto Trait Implementations§
impl Freeze for RoutingChoice
impl RefUnwindSafe for RoutingChoice
impl Send for RoutingChoice
impl Sync for RoutingChoice
impl Unpin for RoutingChoice
impl UnsafeUnpin for RoutingChoice
impl UnwindSafe for RoutingChoice
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