From 52e710a5449579f420260c6fc25aab1a6efb3073 Mon Sep 17 00:00:00 2001 From: Victor Dantas Date: Thu, 4 Sep 2025 10:49:58 +0200 Subject: [PATCH 1/2] feat: Bootstrap FastAPI app --- CHANGELOG.md | 5 +++++ GEMINI.md | 3 +++ README.md | 3 ++- app/main.py | 7 +++++++ app/requirements.txt | 2 ++ 5 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 GEMINI.md create mode 100644 app/main.py create mode 100644 app/requirements.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 437aab5..c63e418 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2] - 2025-09-04 + +### Added +- FastAPI bootstrap + ## [0.1] - 2025-09-04 ### Added diff --git a/GEMINI.md b/GEMINI.md new file mode 100644 index 0000000..a9664ef --- /dev/null +++ b/GEMINI.md @@ -0,0 +1,3 @@ +# GEMINI.md + +We use Python 3.12 and uv for dependency management. \ No newline at end of file diff --git a/README.md b/README.md index a791727..3500b1f 100644 --- a/README.md +++ b/README.md @@ -137,4 +137,5 @@ Gemini CLI can use Google Search natively. Ask it, for example, for update to da ``` Search Google ADK documentation and show me some code samples from there -``` \ No newline at end of file +``` + diff --git a/app/main.py b/app/main.py new file mode 100644 index 0000000..f5961e6 --- /dev/null +++ b/app/main.py @@ -0,0 +1,7 @@ +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +def read_root(): + return {"Hello": "World"} diff --git a/app/requirements.txt b/app/requirements.txt new file mode 100644 index 0000000..97dc7cd --- /dev/null +++ b/app/requirements.txt @@ -0,0 +1,2 @@ +fastapi +uvicorn From ede44e1c8eb4befd8353696cca219aeb60661021 Mon Sep 17 00:00:00 2001 From: Victor Dantas Date: Thu, 4 Sep 2025 11:02:00 +0200 Subject: [PATCH 2/2] feat: add simple ADK hello world agent --- adk_hello_world/main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 adk_hello_world/main.py diff --git a/adk_hello_world/main.py b/adk_hello_world/main.py new file mode 100644 index 0000000..2c8a81e --- /dev/null +++ b/adk_hello_world/main.py @@ -0,0 +1,13 @@ +from google.adk import Agent + +# Create a simple agent +hello_agent = Agent( + name='hello_agent', + instruction='You are a friendly agent that says "Hello, World!".' +) + +# Interact with the agent +response = hello_agent.process('Say hi') + +# Print the response +print(response.text)