pub struct AgentSelectorArgs {
pub agent: Option<String>,
pub agent_inline: Option<String>,
pub agent_file: Option<PathBuf>,
pub agent_python_inline: Option<String>,
pub agent_python_file: Option<PathBuf>,
pub agent_tag: Option<String>,
pub agent_instance: Option<String>,
pub parent_agent_instance_hierarchy: Option<String>,
}Expand description
Required agent-selector group: exactly one of the seven selector
flags must be set. --parent-agent-instance-hierarchy rides
OUTSIDE the group (it modifies --agent-instance rather than
competing with it).
Fields§
§agent: Option<String>Remote-path string.
agent_inline: Option<String>Inline JSON for the full agent definition.
agent_file: Option<PathBuf>Path to a JSON file containing the agent definition.
agent_python_inline: Option<String>Inline Python code that produces the agent definition.
agent_python_file: Option<PathBuf>Path to a Python file that produces the agent definition.
agent_tag: Option<String>Tag name, resolved against the tags DB at execution time: BOUND → the live hierarchy, GROUPED → the group’s stored agent spec (the whole group flips to BOUND on the spawn’s hierarchy via the conduit-driven upgrade), ABSENT → error.
agent_instance: Option<String>Leaf id of an existing agent instance.
parent_agent_instance_hierarchy: Option<String>Optional lineage prefix to prepend to --agent-instance.
When omitted, the cli substitutes its own
Config.agent_instance_hierarchy.
Trait Implementations§
Source§impl Args for AgentSelectorArgs
impl Args for AgentSelectorArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for AgentSelectorArgs
impl FromArgMatches for AgentSelectorArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl TryFrom<AgentSelectorArgs> for AgentSelector
impl TryFrom<AgentSelectorArgs> for AgentSelector
Source§type Error = FromArgsError
type Error = FromArgsError
Auto Trait Implementations§
impl Freeze for AgentSelectorArgs
impl RefUnwindSafe for AgentSelectorArgs
impl Send for AgentSelectorArgs
impl Sync for AgentSelectorArgs
impl Unpin for AgentSelectorArgs
impl UnsafeUnpin for AgentSelectorArgs
impl UnwindSafe for AgentSelectorArgs
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
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>
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>
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 more