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

python
async def react(target: str, emoji: str) -> 'ReactionResult'

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 reaction emoji to add/remove.

Returns

ResponseField 'ReactionResult'

class:ReactionResult describing the outcome.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3611