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
Fields
| 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