Bastion 038b674002 Rename plugin from openclaw-channel to send_to_agent
- plugin.yaml: name is now send_to_agent
- __init__.py: toolset is now send_to_agent, removed openclaw references
- send_to_agent.py: unchanged (tool name was always send_to_agent)
2026-05-18 22:24:44 -07:00

27 lines
680 B
Python

"""send_to_agent plugin.
Registers the send_to_agent tool for inter-agent messaging via relay.
See send_to_agent.py for tool implementation and README.md for context.
"""
from __future__ import annotations
import logging
logger = logging.getLogger(__name__)
def register(ctx):
from .send_to_agent import _send, _check, SEND_SCHEMA, AGENT_ID
ctx.register_tool(
name="send_to_agent",
toolset="send_to_agent",
schema=SEND_SCHEMA,
handler=_send,
check_fn=_check,
description="Send a message to another fleet agent via relay.",
emoji="📡",
)
logger.info("send_to_agent: registered (agent=%s)", AGENT_ID)