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

# As Dict • AI Agent SDK

> as_dict: Convert to a serializable dictionary (for the handshake wire).

# as\_dict

Method

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

Convert to a serializable dictionary (for the handshake wire).

## Signature

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

### 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#L6620)
>
> `praisonaiagents/gateway/protocols.py` at line 6620


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