mirror of
https://github.com/openai/codex.git
synced 2026-10-31 19:28:49 +00:00
Remove request_user_input call_id plumbing
This commit is contained in:
@@ -222,9 +222,6 @@ pub enum Op {
|
||||
UserInputAnswer {
|
||||
/// Turn id for the in-flight request.
|
||||
id: String,
|
||||
/// Tool call id for the in-flight request, if available.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
call_id: Option<String>,
|
||||
/// User-provided answers.
|
||||
response: RequestUserInputResponse,
|
||||
},
|
||||
|
||||
@@ -43,12 +43,6 @@ pub struct RequestUserInputResponse {
|
||||
pub answers: HashMap<String, RequestUserInputAnswer>,
|
||||
}
|
||||
|
||||
impl RequestUserInputResponse {
|
||||
pub fn to_tool_output_content(&self) -> Result<String, serde_json::Error> {
|
||||
serde_json::to_string(self)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
|
||||
pub struct RequestUserInputEvent {
|
||||
/// Responses API call id for the associated tool call, if available.
|
||||
|
||||
Reference in New Issue
Block a user