# AgentEvent

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

Lightweight event emitted by the agent loop.

The agent stays decoupled from any specific UI: subscribe via
:data:`agent_progress_cb` to forward these to logs, NDJSON streams, websockets,
Flyte reports, etc.

## Parameters

```python
class AgentEvent(
    type: EventType,
    data: dict[str, Any],
)
```
| Parameter | Type | Description |
|-|-|-|
| `type` | `EventType` | |
| `data` | `dict[str, Any]` | |

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