> ## 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.

# Context Event Type • Rust AI Agent SDK

> ContextEventType: Type of context event.

# ContextEventType

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

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

Type of context event.

## Fields

| Name           | Type      | Description           |
| -------------- | --------- | --------------------- |
| `Agent`        | `variant` | -                     |
| `started`      | `variant` | -                     |
| `AgentStart`   | `variant` | Agent started         |
| `Agent`        | `variant` | -                     |
| `completed`    | `variant` | -                     |
| `AgentEnd`     | `variant` | Agent completed       |
| `Tool`         | `variant` | -                     |
| `call`         | `variant` | -                     |
| `started`      | `variant` | -                     |
| `ToolStart`    | `variant` | Tool call started     |
| `Tool`         | `variant` | -                     |
| `call`         | `variant` | -                     |
| `completed`    | `variant` | -                     |
| `ToolEnd`      | `variant` | Tool call completed   |
| `LLM`          | `variant` | -                     |
| `request`      | `variant` | -                     |
| `started`      | `variant` | -                     |
| `LlmStart`     | `variant` | LLM request started   |
| `LLM`          | `variant` | -                     |
| `response`     | `variant` | -                     |
| `received`     | `variant` | -                     |
| `LlmEnd`       | `variant` | LLM response received |
| `Memory`       | `variant` | -                     |
| `operation`    | `variant` | -                     |
| `MemoryOp`     | `variant` | Memory operation      |
| `Workflow`     | `variant` | -                     |
| `step`         | `variant` | -                     |
| `WorkflowStep` | `variant` | Workflow step         |
| `Error`        | `variant` | -                     |
| `occurred`     | `variant` | -                     |
| `Error`        | `variant` | Error occurred        |
| `Custom`       | `variant` | -                     |
| `event`        | `variant` | -                     |
| `Custom`       | `variant` | Custom event          |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/trace/mod.rs">
  `praisonai/src/trace/mod.rs` at line 0
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Context Management" icon="layer-group" href="/docs/rust/context-management" />

  <Card title="Rust Token Management" icon="coins" href="/docs/rust/token-management" />
</CardGroup>
