pub struct PromptCommand {Show 15 fields
pub command_type: String,
pub progress_message: String,
pub content_length: usize,
pub arg_names: Option<Vec<String>>,
pub allowed_tools: Option<Vec<String>>,
pub model: Option<String>,
pub source: CommandSource,
pub plugin_info: Option<PluginInfo>,
pub disable_non_interactive: Option<bool>,
pub hooks: Option<Value>,
pub skill_root: Option<String>,
pub context: Option<ExecutionContext>,
pub agent: Option<String>,
pub effort: Option<String>,
pub paths: Option<Vec<String>>,
}Expand description
Prompt command configuration.
Fields§
§command_type: String§progress_message: String§content_length: usize§arg_names: Option<Vec<String>>§allowed_tools: Option<Vec<String>>§model: Option<String>§source: CommandSource§plugin_info: Option<PluginInfo>§disable_non_interactive: Option<bool>§hooks: Option<Value>Hooks to register when this skill is invoked
skill_root: Option<String>Base directory for skill resources
context: Option<ExecutionContext>Execution context: ‘inline’ (default) or ‘fork’ (run as sub-agent)
agent: Option<String>Agent type to use when forked
effort: Option<String>Effort level
paths: Option<Vec<String>>Glob patterns for file paths this skill applies to
Trait Implementations§
Source§impl Clone for PromptCommand
impl Clone for PromptCommand
Source§fn clone(&self) -> PromptCommand
fn clone(&self) -> PromptCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 PromptCommand
impl Debug for PromptCommand
Source§impl<'de> Deserialize<'de> for PromptCommand
impl<'de> Deserialize<'de> for PromptCommand
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 PromptCommand
impl RefUnwindSafe for PromptCommand
impl Send for PromptCommand
impl Sync for PromptCommand
impl Unpin for PromptCommand
impl UnsafeUnpin for PromptCommand
impl UnwindSafe for PromptCommand
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