Expand description
后台任务 + todo 条目类型。
Structs§
- Output
Slice - A stretch of a task’s output: bytes
from_byte..next_byteof everything the work ever printed. - Running
Task - 一件属于会话、在会话里继续跑的工作:子 Agent、团队成员、执行中的 Shell……
输出(
append_output)/ events_log / status 由跑它的那段代码追加;TaskOutput 工具与宿主的session.taskOutput读快照,或按字节偏移接着读; TaskStop 与宿主的session.stopTask触发 cancel token。 - TaskId
- Strongly-typed task identifier.
- Task
Info - A task as
session.taskslists it and thetask_*events carry it. - Todo
Item - 一条 todo —— 模型用 TodoWrite 一次性替换整个列表。
Enums§
- Running
Status - Task
Event - What a session’s tasks report as they run
(
SessionState::subscribe_tasksinsession-state). - Task
Status - Task
Type - Task type enum — categorises all background/async task kinds.
- Todo
Status
Traits§
- Task
Inbox - Delivers a message to a running task’s work.