一键导入
test-unit
Run the arthur-observability-sdk unit tests. Use when you want to verify SDK logic without building a wheel or spinning up external services.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run the arthur-observability-sdk unit tests. Use when you want to verify SDK logic without building a wheel or spinning up external services.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Arthur onboarding sub-skill — Step 4: Analyze the target repository (language, framework, existing instrumentation). Writes detection results to .arthur-engine.env.
Arthur onboarding sub-skill — Step 8: Configure an LLM provider for continuous evals (OpenAI, Anthropic, Gemini, Bedrock, or Vertex AI). Reads/writes .arthur-engine.env.
Arthur onboarding sub-skill — Step 9: Recommend and configure continuous LLM evals for the Arthur task. Reads credentials and eval provider from .arthur-engine.env.
Arthur onboarding sub-skill — Step 5: Instrument the target repository with Arthur tracing (Python SDK, Mastra TS, or OpenInference). Reads detection results from .arthur-engine.env.
Arthur onboarding sub-skill — Step 2: Ensure Arthur GenAI Engine is available (local install or remote). Reads/writes .arthur-engine.env.
Onboard an agentic application to Arthur GenAI Engine. Guides through engine connection, task setup, code instrumentation, trace verification, and eval configuration. Invoke from any agentic application repository.
| name | test-unit |
| description | Run the arthur-observability-sdk unit tests. Use when you want to verify SDK logic without building a wheel or spinning up external services. |
| allowed-tools | Bash, Read |
Unit tests cover Arthur initialization, env-var resolution, prompt management, context helpers, and telemetry setup. They run entirely in-process — no wheel build, no network calls.
python/src/arthur_genai_client/ must exist (it is gitignored). If missing:
./scripts/generate_openapi_client.sh generate python
./scripts/generate_openapi_client.sh install python
From the arthur-observability-sdk/python/ directory:
uv run pytest tests -m unit_tests -v
uv run pytest tests/test_client.py -v
uv run pytest tests/test_client.py::test_arthur_requires_task_or_service_name -v
uv run pytest tests -m unit_tests -k "env" -v
@pytest.mark.unit_tests (via pytestmark at the module level).OTLPSpanExporter boundary or use InMemorySpanExporter — no real OTLP endpoint needed.arthur_genai_client and fail with ModuleNotFoundError, the generated client is missing (python/src/arthur_genai_client/). Run the generate-client skill first.