Initial commit
This commit is contained in:
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
### ADK Sample Project
|
||||
|
||||
Public example using Google ADK with a simple email pipeline.
|
||||
|
||||
### Requirements
|
||||
- Python 3.13, `uv` (`pip install uv` or see `https://astral.sh/uv`)
|
||||
|
||||
### Setup
|
||||
1) Install deps:
|
||||
```
|
||||
uv sync
|
||||
```
|
||||
2) Create `.env` in project root:
|
||||
```
|
||||
GEMINI_API_KEY=your_key
|
||||
GENAI_MODEL=gemini-2.5-flash
|
||||
```
|
||||
|
||||
### Run
|
||||
```
|
||||
uv run uvicorn main:app --reload
|
||||
```
|
||||
Web UI at `http://localhost:8000`.
|
||||
|
||||
### API
|
||||
POST `http://localhost:8000/process_data`
|
||||
```
|
||||
curl -s -X POST http://localhost:8000/process_data \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"message":"Draft an email about Friday meeting at 2pm"}'
|
||||
```
|
||||
Returns `{ "emails": "..." }`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user