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

# text • AI Agent SDK

> text: Convenience: concatenate all text blocks.

# text

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

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

Convenience: concatenate all text blocks.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def text() -> 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/managed/events.py#L73">
  `praisonaiagents/managed/events.py` at line 73
</Card>
