TodoItem#

Build extensions, choose hooks, and manage request-scoped state. See the guide.

class zett_agent.extensions.todo.TodoItem(*, content, status)[源代码]#

One ordered task in the request-scoped list submitted through todo_write.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

参数:

Fields#

content (required)

Task text; fixed once the list is first created.

status (required)

Lifecycle state: "pending" (not started), "in_progress" (the one current task), or "completed" (finished).