pub struct Agent {
pub id: String,
pub name: String,
pub workspace: String,
pub status: AgentStatus,
pub started_at: String,
pub isolated: bool,
pub interactive: bool,
pub session_dir: PathBuf,
pub permission_posture: PermissionPosture,
pub reason: Option<String>,
pub detail: Option<String>,
}Expand description
Prospero’s view of a single agent (projected from a caliban AgentRecord).
Fields§
§id: StringOpaque caliban agent id.
name: StringHuman-readable label.
workspace: StringOwning workspace name (Prospero registry key).
status: AgentStatusCurrent lifecycle state.
started_at: StringRFC-3339 timestamp when the agent was registered.
isolated: boolTrue if the agent runs in an isolated git worktree.
interactive: boolTrue if the agent was spawned in interactive mode (accepts operator input).
session_dir: PathBufPath to the agent’s session directory on disk.
permission_posture: PermissionPostureThe posture this agent is actually running under (#238) — in k8s the one
the operator admitted, not the one requested. #[serde(default)] so a
snapshot from an older prosperod still deserializes, as supervised.
reason: Option<String>Why the agent is in this state, when something other than the agent
itself decided it (#241). A machine-readable code from the backend —
e.g. PostureNotPermitted when the operator refused an unattended task
because its Workspace forbids one. None when there is nothing to
explain, which is the healthy case.
detail: Option<String>Human-readable detail for Agent::reason, when the backend supplied
one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
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 Agent
Source§impl JsonSchema for Agent
impl JsonSchema for Agent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more