Class ChannelReactionTools
Semantic Kernel tool plugin that lets agents add emoji reactions to messages. The agent chooses the emoji — useful for expressing acknowledgment, status, or emotion.
public sealed class ChannelReactionTools
- Inheritance
-
ChannelReactionTools
- Inherited Members
Constructors
ChannelReactionTools(IChannelRegistry)
Semantic Kernel tool plugin that lets agents add emoji reactions to messages. The agent chooses the emoji — useful for expressing acknowledgment, status, or emotion.
public ChannelReactionTools(IChannelRegistry channelRegistry)
Parameters
channelRegistryIChannelRegistry
Properties
ActiveChannelType
The channel ID of the conversation the agent is currently responding to. Set by the message handler before each turn.
public string? ActiveChannelType { get; set; }
Property Value
ActiveConversationId
The conversation/channel ID of the current message context.
public string? ActiveConversationId { get; set; }
Property Value
ActiveMessageId
The message ID the agent is currently responding to.
public string? ActiveMessageId { get; set; }
Property Value
Methods
ReactAsync(string, CancellationToken)
[KernelFunction("react")]
public Task<string> ReactAsync(string emoji, CancellationToken ct = default)
Parameters
emojistringctCancellationToken
Returns
ReactToMessageAsync(string, string, string, CancellationToken)
[KernelFunction("react_to_message")]
public Task<string> ReactToMessageAsync(string conversationId, string messageId, string emoji, CancellationToken ct = default)
Parameters
conversationIdstringmessageIdstringemojistringctCancellationToken