Skip to content

Agent tools are not propagated to Llm query #193

Open
@Vatavuk

Description

@Vatavuk

Agent tools are not passed to LLM as function calls when using Gemini as BaseLlm. Tools field in LlmRequest is empty in Gemini class.

To Reproduce
Steps to reproduce the behavior:

LlmAgent.builder()
        .name("My agent")
        .description("Some desc")
        .model("gemini-2.0-flash")
        .instruction("You are ahelpful agent for solving crimes")
        .tools(CustomTool("solve_crimes", "Will solve a crime"))
        .build()

class CustomTool(val name: String, val description: String) : BaseTool(name, description)

The tool is never triggered. (The behavior is the same with pre-build tools)

Expected behavior
Should include the tool in function call towards llm.

Desktop:

  • OS: [macOS]
  • Java version: openjdk-24
  • ADK version: 0.1.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions