pub enum AgentRegistrySpawnValidationErrorReason {
CwdNotFound,
CwdNotDirectory,
InvalidName,
UnknownAgent,
UnknownModel,
YoloNotAllowed,
Unknown,
}Expand description
Categorized reason for the rejection. Low-cardinality enum so telemetry can aggregate by reason without leaking raw paths or agent/model names.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
CwdNotFound
Provided cwd does not exist on disk
CwdNotDirectory
Provided cwd exists but is not a directory
InvalidName
Session name failed validateSessionName
UnknownAgent
Requested agent name was not found in builtin or custom agents
UnknownModel
Requested model is not available to this session
YoloNotAllowed
Caller asked for permissionMode=‘yolo’ but the controller is not currently in allow-all mode
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for AgentRegistrySpawnValidationErrorReason
impl Clone for AgentRegistrySpawnValidationErrorReason
Source§fn clone(&self) -> AgentRegistrySpawnValidationErrorReason
fn clone(&self) -> AgentRegistrySpawnValidationErrorReason
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 Default for AgentRegistrySpawnValidationErrorReason
impl Default for AgentRegistrySpawnValidationErrorReason
Source§fn default() -> AgentRegistrySpawnValidationErrorReason
fn default() -> AgentRegistrySpawnValidationErrorReason
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentRegistrySpawnValidationErrorReason
impl<'de> Deserialize<'de> for AgentRegistrySpawnValidationErrorReason
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 AgentRegistrySpawnValidationErrorReason
Source§impl PartialEq for AgentRegistrySpawnValidationErrorReason
impl PartialEq for AgentRegistrySpawnValidationErrorReason
Source§fn eq(&self, other: &AgentRegistrySpawnValidationErrorReason) -> bool
fn eq(&self, other: &AgentRegistrySpawnValidationErrorReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AgentRegistrySpawnValidationErrorReason
Auto Trait Implementations§
impl Freeze for AgentRegistrySpawnValidationErrorReason
impl RefUnwindSafe for AgentRegistrySpawnValidationErrorReason
impl Send for AgentRegistrySpawnValidationErrorReason
impl Sync for AgentRegistrySpawnValidationErrorReason
impl Unpin for AgentRegistrySpawnValidationErrorReason
impl UnsafeUnpin for AgentRegistrySpawnValidationErrorReason
impl UnwindSafe for AgentRegistrySpawnValidationErrorReason
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