pub struct AgentSpec {
pub description: String,
pub enabled: bool,
pub instructions: Option<String>,
pub capabilities: Vec<CapabilityId>,
pub providers: Vec<ProviderId>,
pub model_class: Option<String>,
pub policy_profile: Option<String>,
}Expand description
Desired state of an agent.
Fields§
§description: StringConcise operator-facing purpose.
enabled: boolWhether orchestration may schedule the agent.
instructions: Option<String>The agent’s standing orders, handed to the model as its system prompt.
This is untrusted model text by definition. It shapes how an agent answers and nothing else: it can never assert identity or authority, name a principal, widen a capability, or influence an authorization decision. Everything an agent may actually do comes from broker policy, which never reads this field.
capabilities: Vec<CapabilityId>Capabilities the agent may propose. This list itself grants no provider authority.
providers: Vec<ProviderId>Providers the agent is expected to use through its capabilities.
model_class: Option<String>Optional model class selected by future orchestration.
policy_profile: Option<String>Optional declarative policy profile name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentSpec
impl<'de> Deserialize<'de> for AgentSpec
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
impl Eq for AgentSpec
Source§impl JsonSchema for AgentSpec
impl JsonSchema for AgentSpec
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 moreimpl StructuralPartialEq for AgentSpec
Auto Trait Implementations§
impl Freeze for AgentSpec
impl RefUnwindSafe for AgentSpec
impl Send for AgentSpec
impl Sync for AgentSpec
impl Unpin for AgentSpec
impl UnsafeUnpin for AgentSpec
impl UnwindSafe for AgentSpec
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