Skip to main content

Module command

Module command 

Source
Expand description

Slash-command registry for interactive agent sessions.

Commands are prefixed with / and dispatched through a CommandRegistry. Call register_builtins to register the default /help, /clear, /model, and /compact commands.

Structs§

Command
A registered slash command.
CommandRegistry
Registry of slash commands.

Traits§

CommandHandler
Handler for a single slash command.

Functions§

register_builtins
Register the default built-in commands: /help, /clear, /model, /compact.