Struct AgentRecord
pub struct AgentRecord {
pub id: String,
pub name: String,
pub status: AgentStatus,
pub started_at: String,
pub session_dir: PathBuf,
pub endpoint: Endpoint,
pub working_dir: PathBuf,
pub spec: SpawnSpec,
}Expand description
Snapshot describing a registered sub-agent.
Fields§
§id: StringOpaque id.
name: StringHuman-readable label (frontmatter label or generated default).
status: AgentStatusCurrent lifecycle state.
started_at: StringRFC-3339 timestamp of when the agent was registered.
session_dir: PathBufPath to the agent’s durable session directory (the transcript, and — once
#651 lands — the resumable session; the resume reference a Drain returns).
endpoint: EndpointEndpoint for the agent’s per-agent socket (for attach).
working_dir: PathBufResolved working directory for the worker (the source dir, or its
per-source worktree when spec.isolation_worktree). Empty = inherit
the daemon’s cwd (legacy records). (#281)
spec: SpawnSpecOriginal spawn spec (preserved so respawn can re-run).
Implementations§
§impl AgentRecord
impl AgentRecord
pub fn unix_socket_path(&self) -> Option<&Path>
pub fn unix_socket_path(&self) -> Option<&Path>
The Unix socket path, when this agent is served over a Unix socket.
Trait Implementations§
§impl Clone for AgentRecord
impl Clone for AgentRecord
§fn clone(&self) -> AgentRecord
fn clone(&self) -> AgentRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AgentRecord
impl Debug for AgentRecord
§impl<'de> Deserialize<'de> for AgentRecord
impl<'de> Deserialize<'de> for AgentRecord
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for AgentRecord
impl Serialize for AgentRecord
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AgentRecord
impl RefUnwindSafe for AgentRecord
impl Send for AgentRecord
impl Sync for AgentRecord
impl Unpin for AgentRecord
impl UnsafeUnpin for AgentRecord
impl UnwindSafe for AgentRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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