Skip to content

It is hoped that the Agent supports requests for configuring third-party models #4180

Description

@WDEP-good

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Is your feature request related to a problem? Please describe.
Currently, it is not possible to set the url for model requests separately

root_agent = (Agent(
name="weather_agent_v1",
model="gemini-3-pro-preview",
base_url="https://sg.uiuiapi.com/v1/chat/completions",
description="Provides weather information for specific cities.",
instruction="You are a helpful weather assistant. "
"When the user asks for the weather in a specific city, "
"use the 'get_weather' tool to find the information. "
"If the tool returns an error, inform the user politely. "
"If the tool is successful, present the weather report clearly.",
tools=[get_weather,google_search], # Pass the function directly
))

Describe the solution you'd like
ADK should be an open framework, hoping to support the configuration of third-party urls and keys like langchain
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Labels

models[Component] This issue is related to model supportneeds review[Status] The PR/issue is awaiting review from the maintainerrequest clarification[Status] The maintainer need clarification or more information from the authorstale[Status] Issues which have been marked inactive since there is no user response

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions