Table of Contents

Class ChannelReactionTools

Namespace
JD.AI.Core.Tools
Assembly
JD.AI.Core.dll

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

channelRegistry IChannelRegistry

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

string

ActiveConversationId

The conversation/channel ID of the current message context.

public string? ActiveConversationId { get; set; }

Property Value

string

ActiveMessageId

The message ID the agent is currently responding to.

public string? ActiveMessageId { get; set; }

Property Value

string

Methods

ReactAsync(string, CancellationToken)

[KernelFunction("react")]
public Task<string> ReactAsync(string emoji, CancellationToken ct = default)

Parameters

emoji string
ct CancellationToken

Returns

Task<string>

ReactToMessageAsync(string, string, string, CancellationToken)

[KernelFunction("react_to_message")]
public Task<string> ReactToMessageAsync(string conversationId, string messageId, string emoji, CancellationToken ct = default)

Parameters

conversationId string
messageId string
emoji string
ct CancellationToken

Returns

Task<string>