Submit a message to the central messaging bus for agent processing. This is the primary endpoint for sending messages to agents, replacing the deprecated agent-specific message endpoints.
The message is submitted to a central channel and the appropriate agent(s) will process it based on the channel and room configuration. This architecture allows for multi-agent conversations and better message routing.
Important: Do not use /api/agents/{agentId}/message - that endpoint no longer exists.
All messages should go through this central messaging system.
Central channel ID where the message is posted
Server ID (use '00000000-0000-0000-0000-000000000000' for default)
ID of the message author (user or agent)
The message content text
Source type (e.g., 'agent_response', 'user_message')
Raw message object containing additional data
Optional ID of the message being replied to
Additional metadata including agent_name if from agent