Skip to content

Commit d0ce814

Browse files
committed
ci: add GitHub Actions workflow; feat: /healthz and /version endpoints; mock LM fallback; bump to v0.1.1; add CHANGELOG
1 parent f6775b7 commit d0ce814

File tree

4 files changed

+58
-2
lines changed

4 files changed

+58
-2
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.12'
17+
- name: Install package
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install -e .[repair]
21+
- name: Run tests
22+
env:
23+
# Force mock provider to avoid external API calls
24+
LLM_PROVIDER: mock
25+
USE_TOOL_CALLS: '0'
26+
run: |
27+
pytest -q
28+
- name: Run evals (smoke)
29+
env:
30+
LLM_PROVIDER: mock
31+
USE_TOOL_CALLS: '0'
32+
run: |
33+
python evals/run_evals.py --n 6

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [0.1.1] - 2025-09-09
6+
7+
- Docs: Expanded README (config, CLI, HTTP API + OpenAPI, Docker, evals metrics).
8+
- Feat: Added usage metrics to predictions (lm_calls, tool_calls) and aggregated in evals.
9+
- Feat: Added Dockerfile and Make targets (docker-build/run).
10+
- Feat: Server endpoints `/health`, `/healthz`, `/version`; CLI flags `--func-calls` / `--no-func-calls`.
11+
- Feat: Evals now support `expect_key` and print `contains_hit_rate` and `key_hit_rate`.
12+
- Feat: Optional extras `[repair]` to enable json-repair parsing for decisions.
13+
- Fix: Ensure math/time tools are present in trace when OpenAI function-calls path returns finalize prematurely.
14+
- Chore: Silence Python 3.13 AST deprecation warnings in calculator.
15+
- CI: Added GitHub Actions to run tests and a small eval smoke on pushes/PRs.
16+
17+
## [0.1.0] - 2025-09-08
18+
19+
- Initial release with DSPy-based micro agent, tools, CLI, FastAPI server, and basic evals.
20+
21+
[0.1.1]: https://github.com/evalops/dspy-micro-agent/compare/v0.1.0...v0.1.1

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ curl -s http://localhost:8000/ask \
8585
OpenAPI:
8686
- FastAPI publishes `/openapi.json` and interactive docs at `/docs`.
8787
- Schemas reflect `AskRequest` and `AskResponse` models in `micro_agent/server.py`.
88-
- Health: `GET /health` returns `{status, provider, model, max_steps}`.
88+
- Health: `GET /health` returns `{status, provider, model, max_steps}`.
89+
- Minimal health: `GET /healthz` returns `{status: "ok"}`.
90+
- Version: `GET /version` returns `{name, version}`.
8991
9092
## Tools
9193
- Built-ins live in `micro_agent/tools.py`:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dspy-micro-agent"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "DSPy-based micro agent: modules + thin runtime loop"
55
readme = "README.md"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)