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

# Format Answer With Citations • AI Agent SDK

> format_answer_with_citations: Format answer with inline citation references.

# format\_answer\_with\_citations

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

> This is a method of the [**RAGResult**](../classes/RAGResult) class in the [**models**](../modules/models) module.

Format answer with inline citation references.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def format_answer_with_citations() -> str
```

### Returns

<ResponseField name="Returns" type="str">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/rag/models.py#L174">
  `praisonaiagents/rag/models.py` at line 174
</Card>
