pub struct AgentSkill {
pub id: Arc<str>,
pub name: Arc<str>,
pub description: Arc<str>,
pub tags: Vec<Arc<str>>,
}Expand description
One skill the agent advertises — a focused capability the agent can describe more concretely than the agent as a whole.
A Skill is largely descriptive: the id is the addressable
handle a client can use to route a request, the tags are
keywords a discovery index can search on, the examples are
prompts a UI can surface as quick-pick chips.
Fields§
§id: Arc<str>A unique identifier for the skill within the card. The spec marks this REQUIRED; the builder rejects an empty id.
name: Arc<str>A human-readable name. REQUIRED.
description: Arc<str>A detailed description. REQUIRED.
A set of keywords describing the skill. REQUIRED — the field is always present on the wire (an empty array is valid), so the builder allows it to be empty but the field is not optional.
Trait Implementations§
Source§impl Clone for AgentSkill
impl Clone for AgentSkill
Source§impl Debug for AgentSkill
impl Debug for AgentSkill
Source§impl<'de> Deserialize<'de> for AgentSkill
impl<'de> Deserialize<'de> for AgentSkill
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 AgentSkill
Source§impl PartialEq for AgentSkill
impl PartialEq for AgentSkill
Source§impl Serialize for AgentSkill
impl Serialize for AgentSkill
impl StructuralPartialEq for AgentSkill
Auto Trait Implementations§
impl Freeze for AgentSkill
impl RefUnwindSafe for AgentSkill
impl Send for AgentSkill
impl Sync for AgentSkill
impl Unpin for AgentSkill
impl UnsafeUnpin for AgentSkill
impl UnwindSafe for AgentSkill
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