Skip to main content

Module api_workflows

Module api_workflows 

Source
Expand description

REST API handlers for workflow management (/api/workflows).

Each workflow definition is a Kumiho item of kind "workflow" in the Construct/Workflows space. The YAML definition and metadata (description, version, tags, steps count) are stored as revision metadata.

Provides:

  • GET /api/workflows — list workflow definitions
  • POST /api/workflows — create a new workflow
  • PUT /api/workflows/{*kref} — update an existing workflow
  • DELETE /api/workflows/{*kref} — delete a workflow
  • POST /api/workflows/deprecate — toggle deprecation
  • GET /api/workflows/runs — recent workflow runs (from Kumiho)
  • GET /api/workflows/runs/{id} — single run detail
  • GET /api/workflows/dashboard — aggregated stats

Structs§

AgentActivityQuery
ApprovalOutputData
ApproveWorkflowBody
CreateWorkflowBody
DeprecateBody
RetryWorkflowBody
RunWorkflowBody
TranscriptEntry
WorkflowDashboard
WorkflowListQuery
WorkflowResponse
WorkflowRunDetail
WorkflowRunSummary
WorkflowRunsQuery
WorkflowStepDetail
WorkflowTrigger

Functions§

handle_agent_activity
GET /api/workflows/agent-activity/{agent_id}
handle_approve_workflow_run
POST /api/workflows/runs/{run_id}/approve
handle_create_workflow
POST /api/workflows
handle_delete_workflow
DELETE /api/workflows/{*kref}
handle_delete_workflow_run
DELETE /api/workflows/runs/{run_id}
handle_deprecate_workflow
POST /api/workflows/deprecate
handle_get_workflow_by_revision
GET /api/workflows/revisions/{*kref}
handle_get_workflow_run
GET /api/workflows/runs/{run_id}
handle_list_workflow_runs
GET /api/workflows/runs
handle_list_workflows
GET /api/workflows
handle_retry_workflow_run
POST /api/workflows/runs/{run_id}/retry
handle_run_workflow
POST /api/workflows/run/{name}
handle_update_workflow
PUT /api/workflows/{*kref}
handle_workflow_dashboard
GET /api/workflows/dashboard