pub struct SlashCommandInfo {
pub aliases: Option<Vec<String>>,
pub allow_during_agent_execution: bool,
pub description: String,
pub experimental: Option<bool>,
pub input: Option<SlashCommandInput>,
pub kind: SlashCommandKind,
pub name: String,
pub schedulable: Option<bool>,
}Expand description
Slash-command metadata with name, aliases, description, kind, input hint, execution allowance, and schedulability.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§aliases: Option<Vec<String>>Canonical aliases without leading slashes
allow_during_agent_execution: boolWhether the command may run while an agent turn is active
description: StringHuman-readable command description
experimental: Option<bool>Whether the command is experimental
input: Option<SlashCommandInput>Optional unstructured input hint
kind: SlashCommandKindCoarse command category for grouping and behavior: runtime built-in, skill-backed command, or SDK/client-owned command
name: StringCanonical command name without a leading slash
schedulable: Option<bool>Whether the command may be the target of /every / /after schedules. Resolution happens at every tick, so only set this when the command is safe to re-invoke and produces an agent prompt.
Trait Implementations§
Source§impl Clone for SlashCommandInfo
impl Clone for SlashCommandInfo
Source§fn clone(&self) -> SlashCommandInfo
fn clone(&self) -> SlashCommandInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more