Skip to main content

ask

AsyncMethod
This is a method of the ConversationRequestProtocol class in the protocols module.
Send text to target and await the next correlated reply.

Signature

Parameters

str
required
Symbolic target token (“origin”, “<platform>”, “<platform>:<chat_id>[:<thread_id>]”, or a friendly alias).
str
required
The prompt to send.

Returns

'ConversationReply'
class:ConversationReply describing the outcome.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2684