diff options
| author | soryu <soryu@soryu.co> | 2026-01-18 18:55:04 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-18 18:55:04 +0000 |
| commit | 9dbc2c3199047609a9f8496fec07ecdb10aee73d (patch) | |
| tree | c5a4e19b2a83cac1901e81f2ff1bc7a465f8a9ff /makima/src/daemon/api/supervisor.rs | |
| parent | 273da072fa0573c935798dc723ed79fd71ab037a (diff) | |
| download | soryu-9dbc2c3199047609a9f8496fec07ecdb10aee73d.tar.gz soryu-9dbc2c3199047609a9f8496fec07ecdb10aee73d.zip | |
Add pushed heartbeats and multi-question select
Diffstat (limited to 'makima/src/daemon/api/supervisor.rs')
| -rw-r--r-- | makima/src/daemon/api/supervisor.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/makima/src/daemon/api/supervisor.rs b/makima/src/daemon/api/supervisor.rs index adeda22..1dc699e 100644 --- a/makima/src/daemon/api/supervisor.rs +++ b/makima/src/daemon/api/supervisor.rs @@ -73,6 +73,9 @@ pub struct AskQuestionRequest { pub timeout_seconds: i32, /// When true, the request will block indefinitely until user responds (no timeout) pub phaseguard: bool, + /// When true, allow selecting multiple choices (response will be comma-separated) + #[serde(default)] + pub multi_select: bool, } // Generic response type for JSON output @@ -205,6 +208,7 @@ impl ApiClient { context: Option<String>, timeout_seconds: i32, phaseguard: bool, + multi_select: bool, ) -> Result<JsonValue, ApiError> { let req = AskQuestionRequest { question: question.to_string(), @@ -212,6 +216,7 @@ impl ApiClient { context, timeout_seconds, phaseguard, + multi_select, }; self.post("/api/v1/mesh/supervisor/questions", &req).await } |
