Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Allow exposes only these command names; empty means all.
Allow []string `json:"allow,omitempty"`
// Deny hides these command names; applied after Allow.
Deny []string `json:"deny,omitempty"`
}
Config controls which contributed commands are exposed. Allow and Deny match command names and aliases case-insensitively. When Allow is empty, every command is eligible unless denied. When Allow is non-empty, only listed commands are registered.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry collects slash commands contributed by built plugins.
func NewFromProviders ¶
func NewFromProviders(cfg Config, providers []agentkit.CommandProvider) (*Registry, error)
NewFromProviders builds a registry from explicit command providers.
func (*Registry) SetCommands ¶
func (r *Registry) SetCommands(providers []agentkit.CommandProvider) error
SetCommands registers commands from every built CommandProvider.
Click to show internal directories.
Click to hide internal directories.