Table of Contents

Class ChannelOpsTools

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

Operational tools for messaging channels — list, status, send, and read. Requires an IChannelRegistry for channel access.

[ToolPlugin("channels", RequiresInjection = true)]
public sealed class ChannelOpsTools
Inheritance
ChannelOpsTools
Inherited Members

Constructors

ChannelOpsTools(IChannelRegistry)

public ChannelOpsTools(IChannelRegistry registry)

Parameters

registry IChannelRegistry

Methods

ConnectChannelAsync(string)

[KernelFunction("channel_connect")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public Task<string> ConnectChannelAsync(string channelType)

Parameters

channelType string

Returns

Task<string>

DisconnectChannelAsync(string)

[KernelFunction("channel_disconnect")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public Task<string> DisconnectChannelAsync(string channelType)

Parameters

channelType string

Returns

Task<string>

GetChannelStatus(string)

[KernelFunction("channel_status")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public string GetChannelStatus(string channelType)

Parameters

channelType string

Returns

string

ListChannels()

[KernelFunction("channel_list")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public string ListChannels()

Returns

string

SendMessageAsync(string, string, string)

[KernelFunction("channel_send")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public Task<string> SendMessageAsync(string channelType, string conversationId, string message)

Parameters

channelType string
conversationId string
message string

Returns

Task<string>