Skip to content

src/dazzle_back/runtime/task_routes.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Task API routes for human task management.

These routes provide: - Task listing (my tasks, all tasks) - Task details (with outcome options) - Task completion - Task reassignment

Key Exports

  • ProcessStepContext
  • TaskSummary
  • TaskOutcomeResponse
  • TaskDetailResponse
  • CompleteTaskRequest
  • CompleteTaskResponse
  • ReassignTaskRequest
  • TaskListResponse
  • list_tasks
  • get_task
  • complete_task
  • reassign_task
  • get_task_surface_url

Dependencies

Imports

  • __future__.annotations
  • logging
  • datetime.UTC
  • typing.Any
  • fastapi.APIRouter
  • fastapi.Depends
  • fastapi.HTTPException
  • fastapi.Query
  • pydantic.BaseModel
  • pydantic.Field
  • dazzle.core.process.adapter.ProcessTask
  • dazzle.core.process.adapter.TaskStatus
  • dazzle_back.runtime.services.RuntimeServices
  • dazzle_back.runtime.services.get_services
  • datetime.datetime

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.