A collection of Google ADK sample agents demonstrating common patterns, including tool-augmented agents, function tools, LangChain integration, sequential workflows, parallel execution, and loop-based refinement.
python3 -m venv .venv
source .venv/bin/activateThis repository uses Google ADK and related Python tooling. Install dependencies as needed for your environment.
pip install google-generativeai langchain langchain-community requestsIf your project already has a specific dependency file, install from that instead.
Make sure your Google ADK credentials and any provider-specific environment variables are set in your shell or .env files within each example folder.
Common variables may include:
GOOGLE_API_KEY
Each folder exposes a root_agent object, which is the example agent ready to execute.
Use your ADK runtime or application code to load and run the sample agent.
Example usage pattern:
from loop_agent.agent import root_agent
# Use your ADK runtime to execute the root_agent with the expected inputs.
# For example, pass a prompt or data payload to the agent runtime.
print(root_agent)The exact execution API depends on your ADK setup and runtime.
- Copy an existing example folder.
- Build a new
agent.pywith aroot_agentdefinition. - Add any custom tools, new workflows, or new model instructions.
- Update this README with your new agent example.
- Each example is intentionally small and focused on one ADK pattern.
root_agentis the primary entrypoint for each sample.- Use
.envfiles inside example folders to keep configuration local and separate.
Contributions are welcome. Add new agents, improve instructions, or add sample prompts and workflows.
Built for the ADK agents playground with a practical focus on reusable patterns, tool integration, and workflow composition.