Represents parsed slash commands for multi-channel messaging systems.
// Source: https://github.com/metadist/synaplan | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
namespace App\Service\Message;
/**
* One parsed leading slash command from a user message.
*
* Shared by every channel that feeds {@see MessageProcessor} so Telegram,
* WhatsApp, email and MCP all honour the same bare-command and rewrite rules.
*/
final readonly class SlashCommand
{
/** Commands that must carry a non-empty argument or get a usage hint. */
public const REQUIRES_ARGUMENT = ['pic', 'vid', 'tts', 'search', 'docs'];
/**
* Deterministic tool topics for commands that keep their slash form through
* classification. `
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key