Skip to content

[BUG] GEMINI with Tool Calls #3759

@szhengac

Description

@szhengac

Required prerequisites

What version of camel are you using?

0.2.85

System information

Eigent UV

Problem description

When using Eigent AI agent with Gemini. I received GenerateContentRequest.contents[0].parts[0].function_response.name: Name cannot be empty.

I did some investigation by my own, and I found tool call message is missing when enable_snapshot_clean is enabled and func name is missing. I did some tweak and it seems to be working.

Reproducible example code

Use https://github.com/eigent-ai/eigent with Gemini configuration. And ask it to find the best coffee machine for me.

Traceback

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions