pub struct AgentProfile {
pub role: String,
pub tools: Vec<String>,
pub constraints: Vec<String>,
pub execution: Option<NamedProfile>,
}Expand description
Specialized agent profile for a task.
Fields§
§role: StringRole name, e.g., “backend specialist”
tools: Vec<String>Tools allowed for this task
constraints: Vec<String>Constraints for this task
execution: Option<NamedProfile>The model/effort choice associated with this route, cleared on failover.
Implementations§
Source§impl AgentProfile
impl AgentProfile
Sourcepub fn default_from_config(config: &RouterConfig) -> Self
pub fn default_from_config(config: &RouterConfig) -> Self
Build the default “general” profile from router config.
Trait Implementations§
Source§impl Clone for AgentProfile
impl Clone for AgentProfile
Source§impl Debug for AgentProfile
impl Debug for AgentProfile
Source§impl Default for AgentProfile
impl Default for AgentProfile
Source§impl<'de> Deserialize<'de> for AgentProfile
impl<'de> Deserialize<'de> for AgentProfile
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 AgentProfile
impl PartialEq for AgentProfile
Source§impl Serialize for AgentProfile
impl Serialize for AgentProfile
impl StructuralPartialEq for AgentProfile
Auto Trait Implementations§
impl Forget for AgentProfile
impl Freeze for AgentProfile
impl Move for AgentProfile
impl RefUnwindSafe for AgentProfile
impl Send for AgentProfilewhere
RawVecInner: Send,
impl Sync for AgentProfilewhere
RawVecInner: Sync,
impl Unpin for AgentProfile
impl UnsafeUnpin for AgentProfilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for AgentProfilewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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