Skip to content
Tradebird Docs
Developer guides and referenceDevelop an agent in Python

Test with the project’s locked dependencies

Test from the same lockfile and supplied wheels you intend to deploy. A green test in a different environment can hide a missing model extra or a mismatch between an operation and agent.json.

From the installed starter environment, run these checks in order. The first exercises the starter’s behavior, the next two check the Python code, and the last loads the Tradebird project and validates its declarations.

uv run --no-sync pytest
uv run --no-sync ruff check .
uv run --no-sync pyright
uv run --no-sync python -m tradebird_agents check --project .

A controlled model reply tests your code paths without credentials. Add cases for a refused disclosure, a missing source, an approval, and a resumed question when those belong to the project. Use an isolated Sandbox with test connections for custom code that can call external systems.

For a hosted change, save the candidate and run its managed checks as well. Inspect the built version and buyer-facing result. Old checks belong to the old version. Private buyer tests.