Module: SimpleAcp::Models::Types::RunMode
- Defined in:
- lib/simple_acp/models/types.rb
Overview
Run execution modes.
Constant Summary collapse
- SYNC =
Synchronous execution (blocks until complete)
"sync"- ASYNC =
Asynchronous execution (returns immediately)
"async"- STREAM =
Streaming execution (SSE events)
"stream"- ALL =
All valid modes
[SYNC, ASYNC, STREAM].freeze
Class Method Summary collapse
-
.valid?(mode) ⇒ Boolean
Check if a mode is valid.
Class Method Details
.valid?(mode) ⇒ Boolean
Check if a mode is valid.
32 33 34 |
# File 'lib/simple_acp/models/types.rb', line 32 def self.valid?(mode) ALL.include?(mode) end |