Struct AgentCard
pub struct AgentCard {
pub name: String,
pub description: String,
pub supported_interfaces: Vec<AgentInterface>,
pub version: String,
pub capabilities: AgentCapabilities,
pub default_input_modes: Vec<String>,
pub default_output_modes: Vec<String>,
pub skills: Vec<AgentSkill>,
}Expand description
A2A AgentCard (spec §14) — the discovery surface for an agent.
Serializes to the protobuf-JSON wire shape.
Deserialization is strict for the spec-REQUIRED fields (proto fixture
a2a-v1.proto:374): name, description, version, supportedInterfaces,
capabilities, defaultInputModes, defaultOutputModes, and skills must
all be present and non-null. This is the shared parse boundary for both
untrusted peer discovery responses and inbound payloads; a card omitting a
REQUIRED field (or sending null) is malformed and must be rejected, not
silently defaulted to an empty value — otherwise a broken peer can appear as
a successful discovery result. (A present-but-empty list is still accepted:
the proto allows an empty repeated REQUIRED field.)
Fields§
§name: String§description: String§supported_interfaces: Vec<AgentInterface>§version: String§capabilities: AgentCapabilities§default_input_modes: Vec<String>§default_output_modes: Vec<String>§skills: Vec<AgentSkill>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentCard
impl<'de> Deserialize<'de> for AgentCard
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AgentCard
impl JsonSchema for AgentCard
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 AgentCard
Auto Trait Implementations§
impl Freeze for AgentCard
impl RefUnwindSafe for AgentCard
impl Send for AgentCard
impl Sync for AgentCard
impl Unpin for AgentCard
impl UnsafeUnpin for AgentCard
impl UnwindSafe for AgentCard
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