pub struct AgentDescriptor {
pub id: AgentId,
pub preset: Option<String>,
pub description: String,
pub mode: AgentMode,
pub enabled: bool,
pub runnable_as_root: bool,
pub resolved_fallback: Vec<ModelSelection>,
pub delegation_targets: Vec<AgentId>,
}Fields§
§id: AgentId§preset: Option<String>§description: String§mode: AgentMode§enabled: bool§runnable_as_root: bool§resolved_fallback: Vec<ModelSelection>§delegation_targets: Vec<AgentId>Implementations§
Source§impl AgentDescriptor
impl AgentDescriptor
pub fn validate(&self) -> Result<(), AgentSchemaError>
Trait Implementations§
Source§impl Clone for AgentDescriptor
impl Clone for AgentDescriptor
Source§fn clone(&self) -> AgentDescriptor
fn clone(&self) -> AgentDescriptor
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 AgentDescriptor
impl Debug for AgentDescriptor
Source§impl<'de> Deserialize<'de> for AgentDescriptor
impl<'de> Deserialize<'de> for AgentDescriptor
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentDescriptor
Source§impl JsonSchema for AgentDescriptor
impl JsonSchema for AgentDescriptor
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AgentDescriptor
impl PartialEq for AgentDescriptor
Source§fn eq(&self, other: &AgentDescriptor) -> bool
fn eq(&self, other: &AgentDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentDescriptor
impl Serialize for AgentDescriptor
impl StructuralPartialEq for AgentDescriptor
Auto Trait Implementations§
impl Freeze for AgentDescriptor
impl RefUnwindSafe for AgentDescriptor
impl Send for AgentDescriptor
impl Sync for AgentDescriptor
impl Unpin for AgentDescriptor
impl UnsafeUnpin for AgentDescriptor
impl UnwindSafe for AgentDescriptor
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