Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Anthropic plugin ignores parallel_tool_calls=False unless tool_choice is also set

Abierto
#8,077 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@sarankumar1325 ya está trabajando en esto.

Desde el 22/10/2026.

  • #8082 de @sarankumar1325 — abierto
  • #8086 de @ninglinLiu — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
14.6k
Forks
3.9k
Merge medio
3 d 21 h
PR fusionados (30 d)
197

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de livekit/agents

Todos los issues de livekit/agents

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.