Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

DeepResearch returns empty ResponseFunctionWebSearch.action after exceeding maxToolCalls

Đang mở
#600 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, kotlin
Lĩnh vực
api

Hướng nghiên cứu

Tái hiện sự cố với maxToolCalls được đặt thành 5 bằng cách sử dụng o3-deep-research và o4-deep-research-mini, sau đó kiểm tra chuỗi ResponseOutputItem và phần so sánh Web Search Tool. Được xem là hoàn tất khi DeepResearch ngừng tạo các mục WebSearchCall sau khi đạt giới hạn và không phát ra các mục có action rỗng gây ra OpenAIInvalidDataException.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

api bug

Even after exceeding maxToolCalls, DeepResearch never stops producing ResponseFunctionWebSearch.
However, after that point, ResponseFunctionWebSearch.action becomes empty that causes

So if I set maxToolCalls to 5, DeepResearch returned Response.output with more than 50 of ResponseReasoningItem and ResponseFunctionWebSearch, but only the first 2 of ResponseFunctionWebSearch has valid action parameters.

Example output shown below.

  ResponseOutputItem{webSearchCall=ResponseFunctionWebSearch{id=ws_68affc98f75c8193abaae4fa49b12d4306939ec79bab8479, action=Action{search=Search{query=今週 IT ニュース 日本 2025 最新, type=search, additionalProperties={}}}, status=completed, type=web_search_call, additionalProperties={}}}, 
  ResponseOutputItem{reasoning=ResponseReasoningItem{id=rs_68affc99cbe081938dea99aef23c678206939ec79bab8479, summary=[], type=reasoning, content=, encryptedContent=, status=, additionalProperties={}}}, 
  ResponseOutputItem{webSearchCall=ResponseFunctionWebSearch{id=ws_68affc9aef748193840f030549e3acba06939ec79bab8479, action=Action{search=Search{query=2025年8月 IT ニュース 日本, type=search, additionalProperties={}}}, status=completed, type=web_search_call, additionalProperties={}}}, 
  ResponseOutputItem{reasoning=ResponseReasoningItem{id=rs_68affc9b795481938611baeddf93669c06939ec79bab8479, summary=[], type=reasoning, content=, encryptedContent=, status=, additionalProperties={}}}, 
  ResponseOutputItem{webSearchCall=ResponseFunctionWebSearch{id=ws_68affc9bfba0819398ad9ea0f0b8cef206939ec79bab8479, action=, status=completed, type=web_search_call, additionalProperties={}}}, 
  ResponseOutputItem{reasoning=ResponseReasoningItem{id=rs_68affc9c59b481939ac57623b9aa479506939ec79bab8479, summary=[], type=reasoning, content=, encryptedContent=, status=, additionalProperties={}}}, 
  ResponseOutputItem{webSearchCall=ResponseFunctionWebSearch{id=ws_68affca030cc8193a2584678fe41ccbb06939ec79bab8479, action=, status=completed, type=web_search_call, additionalProperties={}}}, 

I observed this issue in ver 3.1.2, with both o3-deep-research and o4-deep-research-mini.

I also tested the Web Search Tool, but no similar problems.

As per this guide, we should be able to control how many WebSearchCalls DeepResearch can produce.

So I think there is 2 problems.

  1. DeepResearch does not finish producing WebSearchCall even after exceeding maxToolCalls.
  2. After exceeding maxToolCalls, DeepResearch creates WebSearchCall with empty/invalid action, which throws "com.openai.errors.OpenAIInvalidDataException: action is not set"

Please let me know if you need further info.

Ngôn ngữ chính
Kotlin
Star
1.5k
Fork
264
Merge trung bình
13 giờ 31 phút
Pull request đã merge (30 ngày)
89

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openai/openai-java

Tất cả issue của openai/openai-java

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.