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

# Conversation Request Protocol • AI Agent SDK

> ConversationRequestProtocol: Protocol for agent-facing cross-conversation request/reply.

# ConversationRequestProtocol

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

Protocol for agent-facing cross-conversation request/reply.

A concrete implementation is provided by the running gateway/bot (in the
praisonai wrapper) and registered into the per-turn context so the built-in
`ask_conversation` tool can resolve it. It sends the prompt via the same
delivery stack `send_message` uses, then correlates the *next inbound
reply* from that target (via the existing `correlation_id`) with a bounded
timeout, returning a typed :class:`ConversationReply`.

Example usage (implementation in praisonai\_bot.gateway)::

requester = BotConversationRequester(router, origin=origin)
token = register\_conversation\_requester(requester)
try:
...  # agent runs; ask\_conversation tool resolves the requester
finally:
clear\_conversation\_requester(token)

## Methods

<CardGroup cols={2}>
  <Card title="ask()" icon="function" href="../functions/ConversationRequestProtocol-ask">
    Send `text` to `target` and await the next correlated reply.
  </Card>
</CardGroup>

## Source

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