Feat: add isOther to question returned by request user input tool (#9890)

### Summary
Add `isOther` to question object from request_user_input tool input and
remove `other` option from the tool prompt to better handle tool input.
This commit is contained in:
Shijie Rao
2026-01-26 09:52:38 -08:00
committed by GitHub
parent 6316e57497
commit 3ba702c5b6
8 changed files with 25 additions and 2 deletions

View File

@@ -508,6 +508,7 @@ mod tests {
id: id.to_string(),
header: header.to_string(),
question: "Choose an option.".to_string(),
is_other: false,
options: Some(vec![
RequestUserInputQuestionOption {
label: "Option 1".to_string(),
@@ -530,6 +531,7 @@ mod tests {
id: id.to_string(),
header: header.to_string(),
question: "Share details.".to_string(),
is_other: false,
options: None,
}
}
@@ -696,6 +698,7 @@ mod tests {
id: "q1".to_string(),
header: "Next Step".to_string(),
question: "What would you like to do next?".to_string(),
is_other: false,
options: Some(vec![
RequestUserInputQuestionOption {
label: "Discuss a code change (Recommended)".to_string(),