skill-send-to-agent/__init__.py

27 lines
713 B
Python

"""openclaw-channel plugin.
Registers the send_to_agent tool for inter-agent messaging via openclaw-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="openclaw",
schema=SEND_SCHEMA,
handler=_send,
check_fn=_check,
description="Send a message to another fleet agent via openclaw-relay.",
emoji="📡",
)
logger.info("openclaw-channel: registered send_to_agent (agent=%s)", AGENT_ID)