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
async def ask(target: str, text: str) -> 'ConversationReply'Parameters
ParamField
strSymbolic target token (“origin”, “<platform>”, “<platform>:<chat_id>[:<thread_id>]”, or a friendly alias).
ParamField
strThe prompt to send.
Returns
ResponseField
'ConversationReply'class:ConversationReply describing the outcome.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3800