Expand description
Todo extension primitives.
This module provides:
- an in-memory todo store shared through
BaseCtxstate, - tool input/output types for reading and updating the list,
- and the public tool entrypoint (
TodoTool).
The todo list is session-scoped rather than durable. Repeated calls in the same context tree, including subagents spawned from that session, see the same ordered task list.
Structs§
- Todo
Args - Arguments for the todo tool.
- Todo
Item - Normalized todo item returned by the tool.
- Todo
Item Input - Input item accepted by the todo tool.
- Todo
Output - Output returned by the todo tool.
- Todo
Session - Shared todo session handle stored on
BaseCtx. - Todo
Store - In-memory ordered todo store.
- Todo
Summary - Summary counts returned with the todo list.
- Todo
Tool - Tool implementation that exposes the session todo list to the agent.
Functions§
- todo_
session - Returns the current todo session for the context, creating one on demand.