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

LLM: Bedrock mantle error on tools without parameters

Abierto
#7,637 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@aayushbaluni ya está trabajando en esto.

Desde el 6/10/2026.

  • #7645 de @aayushbaluni — abierto
  • #7648 de @qingshungLI — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
aws, python

Línea de trabajo

Start by locating where LiveKit Agents builds function-tool parameter schemas for the OpenAI-compatible LLM integration; the issue does not name a file or test. Reproduce with the provided parameterless say_hello tool against the Bedrock Mantle endpoint, then check that the generated schema is accepted and the tool call succeeds. An open linked pull request (#7645) indicates work is already underway.

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

Descripción

bug
Bug Description

when using AWS Bedrock (mantle endpoint) for llm, the app fails if the model calls a function tool defined without parameters:

# EmptyToolAgent.py
class EmptyToolAgent(Agent):

    def __init__(self):
        with here.joinpath("root", "instructions.xml").open() as fp:
            instructions = fp.read()

        super().__init__(
            instructions = instructions
        )

    @function_tool()
    async def say_hello(self):
        '''
            Invoke this tool when the call is established
        '''

        return "Hello"
# app.py

session = AgentSession(
      stt = ...,
      llm = openai.LLM(
          model = "google.gemma-4-31b",
          base_url = "https://bedrock-mantle.{region}.api.aws/openai/v1",
          api_key = "<bedrock-mantle-apikey>"
      ),
      tts = ...,
)

await session.start(
    room=ctx.room,
    agent=EmptyToolAgent(),
)

When the session is established and the model tries to call the function tool 'say_hello', the app raises the following exception:

livekit.agents._exceptions.APIStatusError: message='Error code: 400 - {\'error\': {\'code\': \'invalid_function_parameters\', \'message\': "Invalid schema for function \'say_hello\': In context=(), \'required\' is required to be supplied and to be an array including every key in properties.", \'param\': \'tools[0].function.parameters\', \'type\': \'invalid_request_error\'}}', status_code=400, retryable=False, request_id=req_, body={'code': 'invalid_function_parameters', 'message': "Invalid schema for function 'say_hello': In context=(), 'required' is required to be supplied and to be an array including every key in properties.", 'param': 'tools[0].function.parameters', 'type': 'invalid_request_error'}
Expected Behavior

The tool should be called successfully, without crashing the app

Reproduction Steps
- Adapt and run the provided code
Operating System

Linux AL2023

Models Used

google.gemma4-31B (bedrock mantle endpoint)

Package Versions
livekit-agents[openai]==1.8.3
Session/Room/Call IDs

No response

Proposed Solution
It looks like is how the tool schema definition is being built, despite Bedrock mantle uses the openai client to invoke models, maybe it expects some properties to be required
Additional Context

No response

Screenshots and Recordings

No response

Lenguaje dominante
Python
Estrellas
14.6k
Forks
3.9k
Merge medio
2 d 12 h
PR fusionados (30 d)
223

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.