ask • AI Agent SDK

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

ask

Async

Method

</div>

This is a method of the ConversationRequestProtocol class in the protocols module.

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

Signature

python
async def ask(target: str, text: str) -> 'ConversationReply'

Parameters

ParamField str

Symbolic target token (“origin”, “&lt;platform&gt;”, “&lt;platform&gt;:&lt;chat_id&gt;[:&lt;thread_id&gt;]”, or a friendly alias).

ParamField str

The prompt to send.

Returns

ResponseField 'ConversationReply'

class:ConversationReply describing the outcome.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3800