diff --git a/AGENTS.md b/AGENTS.md index ceb40cd8fa..8bc6670f86 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -297,6 +297,7 @@ Note: This is separate from `persistence_dir` which is used for conversation sta - Build agent-server: `make build-server` (output: `dist/agent-server/`) - Clean caches: `make clean` - Run SDK examples: see [openhands-sdk/openhands/sdk/AGENTS.md](openhands-sdk/openhands/sdk/AGENTS.md). +- The example workflow runs `uv run pytest tests/examples/test_examples.py --run-examples`; each successful example must print an `EXAMPLE_COST: ...` line to stdout (use `EXAMPLE_COST: 0` for non-LLM examples). - Conversation plugins passed via `plugins=[...]` are lazy-loaded on the first `send_message()` or `run()`, so example code should inspect plugin-added skills or `resolved_plugins` only after that first interaction. diff --git a/examples/01_standalone_sdk/43_mixed_marketplace_skills/main.py b/examples/01_standalone_sdk/43_mixed_marketplace_skills/main.py index 861b9b67fb..44132b0179 100644 --- a/examples/01_standalone_sdk/43_mixed_marketplace_skills/main.py +++ b/examples/01_standalone_sdk/43_mixed_marketplace_skills/main.py @@ -116,3 +116,4 @@ def main(): if __name__ == "__main__": main() + print("EXAMPLE_COST: 0")