Remove request_user_input call_id plumbing

This commit is contained in:
Charles Cunningham
2026-02-02 22:29:40 -08:00
parent 7af9dce46b
commit 954b0884d5
9 changed files with 10 additions and 77 deletions
-3
View File
@@ -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.