pub enum AgentsCommand {
List,
Show {
name: String,
},
Create {
name: String,
},
Edit {
name: String,
},
Delete {
name: String,
},
}Expand description
Typed representation of a parsed /agents command for definition CRUD operations.
Separate from AgentCommand (runtime operations like spawn/cancel) to avoid
namespace collision between running-agent management and definition management.
Variants§
List
List all discovered sub-agent definitions.
Show
Show full details of a definition.
Create
Create a new definition.
Edit
Edit an existing definition.
Delete
Delete a definition.
Implementations§
Source§impl AgentsCommand
impl AgentsCommand
Sourcepub fn parse(input: &str) -> Result<Self, SubAgentError>
pub fn parse(input: &str) -> Result<Self, SubAgentError>
Parse from raw input text starting with /agents.
§Errors
Returns SubAgentError::InvalidCommand if parsing fails.
Trait Implementations§
Source§impl Debug for AgentsCommand
impl Debug for AgentsCommand
Source§impl PartialEq for AgentsCommand
impl PartialEq for AgentsCommand
impl StructuralPartialEq for AgentsCommand
Auto Trait Implementations§
impl Freeze for AgentsCommand
impl RefUnwindSafe for AgentsCommand
impl Send for AgentsCommand
impl Sync for AgentsCommand
impl Unpin for AgentsCommand
impl UnsafeUnpin for AgentsCommand
impl UnwindSafe for AgentsCommand
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request