Skip to content

Set metadata filter to vertexAISearch tool at tool call time #4067

@larsbowlin

Description

@larsbowlin

When using built-in tools like vertexAISearch tool or VertexAiSearchRetrieval tool I want to provide parameter values at tool-call time, not at configuration time. For example, I want to use the built-in tool VertexAiSearchRetrieval and set a metadata filter based on current ADK state value that is not known at configuration time, such as from ToolContext.

I have used FunctionTools to circumvent this issue for now, but I want to use the Google provided tools as I believe they offer improved latency and grounding enforcement in a single call.

In #955 I see that the metadata filtering capability was added, but it can only be set statically at configuration time. How can I get around this to use built-in tools, or can this feature be added?

Metadata

Metadata

Assignees

Labels

planned[Status] This issue is planned to be work on by ADK eng teamtools[Component] This issue is related to tools

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions