Skip to content

Conversation

@chenghao-mou
Copy link
Member

This should close #4407

Tested with the following setup.

    }
    session = AgentSession(
        ...
        llm=google.LLM(
            model="gemini-2.5-flash",
            vertexai=True,
            location="global",
            # retrieval_config=types.RetrievalConfig(
            #     lat_lng=types.LatLng(latitude=53.350140, longitude=-6.266155)
            # ),
            # or
            retrieval_config={
                "lat_lng": {
                    "latitude": 53.350140,
                    "longitude": -6.266155,
                }
            },
        ),
        ...
        tools=[
            google.tools.GoogleMaps(),
        ],
    )

@chenghao-mou chenghao-mou requested a review from a team December 29, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Add lat_lng location support for GoogleMaps provider tool

2 participants