mirror of
https://github.com/openai/codex.git
synced 2026-05-01 03:42:05 +03:00
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:
@@ -16,6 +16,10 @@ pub struct RequestUserInputQuestion {
|
||||
pub id: String,
|
||||
pub header: String,
|
||||
pub question: String,
|
||||
#[serde(rename = "isOther", default)]
|
||||
#[schemars(rename = "isOther")]
|
||||
#[ts(rename = "isOther")]
|
||||
pub is_other: bool,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub options: Option<Vec<RequestUserInputQuestionOption>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user