react • AI Agent SDK
react: Add (or remove) a reaction on a message (Issue #3917).
react
Async
Method
</div>
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
async def react(target: str, emoji: str) -> 'ReactionResult'Parameters
strSymbolic target token (“origin”, “<platform>”, “<platform>:<chat_id>[:<thread_id>]”, or a friendly alias).
strThe reaction emoji to add/remove.
Returns
'ReactionResult'class:ReactionResult describing the outcome.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3611