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

# ask • AI Agent SDK

> ask: Send ``text`` to ``target`` and await the next correlated reply.

# ask

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

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

Send `text` to `target` and await the next correlated reply.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def ask(target: str, text: str) -> 'ConversationReply'
```

## Parameters

<ParamField query="target" type="str" required={true}>
  Symbolic target token ("origin", "\<platform>", "\<platform>:\<chat\_id>\[:\<thread\_id>]", or a friendly alias).
</ParamField>

<ParamField query="text" type="str" required={true}>
  The prompt to send.
</ParamField>

### Returns

<ResponseField name="Returns" type="'ConversationReply'">
  class:`ConversationReply` describing the outcome.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L2684">
  `praisonaiagents/gateway/protocols.py` at line 2684
</Card>
