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

NameTypeDescription
nameStringAgent name
descriptionStringAgent description
urlStringA2A endpoint URL
versionStringVersion string
prefixStringURL prefix for router
tagsVec<String>OpenAPI tags
agent_cardOption<A2AAgentCard>Agent card cache

Methods

new

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

Create a new A2A interface

Parameters:

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

description

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

Set description

Parameters:

NameType
descriptionimpl Into&lt;String&gt;

version

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

Set version

Parameters:

NameType
versionimpl Into&lt;String&gt;

prefix

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

Set URL prefix

Parameters:

NameType
prefiximpl Into&lt;String&gt;

get_agent_card

rust
fn get_agent_card(&self) -> A2AAgentCard

Get the Agent Card for this A2A instance

get_status

rust
fn get_status(&self) -> HashMap<String, String>

Get status

Source

View on GitHub

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


Related Documentation