pub(super) fn openai_responses_tool_kind(item_type: &str) -> &'static str {
match item_type {
"web_search_call" => "web_search",
"file_search_call" => "file_search",
"code_interpreter_call" => "code_interpreter",
"computer_call" => "computer_use",
"image_generation_call" => "image_generation",
"tool_search_call" | "tool_search_output" => "tool_search",
_ if item_type.starts_with("mcp_") => "remote_mcp",
_ => "hosted_tool",
}
}
pub(super) fn is_openai_responses_hosted_tool_item(item_type: &str) -> bool {
item_type.ends_with("_call")
|| item_type == "tool_search_output"
|| item_type == "mcp_list_tools"
|| item_type == "mcp_approval_request"
}