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
Schema for the SlashCommandInfo type.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlashCommandInfo
impl Debug for SlashCommandInfo
Source§impl Default for SlashCommandInfo
impl Default for SlashCommandInfo
Source§fn default() -> SlashCommandInfo
fn default() -> SlashCommandInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlashCommandInfo
impl<'de> Deserialize<'de> for SlashCommandInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SlashCommandInfo
impl RefUnwindSafe for SlashCommandInfo
impl Send for SlashCommandInfo
impl Sync for SlashCommandInfo
impl Unpin for SlashCommandInfo
impl UnsafeUnpin for SlashCommandInfo
impl UnwindSafe for SlashCommandInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more