How cuppibla/adk_eval_starter works
1. This repository is a small Python-based agent project centered on a single customer service agent and its evaluation workflow. The architecture is much closer to a library plus test harness than a full application stack.
2. The main functional boundary is the customer_service_agent/ package. That package contains the agent implementation in agent.py, which is the core runtime object that the rest of the repo exercises.
3. Evaluation assets live alongside the agent code. eval.test.json appears to define the evaluation scenarios, while test_config.json provides the test-time configuration needed to run those scenarios deterministically.
4. The primary validation path is pytest-based. test_agent_eval.py is the programmatic evaluation entrypoint recommended in the README, and it is meant to execute the agent against the test cases and compare behavior against expected outcomes.
5. There is also an ADK CLI evaluation path. The README shows adk eval ... as an alternate runner, which means the agent package is designed to be compatible with an external evaluation framework rather than only local unit tests.
6. A third evaluation mode uses a golden dataset exported from the ADK web UI. That suggests the repo supports both hand-authored test cases and externally generated evaluation sets, with the same agent/config boundary reused across them.
7. At the top level, main.py is likely the general process entrypoint, while billing-enablement.py looks like a separate script or example workflow. These are outside the evaluation package boundary and probably represent runnable agent/business logic entrypoints.
8. Environment setup is intentionally script-driven. init.sh and set_env.sh indicate the project expects shell-based initialization of runtime variables or credentials before running the agent or evaluations.
9. Tooling is Python-first and uses uv for execution, with .python-version and pyproject.toml defining the interpreter and dependency management. That makes the repo reproducible and portable across local and CI runs.
10. The key data flow is: evaluation input (eval.test.json or a golden dataset) plus config (test_config.json) enters the test harness, which invokes customer_service_agent.agent, and the observed output is checked by test_agent_eval.py or the ADK CLI evaluator.
11. From an architecture-diagram perspective, the most important boxes are: the agent implementation, the evaluation/test layer, the configuration layer, and the runtime/bootstrap scripts. The main boundary to emphasize is between reusable agent logic and the multiple ways it is executed and validated.
Main entry points: test_agent_eval.py Eval test · main.py Main · pyproject.toml Pyproject · agent.py Agent
Components 11
Agent package
Reusable customer service agent code and its evaluation assets.
- Agent · Core customer service agent implementation.
customer_service_agent/agent.py - Eval test · Programmatic evaluation entrypoint that runs the agent against scenarios.
customer_service_agent/test_agent_eval.py - Eval cases · Hand-authored evaluation scenarios for the agent.
customer_service_agent/eval.test.json - Test config · Deterministic test-time configuration for evaluation runs.
customer_service_agent/test_config.json
Runtime scripts
Top-level runnable entrypoints and shell bootstrap scripts.
- Main · Top-level process entrypoint for running the project.
main.py - Billing flow · Standalone business workflow or example script.
billing-enablement.py - Init · Environment initialization script.
init.sh - Set env · Shell helper for runtime variables and credentials.
set_env.sh
Project tooling
Python version and dependency configuration for local and CI execution.
- Pyproject · Python project metadata, dependencies, and tool configuration.
pyproject.toml - Python pin · Pinned Python version for reproducible execution.
.python-version
Other components
- README · Primary usage and evaluation instructions.
README.md
Connections 14
- Eval cases → Eval test: supplies cases · Evaluation scenarios are consumed by the pytest evaluation harness.
- Test config → Eval test: supplies config · Test configuration is loaded by the evaluation harness.
- Eval test → Agent: exercises · The evaluation test invokes the core agent implementation.
- Main → Agent: runs · Main entrypoint executes the agent runtime.
- Billing flow → Agent: uses · Workflow script drives the shared agent logic.
- Init → Main: prepares · Bootstrap script prepares the runtime before execution.
- Set env → Main: configures · Environment setup feeds runtime variables into the entrypoint.
- Init → Eval test: prepares · Bootstrap script also supports evaluation runs.
- Set env → Eval test: configures · Environment variables are used during evaluation execution.
- Pyproject → Main: builds · Project metadata and dependencies support the runnable entrypoint.
- Pyproject → Eval test: builds · Project metadata and dependencies support pytest evaluation.
- Python pin → Pyproject: pins · Interpreter version constrains the Python environment.
- README → Eval test: documents · README describes the recommended pytest evaluation path.
- README → Main: documents · README describes project execution and setup.