> ## 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 Task • Rust AI Agent SDK

> A2ATask: A2A Task definition

# A2ATask

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

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

A2A Task definition

## Fields

| Name         | Type                   | Description                   |
| ------------ | ---------------------- | ----------------------------- |
| `id`         | `String`               | Task ID                       |
| `state`      | `A2ATaskState`         | Task state                    |
| `input`      | `String`               | Input message                 |
| `Option`     | `:is_none")]`          | Output message (if completed) |
| `output`     | `Option&lt;String&gt;` | Output message (if completed) |
| `Option`     | `:is_none")]`          | Error message (if failed)     |
| `error`      | `Option&lt;String&gt;` | Error message (if failed)     |
| `metadata`   | `HashMap&lt;String`    | Task metadata                 |
| `serde_json` | `:Value&gt;`           | Task metadata                 |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Tasks" icon="list-check" href="/docs/rust/tasks" />

  <Card title="Rust Execution" icon="play" href="/docs/rust/execution" />

  <Card title="Rust A2A" icon="arrows-left-right" href="/docs/rust/a2a" />

  <Card title="Rust Agent-to-Agent" icon="users" href="/docs/rust/agent-to-agent-a2a" />
</CardGroup>
