# AgentResult

**Package:** `flyte.ai.agents`

Outcome of a single agent invocation.

## Parameters

```python
class AgentResult(
    code: str,
    charts: list[str],
    summary: str,
    error: str,
    attempts: int,
)
```
| Parameter | Type | Description |
|-|-|-|
| `code` | `str` | |
| `charts` | `list[str]` | |
| `summary` | `str` | |
| `error` | `str` | |
| `attempts` | `int` | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flyte-sdk/packages/flyte.ai.agents/agentresult.md
**HTML**: https://www.union.ai/docs/v2/union/api-reference/flyte-sdk/packages/flyte.ai.agents/agentresult/
