Add request_user_input auto resolution contract

This commit is contained in:
shijie-openai
2026-06-09 15:58:21 -07:00
parent 9e3081be96
commit 1c776a7898
25 changed files with 241 additions and 16 deletions
@@ -687,6 +687,7 @@ pub(crate) async fn apply_bespoke_event_handling(
turn_id: request.turn_id,
item_id: request.call_id,
questions,
auto_resolution_ms: request.auto_resolution_ms,
};
let (pending_request_id, rx) = outgoing
.send_request(ServerRequestPayload::ToolRequestUserInput(params))
@@ -1259,6 +1259,7 @@ mod tests {
turn_id: "turn-1".to_string(),
item_id: "call-1".to_string(),
questions: vec![],
auto_resolution_ms: None,
},
))
.await;
@@ -1321,6 +1322,7 @@ mod tests {
turn_id: "turn-1".to_string(),
item_id: "call-1".to_string(),
questions: vec![],
auto_resolution_ms: None,
},
))
.await;
@@ -1081,6 +1081,7 @@ mod thread_processor_behavior_tests {
turn_id: "turn-1".to_string(),
item_id: "call-1".to_string(),
questions: vec![],
auto_resolution_ms: None,
},
))
.await;