Skip to content

Function call fail when using Claude LLM with v0.11.1 #1048

Description

@zamia

when using claude llm, the function call feature fails with newest version 0.11.1.

Error message:

livekit.agents._exceptions.APIStatusError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'Requests which include `tool_use` or `tool_result` blocks must define tools.'}} {"pid": 20121, "job_id": "AJ_XfSd2bnigEG9"}

Reproduce:

  1. use the weather example, change to claude llm and upgrade to the newest version.
  2. test the conversation.

Seems the second round to call to LLM fails because of losing tools context.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions