LLM: Bedrock mantle error on tools without parameters
Los mantenedores suelen responder en 1 día
@aayushbaluni ya está trabajando en esto.
Desde el 6/10/2026.
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
- Área
- backend-api-design
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 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de livekit/agents
-
Assistant markup is stripped from chat history when expressive mode is offPosiblemente ocupada @ShivamSharma43 la tomó hace 20 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
livekit/agents#7647 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
docs: openai.LLM vs openai.responses.LLM for HTTP OpenAI-compat hostsQuizá libre de nuevo @AbarnaaSree la tomó hace 60 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
livekit/agents#7022 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
Todos los issues de livekit/agents
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
521xueweihan/HelloGitHub#4150 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
aws-samples/sample-per-model-bedrock#595 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug connectors
Dificultad 1/5 Menos de una hora Aptitud para principiantes 67/100
pyinfra-dev/pyinfra#2036 ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día