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

# snapshot • AI Agent SDK

> snapshot: Return a small, JSON-serialisable forensic context.

# snapshot

Method

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

Return a small, JSON-serialisable forensic context.

Must never raise; on any internal failure it returns a best-effort
(possibly partial) dict so the caller can still log *something*.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def snapshot(signal_name: Optional[str]) -> Dict[str, Any]
```

## Parameters

**signal\_name** `Optional[str]`

No description available.

### Returns

**Returns** `Dict[str, Any]`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L5748)
>
> `praisonaiagents/gateway/protocols.py` at line 5748


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