Skip to main content

Module todo

Module todo 

Source
Expand description

Todo extension primitives.

This module provides:

  • an in-memory todo store shared through BaseCtx state,
  • 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§

TodoArgs
Arguments for the todo tool.
TodoItem
Normalized todo item returned by the tool.
TodoItemInput
Input item accepted by the todo tool.
TodoOutput
Output returned by the todo tool.
TodoSession
Shared todo session handle stored on BaseCtx.
TodoStore
In-memory ordered todo store.
TodoSummary
Summary counts returned with the todo list.
TodoTool
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.

Type Aliases§

TodoToolHook