> ## 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 Abbreviation • AI Agent SDK

> add_abbreviation: Add a custom abbreviation expansion.

# add\_abbreviation

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**QueryRewriterAgent**](../classes/QueryRewriterAgent) class in the [**query\_rewriter\_agent**](../modules/query_rewriter_agent) module.

Add a custom abbreviation expansion.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def add_abbreviation(abbrev: str, expansion: str) -> None
```

## Parameters

<ParamField query="abbrev" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="expansion" type="str" required={true}>
  No description available.
</ParamField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/query_rewriter_agent.py#L623">
  `praisonaiagents/agent/query_rewriter_agent.py` at line 623
</Card>
