Skip to content

src/dazzle_ui/runtime/task_context.py

Generated: 2026-03-30T04:38:49.263083+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

TaskContext for human task rendering in surfaces.

When a surface is rendered as part of a human task, TaskContext provides task-specific information like outcomes, due dates, and assignee details.

Key Exports

  • TaskOutcome
  • TaskContext
  • create_task_context_from_task
  • is_overdue
  • is_escalated
  • time_remaining
  • urgency
  • to_dict
  • to_json

Dependencies

Imports

  • __future__.annotations
  • dataclasses.dataclass
  • dataclasses.field
  • datetime.UTC
  • datetime.datetime
  • typing.Any
  • json

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.