(&self)
| 54 | } |
| 55 | |
| 56 | fn parameters(&self) -> serde_json::Value { |
| 57 | serde_json::json!({ |
| 58 | "type": "object", |
| 59 | "properties": { |
| 60 | "questions": { |
| 61 | "type": "array", |
| 62 | "items": { |
| 63 | "type": "object", |
| 64 | "properties": { |
| 65 | "question": { |
| 66 | "type": "string", |
| 67 | "description": "The complete question to ask" |
| 68 | }, |
| 69 | "header": { |
| 70 | "type": "string", |
| 71 | "description": "Short label for the question (max 30 chars)" |
| 72 | }, |
| 73 | "multiple": { |
| 74 | "type": "boolean", |
| 75 | "default": false, |
| 76 | "description": "Allow selecting multiple options" |
| 77 | }, |
| 78 | "options": { |
| 79 | "type": "array", |
| 80 | "items": { |
| 81 | "type": "object", |
| 82 | "properties": { |
| 83 | "label": {"type": "string"}, |
| 84 | "description": {"type": "string"} |
| 85 | }, |
| 86 | "required": ["label"] |
| 87 | }, |
| 88 | "description": "Available choices for the user" |
| 89 | } |
| 90 | }, |
| 91 | "required": ["question"] |
| 92 | } |
| 93 | } |
| 94 | }, |
| 95 | "required": ["questions"] |
| 96 | }) |
| 97 | } |
| 98 | |
| 99 | async fn execute( |
| 100 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected