Anthropic plugin ignores parallel_tool_calls=False unless tool_choice is also set
Maintainer thường phản hồi trong vòng 1 ngày
@sarankumar1325 đang làm issue này rồi.
Từ ngày 22/10/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
The issue identifies livekit-plugins-anthropic/livekit/plugins/anthropic/llm.py and explains that disable_parallel_tool_use is added only when tool_choice is given. Start by reading that branch and checking the two linked open pull requests (#8082 and #8086) for existing work. Done means requests with tools and parallel_tool_calls=False send the specified automatic tool choice, while explicit tool_choice behavior remains unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Description
What happens: anthropic.LLM(parallel_tool_calls=False), or passing parallel_tool_calls=False to chat(), has no effect unless a tool_choice is also given, so Claude can still return several tool calls in one turn.
Why: in livekit-plugins-anthropic/livekit/plugins/anthropic/llm.py, disable_parallel_tool_use is only added inside the if is_given(tool_choice) branch. Anthropic's API carries that flag on the tool_choice object, so when only parallel_tool_calls is set, the setting is dropped.
I opened livekit/agents#8067 with a fix but can't sign the CLA, so I'm leaving this report for a maintainer to fix directly.
Expected Behavior
When parallel_tool_calls is set and tools are present but no tool_choice is given, send tool_choice={"type": "auto", "disable_parallel_tool_use": not parallel_tool_calls}. Requests with an explicit tool_choice (including "none") shouldn't change.
Reproduction Steps
1.
2.
3.
...
- Sample code snippet, or a GitHub Gist link -
Operating System
na
Models Used
na
Package Versions
na
Session/Room/Call IDs
na
Proposed Solution
na
Additional Context
na
Screenshots and Recordings
na
- Ngôn ngữ chính
- Python
- Star
- 14.6k
- Fork
- 3.9k
- Merge trung bình
- 3 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 197
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của livekit/agents
-
Assistant markup is stripped from chat history when expressive mode is offCó thể đã có người làm @ShivamSharma43 đã nhận 15 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: openai.LLM vs openai.responses.LLM for HTTP OpenAI-compat hostsCó thể làm lại được @AbarnaaSree đã nhận 55 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
livekit/agents#7022 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenAI Realtime engine: expose the WebSocket close code and reason to subclassesCó thể đã có người làm @ninglinLiu đã nhận 1 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của livekit/agents
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
sergey-miryanov/gcmon#230 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Azure-Samples/azure-search-openai-demo#3249 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Failed archive extraction deletes the dataset cacheCó thể đã có người làm @dajiaohuang đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
alibaba/GraphScope#4674 ·