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
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: A2AAgentCard"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffFields
| Name | Type | Description |
|---|---|---|
name | String | Agent name |
description | String | Agent description |
url | String | Agent URL |
version | String | Agent version |
capabilities | A2AAgentCapabilities | Agent capabilities |
skills | Vec<A2AAgentSkill> | Agent skills |
metadata | HashMap<String | Additional metadata |
serde_json | :Value> | Additional metadata |
Methods
new
fn new(name: impl Into<String>, description: impl Into<String>, url: impl Into<String>) -> SelfCreate a new A2A Agent Card
Parameters:
| Name | Type |
|---|---|
name | impl Into<String> |
description | impl Into<String> |
url | impl Into<String> |
version
fn version(mut self, version: impl Into<String>) -> SelfSet version
Parameters:
| Name | Type |
|---|---|
version | impl Into<String> |
with_streaming
fn with_streaming(mut self) -> SelfEnable streaming
skill
fn skill(mut self, skill: A2AAgentSkill) -> SelfAdd a skill
Parameters:
| Name | Type |
|---|---|
skill | A2AAgentSkill |
Source
View on GitHubpraisonai/src/parity/ui.rs at line 66