pub struct TaskSummary {
pub task: String,
pub state: String,
pub started_ms: u64,
pub last_activity_ms: u64,
pub prompt: String,
pub agent_id: String,
pub usage: RunUsage,
}Expand description
One task, as Tasks::list reports it and as a
--continue-shaped continuation picks from it.
Fields§
§task: String§state: Stringrunning, resumable, or whatever the terminal record settled on.
started_ms: u64§last_activity_ms: u64When this task was last worked in, per this crate’s own
last_activity_ms. What the list is ordered by, and what a
continuation picks by.
prompt: StringThe prompt’s first line, bounded by PROMPT_BUDGET.
agent_id: StringThe mentra conversation this task minted or continued. Empty until a first attach prepares one, which is why a never-attached task cannot be continued: there is nothing yet to continue.
usage: RunUsageImplementations§
Source§impl TaskSummary
impl TaskSummary
Sourcepub fn payload(&self) -> Value
pub fn payload(&self) -> Value
The basis list --json row shape (ADR-0015): the fields above, plus
continuable and, when the task spent anything, usage. Kept here
rather than duplicated by a caller building its own object, so a
script reading --json and a host reading this struct’s JSON agree by
construction.
Trait Implementations§
Source§impl Clone for TaskSummary
impl Clone for TaskSummary
Source§fn clone(&self) -> TaskSummary
fn clone(&self) -> TaskSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more