pub struct AvailableCommand {
pub name: String,
pub description: String,
pub input: Option<AvailableCommandInput>,
}Expand description
A slash-command the agent makes available. The
consumer surfaces the command in a UI; when the
user invokes the command, the consumer sends
the command’s input as a session/prompt.
Fields§
§name: StringCommand name (e.g., create_plan,
research_codebase).
description: StringHuman-readable description of what the command does.
input: Option<AvailableCommandInput>Input for the command if required.
Trait Implementations§
Source§impl Clone for AvailableCommand
impl Clone for AvailableCommand
Source§impl Debug for AvailableCommand
impl Debug for AvailableCommand
Source§impl<'de> Deserialize<'de> for AvailableCommand
impl<'de> Deserialize<'de> for AvailableCommand
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
impl Eq for AvailableCommand
Source§impl PartialEq for AvailableCommand
impl PartialEq for AvailableCommand
Source§impl Serialize for AvailableCommand
impl Serialize for AvailableCommand
impl StructuralPartialEq for AvailableCommand
Auto Trait Implementations§
impl Freeze for AvailableCommand
impl RefUnwindSafe for AvailableCommand
impl Send for AvailableCommand
impl Sync for AvailableCommand
impl Unpin for AvailableCommand
impl UnsafeUnpin for AvailableCommand
impl UnwindSafe for AvailableCommand
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