Wait, Input, and Resume
Suspend a flow for external input and continue the same execution
Basic pattern
from kitaru import flow
import kitaru
@flow
def publish_flow(topic: str) -> str:
approved = kitaru.wait(
schema=bool,
name="approve_publish",
question=f"Approve publishing {topic}?",
metadata={"topic": topic},
)
if not approved:
return f"REJECTED: {topic}"
return f"PUBLISHED: {topic}"Get the current execution ID inside a flow
Timeout behavior
Resolve input externally (non-interactive runs)
From Python
From CLI
Validation behavior
Example in this repository
Related blog posts
Last updated
Was this helpful?