pub enum AgentRef {
Named {
agent_id: 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.
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}).
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