Skip to main content

Module automation

Module automation 

Source
Expand description

Minimal session-scoped automation above crate::runtime::Session.

V1 keeps the boundary intentionally small:

  • automate one prepared Session
  • schedule with absolute SystemTime boundaries plus one fixed Duration
  • require every > Duration::ZERO
  • run at most one prompt turn at a time
  • collapse missed ticks into one next eligible run
  • stop permanently on stop(), stop_at, max_runs, closed session, or any crate::runtime::PromptRunError

Non-goals for this module:

  • no cron or human-time parsing
  • no session creation or resume orchestration
  • no persistence or restart recovery
  • no retry or downgrade policy for prompt failures

Structs§

AutomationHandle
AutomationSpec
AutomationStatus

Enums§

AutomationState

Functions§

spawn
Start one background automation loop for one prepared session.