A2 A Agent Card • Rust AI Agent SDK

A2AAgentCard: A2A Agent Card – Discovery information for an agent

A2AAgentCard

Defined in the ui module.

Rust AI Agent SDK

A2A Agent Card – Discovery information for an agent

Diagram

Input Data

Agent: A2AAgentCard

Output Result

Fields

NameTypeDescription
nameStringAgent name
descriptionStringAgent description
urlStringAgent URL
versionStringAgent version
capabilitiesA2AAgentCapabilitiesAgent capabilities
skillsVec<A2AAgentSkill>Agent skills
metadataHashMap<StringAdditional metadata
serde_json:Value>Additional metadata

Methods

new

rust
fn new(name: impl Into<String>, description: impl Into<String>, url: impl Into<String>) -> Self

Create a new A2A Agent Card

Parameters:

NameType
nameimpl Into&lt;String&gt;
descriptionimpl Into&lt;String&gt;
urlimpl Into&lt;String&gt;

version

rust
fn version(mut self, version: impl Into<String>) -> Self

Set version

Parameters:

NameType
versionimpl Into&lt;String&gt;

with_streaming

rust
fn with_streaming(mut self) -> Self

Enable streaming

skill

rust
fn skill(mut self, skill: A2AAgentSkill) -> Self

Add a skill

Parameters:

NameType
skillA2AAgentSkill

Source

View on GitHub

praisonai/src/parity/ui.rs at line 66


Related Documentation