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

> get_citation_text: Extract the text that a citation refers to.

# get\_citation\_text

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

> This is a method of the [**DeepResearchResponse**](../classes/DeepResearchResponse) class in the [**deep\_research\_agent**](../modules/deep_research_agent) module.

Extract the text that a citation refers to.

## Signature

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

## Parameters

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

### 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/agent/deep_research_agent.py#L136">
  `praisonaiagents/agent/deep_research_agent.py` at line 136
</Card>
