2025-10-22 15:36:11 -07:00
|
|
|
pub mod account;
|
2026-01-07 17:04:53 +00:00
|
|
|
mod thread_id;
|
|
|
|
|
pub use thread_id::ThreadId;
|
2025-10-24 17:23:44 -05:00
|
|
|
pub mod approvals;
|
2025-08-15 12:44:40 -07:00
|
|
|
pub mod config_types;
|
2025-08-28 19:16:39 -07:00
|
|
|
pub mod custom_prompts;
|
2025-10-20 13:34:44 -07:00
|
|
|
pub mod items;
|
2025-08-15 12:44:40 -07:00
|
|
|
pub mod message_history;
|
2025-08-22 15:18:54 -07:00
|
|
|
pub mod models;
|
2025-09-08 14:48:48 -07:00
|
|
|
pub mod num_format;
|
2025-12-03 12:30:43 -08:00
|
|
|
pub mod openai_models;
|
2025-08-15 12:44:40 -07:00
|
|
|
pub mod parse_command;
|
|
|
|
|
pub mod plan_tool;
|
|
|
|
|
pub mod protocol;
|
Feat: request user input tool (#9472)
### Summary
* Add `requestUserInput` tool that the model can use for gather
feedback/asking question mid turn.
### Tool input schema
```
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "requestUserInput input",
"type": "object",
"additionalProperties": false,
"required": ["questions"],
"properties": {
"questions": {
"type": "array",
"description": "Questions to show the user (1-3). Prefer 1 unless multiple independent decisions block progress.",
"minItems": 1,
"maxItems": 3,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "header", "question"],
"properties": {
"id": {
"type": "string",
"description": "Stable identifier for mapping answers (snake_case)."
},
"header": {
"type": "string",
"description": "Short header label shown in the UI (12 or fewer chars)."
},
"question": {
"type": "string",
"description": "Single-sentence prompt shown to the user."
},
"options": {
"type": "array",
"description": "Optional 2-3 mutually exclusive choices. Put the recommended option first and suffix its label with \"(Recommended)\". Only include \"Other\" option if we want to include a free form option. If the question is free form in nature, do not include any option.",
"minItems": 2,
"maxItems": 3,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["value", "label", "description"],
"properties": {
"value": {
"type": "string",
"description": "Machine-readable value (snake_case)."
},
"label": {
"type": "string",
"description": "User-facing label (1-5 words)."
},
"description": {
"type": "string",
"description": "One short sentence explaining impact/tradeoff if selected."
}
}
}
}
}
}
}
}
}
```
### Tool output schema
```
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "requestUserInput output",
"type": "object",
"additionalProperties": false,
"required": ["answers"],
"properties": {
"answers": {
"type": "object",
"description": "Map of question id to user answer.",
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"required": ["selected"],
"properties": {
"selected": {
"type": "array",
"items": { "type": "string" }
},
"other": {
"type": ["string", "null"]
}
}
}
}
}
}
```
2026-01-19 10:17:30 -08:00
|
|
|
pub mod request_user_input;
|
2025-10-20 13:34:44 -07:00
|
|
|
pub mod user_input;
|