codesweep_create
Create a new sweep for batch iteration over items, defining lifecycle states, terminal states, and batch size to track progress through customizable workflows.
Instructions
Create a new sweep for batch iteration over items.
Args:
name: Optional human-readable name (must be unique)
description: What this sweep is for
default_batch_size: Default items per batch (default: 10)
lifecycle: Ordered list of allowed states (default ["pending","done"]). For retro-style workflows: ["DETECTED","CONFIRMED","ESCALATED", "POSTPONED","RESOLVED","DROPPED"].
terminal_states: States that count as "processed" (default ["done"]).
transitions: Optional dict[state, list[allowed_next_state]] for DAG-constrained lifecycles. None = unconstrained transitions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| lifecycle | No | ||
| description | No | ||
| transitions | No | ||
| terminal_states | No | ||
| default_batch_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||