Class ChannelOpsTools
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
registryIChannelRegistry
Methods
ConnectChannelAsync(string)
[KernelFunction("channel_connect")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public Task<string> ConnectChannelAsync(string channelType)
Parameters
channelTypestring
Returns
DisconnectChannelAsync(string)
[KernelFunction("channel_disconnect")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public Task<string> DisconnectChannelAsync(string channelType)
Parameters
channelTypestring
Returns
GetChannelStatus(string)
[KernelFunction("channel_status")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public string GetChannelStatus(string channelType)
Parameters
channelTypestring
Returns
ListChannels()
[KernelFunction("channel_list")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public string ListChannels()
Returns
SendMessageAsync(string, string, string)
[KernelFunction("channel_send")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public Task<string> SendMessageAsync(string channelType, string conversationId, string message)