react
AsyncMethod
This is a method of the OutboundMessengerProtocol class in the protocols module.Add (or remove) a reaction on a message (Issue #3917). A lightweight acknowledgement path for busy group channels: rather than posting a whole reply, an agent can react with a single emoji. Gated on the channel’s
PlatformCapabilities.reactions — a channel that cannot
react returns a typed unsupported outcome instead of raising, so the
model never has to guess.
Signature
Parameters
str
required
Symbolic target token (“origin”, “<platform>”, “<platform>:<chat_id>[:<thread_id>]”, or a friendly alias).
str
required
The reaction emoji to add/remove.
Returns
'ReactionResult'
class:
ReactionResult describing the outcome.Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 2571
