diff options
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 } |
