pub struct AgentRef {
pub identity_id: String,
pub memory_id: String,
pub instance_name: String,
pub working_directory: String,
}Expand description
Identifies “which agent.” Empty-string sentinels match the
existing wstore AgentInstance conventions. All fields optional
so callers can construct anything from “blank claude with ambient
creds” (all empty) up to a fully-pinned named-agent continuation.
Fields§
§identity_id: StringFK to db_identity_bundles.id. Empty = blank singleton (ambient
creds, no env-var injection at spawn).
memory_id: StringFK to db_memory_bundles.id. Empty = blank singleton (vanilla CLI,
no system instructions injected).
instance_name: StringUser-chosen instance name. Empty for one-shot launches.
Non-empty triggers the named-agent continuation path: the
runner looks up an existing AgentInstance by name and reuses
its working_directory + session_id if present.
working_directory: StringOptional explicit working directory override. Empty falls
back to allocate_agent_workdir() at run time.
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>,
impl Eq for AgentRef
impl StructuralPartialEq for AgentRef
Auto Trait Implementations§
impl Freeze for AgentRef
impl RefUnwindSafe for AgentRef
impl Send for AgentRef
impl Sync for AgentRef
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.