Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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>) -> Self
Create 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>) -> Self
Set version
Parameters:
| Name | Type |
|---|
version | impl Into<String> |
with_streaming
fn with_streaming(mut self) -> Self
Enable streaming
skill
fn skill(mut self, skill: A2AAgentSkill) -> Self
Add a skill
Parameters:
| Name | Type |
|---|
skill | A2AAgentSkill |
Source
View on GitHub
praisonai/src/parity/ui.rs at line 66