pub enum AgentRef {
Named {
agent_id: String,
instructions_overlay: Option<String>,
},
AdHoc {
system_prompt: String,
tools: Option<ToolsConfig>,
},
}Expand description
How to identify the agent for a target.
Variants§
Named
Named agent looked up by agent_id in the agent store.
instructions_overlay, when Some, is appended to the named
agent’s own instructions for this invocation only (via
DefinitionOverrides::instructions_append). This is how a skill-fork
is expressed: “the same agent that’s running, plus this skill body as
task-specific direction.” The agent keeps its identity, tools and
scaffolding; the overlay adds the brief. None = the agent runs exactly
as defined.
AdHoc
Ad-hoc agent built on the fly. The system_prompt is appended to
_adhoc_base.md’s body; tools (if Some) replace the seeded
ToolsConfig. Mirrors today’s call_agent({system_prompt, tools}).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentRef
impl<'de> Deserialize<'de> for AgentRef
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
Auto Trait Implementations§
impl Freeze for AgentRef
impl RefUnwindSafe for AgentRef
impl Send for AgentRef
impl Sync for AgentRef
impl Unpin for AgentRef
impl UnsafeUnpin for AgentRef
impl UnwindSafe for AgentRef
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