Skip to content

Commit f3b8b04

Browse files
authored
refactor: rename agent_foundation to agent and untrack conductor (#16)
1 parent 37ff060 commit f3b8b04

27 files changed

+32
-31
lines changed

.!70083!.coverage

Whitespace-only changes.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@ pip-wheel-metadata/
9090
# ---------------------------------------------------------------------------
9191
**/.adk/
9292

93+
\n# Local conductor directory\nconductor/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ EXPOSE 8080
7777
ENTRYPOINT ["/app/entrypoint.sh"]
7878

7979
# Run the FastAPI server
80-
CMD ["python", "-m", "agent_foundation.server"]
80+
CMD ["python", "-m", "agent.server"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ uv sync
3939
### 3) Run Locally
4040

4141
```bash
42-
uv run python -m agent_foundation.server
42+
uv run python -m agent.server
4343
```
4444
Visit `http://127.0.0.1:8080`.
4545

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
volumes:
1919
- agent_artifacts:/app/src/.adk
2020
restart: always
21-
command: python -m agent_foundation.server
21+
command: python -m agent.server
2222

2323
volumes:
2424
agent_artifacts:

docs/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Google ADK is useful even without Google Cloud:
1010

1111
### Key choices
1212

13-
- **Entry point**: `python -m agent_foundation.server`
13+
- **Entry point**: `python -m agent.server`
1414
- Wraps `google.adk.cli.fast_api.get_fast_api_app(...)`
1515
- Forces a Postgres-backed session store via `DATABASE_URL`
1616
- Configures OpenTelemetry for vendor-neutral tracing (Langfuse auto-config included)
1717
- **Agents directory**: `src/`
1818
- ADK Dev UI lists *directories* under `agents_dir`.
19-
- **Main Agent**: `src/agent_foundation/agent.py`
19+
- **Main Agent**: `src/agent/agent.py`
2020
- Contains `root_agent` to keep ADK discovery simple.
2121
- **DB URL normalization**: Handled in `server.py`
2222
- Converts standard Postgres URLs (e.g. `postgresql://`) to asyncpg-compatible ones (`postgresql+asyncpg://`)

docs/base-infra/dockerfile-strategy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ EXPOSE 8080
340340
### Startup Command
341341
```dockerfile
342342
# Run the FastAPI server via main() for unified startup logic (logging, etc.)
343-
CMD ["python", "-m", "agent_foundation.server"]
343+
CMD ["python", "-m", "agent.server"]
344344
```
345345
**What:** Default command when container starts
346346
**Why:**

docs/development.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
### Repo layout
1010

11-
- `src/agent_foundation/server.py`: Main platform entrypoint (FastAPI + ADK + Postgres)
12-
- `src/agent_foundation/agent.py`: Agent definition (exports `root_agent`)
13-
- `src/agent_foundation/utils/`: Shared helper modules (config + observability)
11+
- `src/agent/server.py`: Main platform entrypoint (FastAPI + ADK + Postgres)
12+
- `src/agent/agent.py`: Agent definition (exports `root_agent`)
13+
- `src/agent/utils/`: Shared helper modules (config + observability)
1414
- `tests/`: Unit and integration tests
1515
- `.env`: Configuration file (API keys, DB URL)
1616

@@ -45,7 +45,7 @@ uv sync
4545

4646
**Local Python:**
4747
```bash
48-
uv run python -m agent_foundation.server
48+
uv run python -m agent.server
4949
```
5050

5151
**Docker Compose (Recommended for full stack):**

init_template.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
2. Validates repository name is kebab-case (enforces Python naming)
2323
3. Derives package name (my-agent → my_agent)
2424
4. Replaces template names with yours:
25-
- agent_foundation → your_package_name
25+
- agent → your_package_name
2626
- google-adk-on-bare-metal → your-repo-name
2727
- QueryPlanner/google-adk-on-bare-metal → your-owner/your-repo
28-
5. Renames src/agent_foundation/ → src/{package_name}/
28+
5. Renames src/agent/ → src/{package_name}/
2929
6. Updates imports, config, and docs in all files
3030
7. Updates GitHub Actions badge URLs
3131
8. Resets CODEOWNERS file (remove template owner)
@@ -69,7 +69,7 @@
6969
from pydantic import BaseModel, Field, ValidationError, computed_field
7070

7171
# Original template names - update these when reusing in other template projects
72-
ORIGINAL_PACKAGE_NAME = "agent_foundation"
72+
ORIGINAL_PACKAGE_NAME = "agent"
7373
ORIGINAL_REPO_NAME = "google-adk-on-bare-metal"
7474
ORIGINAL_GITHUB_OWNER = "QueryPlanner"
7575

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies = [
2626
]
2727

2828
[project.scripts]
29-
server = "agent_foundation.server:main"
29+
server = "agent.server:main"
3030

3131
[dependency-groups]
3232
dev = [
@@ -44,7 +44,7 @@ requires = ["uv_build>=0.8.21,<0.9.0"]
4444
build-backend = "uv_build"
4545

4646
[tool.uv.build-backend]
47-
module-name = "agent_foundation"
47+
module-name = "agent"
4848

4949
[tool.ruff]
5050
src = ["src"]
@@ -80,7 +80,7 @@ select = [
8080
[tool.mypy]
8181
python_version = "3.13"
8282
mypy_path = "src"
83-
packages = ["agent_foundation"]
83+
packages = ["agent"]
8484
exclude = ["init_template.py"]
8585
warn_return_any = true
8686
warn_unused_configs = true
@@ -100,10 +100,10 @@ show_error_codes = true
100100
source = ["src"]
101101
branch = true
102102
omit = [
103-
"src/agent_foundation/**/__init__.py",
104-
"src/agent_foundation/server.py",
105-
"src/agent_foundation/**/agent.py",
106-
"src/agent_foundation/utils/observability.py",
103+
"src/agent/**/__init__.py",
104+
"src/agent/server.py",
105+
"src/agent/**/agent.py",
106+
"src/agent/utils/observability.py",
107107
]
108108

109109
[tool.coverage.report]

0 commit comments

Comments
 (0)