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

# Add Step • AI Agent SDK

> add_step: Add a step to history.

# add\_step

Method

> This is a method of the [**StageContext**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/StageContext.md) class in the [**types**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/types.md) module.

Add a step to history.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def add_step(action: str, result: Any, success: bool) -> Any
```

## Parameters

**action** `str` *required*

No description available.

**result** `Any` *required*

No description available.

**success** `bool` (default: True)

No description available.

### Returns

**Returns** `Any`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/escalation/types.py#L177)
>
> `praisonaiagents/escalation/types.py` at line 177


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.