Skip to main content

Module plugin_send_tool

Module plugin_send_tool 

Source
Expand description

plugin_channel_send — agnostic outbound-send LLM tool.

Wraps an Arc<dyn ChannelOutboundDispatcher> so agents (and the MCP autonomous worker, Phase 81.20.x F3 follow-up) can dispatch outbound messages through any channel plugin without knowing the plugin-specific broker topic or payload shape. The dispatcher’s registered [ChannelPayloadTranslator] for the named channel handles translation; missing translator surfaces as channel_unavailable at call time.

Use this tool when the agent must send a one-off message through a channel it normally talks to (email follow-up, WhatsApp reminder, Telegram nudge) and the agent does NOT have direct access to the plugin’s native tool (e.g. the autonomous_worker MCP mode runs out-of-process and cannot reach the daemon’s RemoteToolHandler instances).

Structs§

PluginChannelSendTool
Stable wrapper that lets an agent send a message through any channel plugin registered with the dispatcher. Agnostic over the plugin’s native protocol — the dispatcher’s translator owns broker topic + payload encoding.

Constants§

TOOL_NAME