python -m pip install -e .[dev]python -m unittest discover -s tests
python -m compileall -q src tests examplesThe fake provider needs no API key.
apg-smoke health
apg-smoke execute --model fake-text-model
apg-smoke stream --model fake-text-modelfrom agentic_provider_gateway import ModelGatewayService
gateway = ModelGatewayService.from_defaults()
print(gateway.health()["ok"])See examples/basic_fake_request.py for a full request.
Create a local .env:
Copy-Item .env.example .envFill in:
GEMINI_API_KEY=
GROQ_API_KEY=
Then run opt-in real-provider calls:
apg-smoke execute --provider gemini --model gemini-2.5-flash --allow-real-provider
apg-smoke execute --provider groq --model openai/gpt-oss-20b --allow-real-providerGenerated state defaults to .apg/:
.apg/gateway_traces.sqlite3
.apg/gateway_state/*.json
Override it with:
$env:APG_STORAGE_DIR="C:\path\to\gateway-state"