> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# A2 A Agent Card • Rust AI Agent SDK

> A2AAgentCard: A2A Agent Card - Discovery information for an agent

# A2AAgentCard

> Defined in the [**ui**](../modules/ui) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

A2A Agent Card - Discovery information for an agent

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{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:#fff
```

## 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&lt;A2AAgentSkill&gt;` | Agent skills        |
| `metadata`     | `HashMap&lt;String`        | Additional metadata |
| `serde_json`   | `:Value&gt;`               | Additional metadata |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
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&lt;String&gt;` |
| `description` | `impl Into&lt;String&gt;` |
| `url`         | `impl Into&lt;String&gt;` |

### `version`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn version(mut self, version: impl Into<String>) -> Self
```

Set version

**Parameters:**

| Name      | Type                      |
| --------- | ------------------------- |
| `version` | `impl Into&lt;String&gt;` |

### `with_streaming`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn with_streaming(mut self) -> Self
```

Enable streaming

### `skill`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn skill(mut self, skill: A2AAgentSkill) -> Self
```

Add a skill

**Parameters:**

| Name    | Type            |
| ------- | --------------- |
| `skill` | `A2AAgentSkill` |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/parity/ui.rs#L66">
  `praisonai/src/parity/ui.rs` at line 66
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Agent" icon="robot" href="/docs/rust/agent" />

  <Card title="Rust Overview" icon="book-open" href="/docs/rust/overview" />

  <Card title="Rust Quickstart" icon="rocket" href="/docs/rust/quickstart" />

  <Card title="Rust Installation" icon="download" href="/docs/rust/installation" />

  <Card title="Rust Autonomy" icon="wand-magic-sparkles" href="/docs/rust/autonomy" />
</CardGroup>
