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

Anthropic plugin ignores parallel_tool_calls=False unless tool_choice is also set

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

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.

  • #8082 của @sarankumar1325 — đang mở
  • #8086 của @ninglinLiu — đang mở

Đá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
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

  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 livekit/agents

Tất cả issue của livekit/agents

Issue tương tự

Thêm issue về Python

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.