Files
hanzoai_agent/Makefile
T
zeekay c9593cc324 Add Hanzo backend integration for Agent SDK
- Created comprehensive test script to verify SDK works with Router
- Added example showing how to use HanzoModelProvider
- Detailed documentation for backend integration
- Makefile targets for testing and setup
- Support for all Router features (100+ models, fallbacks, observability)

Users can now easily configure the Agent SDK to use Hanzo infrastructure
instead of calling OpenAI directly by setting HANZO_ROUTER_URL and HANZO_API_KEY.
2025-07-05 19:23:13 -04:00

58 lines
1.2 KiB
Makefile

.PHONY: sync
sync:
uv sync --all-extras --all-packages --group dev
.PHONY: format
format:
uv run ruff format
.PHONY: lint
lint:
uv run ruff check
.PHONY: mypy
mypy:
uv run mypy .
.PHONY: tests
tests:
uv run pytest
.PHONY: old_version_tests
old_version_tests:
UV_PROJECT_ENVIRONMENT=.venv_39 uv run --python 3.9 -m pytest
UV_PROJECT_ENVIRONMENT=.venv_39 uv run --python 3.9 -m mypy .
.PHONY: build-docs
build-docs:
uv run mkdocs build
.PHONY: serve-docs
serve-docs:
uv run mkdocs serve
.PHONY: deploy-docs
deploy-docs:
uv run mkdocs gh-deploy --force --verbose
.PHONY: test-backend
test-backend:
@echo "Testing Hanzo Agent SDK with local backend..."
@echo "Make sure Router is running at http://localhost:4000"
@echo "----------------------------------------"
uv run python test_hanzo_backend.py
.PHONY: example-backend
example-backend:
@echo "Running Hanzo backend integration example..."
uv run python examples/hanzo_backend_example.py
.PHONY: setup-backend
setup-backend:
@echo "Setting up Hanzo backend environment..."
@echo "export HANZO_ROUTER_URL=http://localhost:4000/v1"
@echo "export HANZO_API_KEY=sk-1234"
@echo "----------------------------------------"
@echo "Add these to your shell profile or .env file"