A2 A • Rust AI Agent SDK
A2A: A2A Interface for PraisonAI Agents Exposes a PraisonAI Agent via the A2A (Agent2Agent) protocol, enabling agent-to-agent communication with other…
A2A
Defined in the ui module.
Rust AI Agent SDK
A2A Interface for PraisonAI Agents Exposes a PraisonAI Agent via the A2A (Agent2Agent) protocol, enabling agent-to-agent communication with other A2A-compatible systems.
Fields
| Name | Type | Description |
|---|---|---|
name | String | Agent name |
description | String | Agent description |
url | String | A2A endpoint URL |
version | String | Version string |
prefix | String | URL prefix for router |
tags | Vec<String> | OpenAPI tags |
agent_card | Option<A2AAgentCard> | Agent card cache |
Methods
new
fn new(name: impl Into<String>, url: impl Into<String>) -> SelfCreate a new A2A interface
Parameters:
| Name | Type |
|---|---|
name | impl Into<String> |
url | impl Into<String> |
description
fn description(mut self, description: impl Into<String>) -> SelfSet description
Parameters:
| Name | Type |
|---|---|
description | impl Into<String> |
version
fn version(mut self, version: impl Into<String>) -> SelfSet version
Parameters:
| Name | Type |
|---|---|
version | impl Into<String> |
prefix
fn prefix(mut self, prefix: impl Into<String>) -> SelfSet URL prefix
Parameters:
| Name | Type |
|---|---|
prefix | impl Into<String> |
get_agent_card
fn get_agent_card(&self) -> A2AAgentCardGet the Agent Card for this A2A instance
get_status
fn get_status(&self) -> HashMap<String, String>Get status
Source
View on GitHubpraisonai/src/parity/ui.rs at line 144