#[non_exhaustive]pub enum AgentTypeSource {
Builtin,
User,
Project {
trusted: bool,
},
Plugin {
plugin: String,
},
}Expand description
Where an AgentTypeDefinition came from, which decides whether it may
hand its sub-agent more than the parent session had.
permission_mode and max_turns may loosen what the parent had only for
a definition the user wrote or accepted: one of their own, or one in a
project they trust. A plugin’s, or an untrusted project’s, is held to the
parent’s — and an untrusted project’s does not replace a built-in, plugin
or user type of the same name.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Builtin
Shipped with Agix.
User
The global or scene agents/ directory.
Project
The project’s .agix/agents/, and whether the project is trusted.
Plugin
Declared by the plugin package plugin.
Implementations§
Source§impl AgentTypeSource
impl AgentTypeSource
Sourcepub fn may_loosen(&self) -> bool
pub fn may_loosen(&self) -> bool
May a definition from this source hand its sub-agent more than the session it was spawned from already had?
Sourcepub fn may_shadow(&self) -> bool
pub fn may_shadow(&self) -> bool
Does a definition from this source replace one of the same name from the built-ins, a plugin or another tier?