Prerequisites
- Create an API key to authorize requests to Nebius Token Factory.
-
Save the API key into a
NEBIUS_API_KEYenvironment variable: -
Install the
google-adkand other packages:
Quickstart
Create an agentmy_agent/agent.py with this code
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Google ADK + Nebius Token Factory
NEBIUS_API_KEY environment variable:
export NEBIUS_API_KEY="<API_key>"
google-adk and other packages:
pip install google-adk
pip install litellm
adk create my_agent
my_agent/agent.py with this code
from google.adk.agents.llm_agent import Agent
from google.adk.models.lite_llm import LiteLlm
# Mock tool implementation
def get_current_time(city: str) -> dict:
"""Returns the current time in a specified city."""
return {"status": "success", "city": city, "time": "10:30 AM"}
llm = LiteLlm(
model="nebius/Qwen/Qwen3-30B-A3B",
## other settings you may want to use
# temperature=0.1,
# max_tokens=1000,
# top_p=0.95,
# top_k=40,
)
root_agent = Agent(
model=llm,
name='root_agent',
description="Tells the current time in a specified city.",
instruction="You are a helpful assistant that tells the current time in cities. Use the 'get_current_time' tool for this purpose.",
tools=[get_current_time],
)
adk run my_agent
Was this page helpful?