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

# get_state

> Get a state value

Method

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

Get a state value

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_state(key: str, default: Any) -> Any
```

## Parameters

**key** `str` *required*

No description available.

**default** `Any`

No description available.

### Returns

**Returns** `Any`

The result of the operation.


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