Skip to content

Google Agent Development Kit (ADK)

https://github.com/google/adk-python

Default Agent Type

We use google.adk.agents.llm_agent.LlmAgent as default. Check the reference to find additional supported agent_args.

Default Model Type

We use google.adk.models.lite_llm.LiteLLM as default. Check the reference to find additional supported model_args.

Run args

Check RunConfig to find additional supported AnyAgent.run args.

Examples

Limiting the number of steps

from any_agent import AnyAgent, AgentConfig
from any_agent.tools import search_web, visit_webpage
from google.adk.agents.run_config import RunConfig

agent = AnyAgent.create(
    "google",
    AgentConfig(
        model_id="gpt-4.1-nano",
        instructions="You must use the available tools to find an answer",
        tools=[search_web, visit_webpage]
    )
)

agent.run(
    "Which Agent Framework is the best??",
    run_config=RunConfig(
        max_llm_calls=3
    )
)