Skip to main content

Module task

Module task 

Source
Expand description

后台任务 + todo 条目类型。

Structs§

OutputSlice
A stretch of a task’s output: bytes from_byte..next_byte of everything the work ever printed.
RunningTask
一件属于会话、在会话里继续跑的工作:子 Agent、团队成员、执行中的 Shell…… 输出(append_output)/ events_log / status 由跑它的那段代码追加;TaskOutput 工具与宿主的 session.taskOutput 读快照,或按字节偏移接着读; TaskStop 与宿主的 session.stopTask 触发 cancel token。
TaskId
Strongly-typed task identifier.
TaskInfo
A task as session.tasks lists it and the task_* events carry it.
TodoItem
一条 todo —— 模型用 TodoWrite 一次性替换整个列表。

Enums§

RunningStatus
TaskEvent
What a session’s tasks report as they run (SessionState::subscribe_tasks in session-state).
TaskStatus
TaskType
Task type enum — categorises all background/async task kinds.
TodoStatus

Traits§

TaskInbox
Delivers a message to a running task’s work.