cmpnd 0.102.2__tar.gz → 0.102.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cmpnd-0.102.2 → cmpnd-0.102.5}/PKG-INFO +1 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/__init__.py +3 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_provider_writes.py +16 -2
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/providers.py +20 -3
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/top.py +25 -3
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/client.py +41 -7
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/credentials.py +16 -4
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/deployment.py +7 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/deployment_runs.py +5 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/execution.py +47 -45
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/optimization.py +6 -2
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/SKILL.md +1 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/cli.md +3 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/client.md +12 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/sdk-instrumentation.md +4 -2
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/rejections.py +8 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/pyproject.toml +1 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_composite_module.py +11 -5
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_providers.py +47 -7
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_schema_sample.py +25 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_deployment_runs.py +27 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_execute.py +6 -5
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_execute_run_identity.py +3 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_exporter_rejections.py +30 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_provider_keyword.py +34 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_provider_values.py +8 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_provider_writes.py +63 -5
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_trace_labels.py +15 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/uv.lock +1 -1
- {cmpnd-0.102.2 → cmpnd-0.102.5}/.gitignore +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/AGENTS.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/CLAUDE.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/README.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_account.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_guides.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_http.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_provider_types.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_rlm_patch.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_traces.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/authored.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/callback.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/deployments.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/login.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/optimizations.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/programs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/provider_credentials.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/verbs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/configuration.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/context.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/datasets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/decorators.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/deployment_metadata.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/eval_handler.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/exporter.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/helpers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/identity.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/imaging.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/labels.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/models.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/named_programs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/packaging.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/programs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/references.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/retry.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/references/setup.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/traces.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/cmpnd/versions.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/custom-proposer.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/reading-traces.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/docs/versions.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/examples/local_ollama.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/LINEAGE.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/README.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/bodies.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/exporter_http.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/network.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/process_local.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/queue_budget.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/request_log.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/retry.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/sender.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/span_context.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/ingest/pyproject.toml +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/capture_review_run.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/fork-matrix.sh +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/release-gate.sh +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/seed_review_run.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/_credential_route.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/_deployment_signature_helpers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/_exporter_helpers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/_fake_clock.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/_fresh_interpreter.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/_traced_run.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/conftest.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_deploy_pandas.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimize_continuation.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/conftest.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/hosted_optimize_probe.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/__main__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/drain.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/ingest.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/rlm_shape.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/README.md +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/asgi_app.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/baseline.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/drive_server.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/exits.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/outage.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/outage_proxy.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/pools.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/program.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sender/verify.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/sweep.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/conftest.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_health.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_signatures.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_trace_streaming.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/parity/test_traces.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/_result.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/real_models/test_trace_search.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/span_reference_fixture.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_authored.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_callback.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_deployments.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_login.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_optimizations.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_programs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_provider_flags.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_top.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_client.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_client_floor.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_client_program_names.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_clustering/test_type_conversion.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_configuration.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_context.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_credential_selection.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_datasets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_decorators.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_deploy.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_deployment_metadata.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_eval.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_eval_example_attribution.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_eval_example_failures.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_eval_start.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_exception_paths.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_exporter.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_exporter_fork_exec.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_exporter_program_names.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_exporter_queue.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_exporter_real.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_gepa_output_normalization.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_identity.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_imaging.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_import_weight.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_ingest_conformance.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_ingest_second_producer.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_integration.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_models.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimization_program_names.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize_proposer.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize_split.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_packaging.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_poll_until.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_process_local.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_program_identity.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_program_naming.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_programs_create.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_project_payload.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_provider_types.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_queue_budget.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_retry.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_rlm_patch.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_run_attribution_paths.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_schemas.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_seed_review_run.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_sender_scenarios.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_sending_settings.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_span_references.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_span_sent_once.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_span_submission.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_stored_login.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_system_one.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_trace_fact_wire_contract.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_trace_facts.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_trace_render.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_traces_read.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_truncation.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_user_agent.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_versions.py +0 -0
- {cmpnd-0.102.2 → cmpnd-0.102.5}/tests/test_xxh64.py +0 -0
|
@@ -39,7 +39,7 @@ from .deployment_metadata import (
|
|
|
39
39
|
UnsupportedDeploymentMetadataVersion,
|
|
40
40
|
)
|
|
41
41
|
from .deployment_runs import RunNotSubmitted, RunRefused, RunResultExpired, RunSubmissionUncertain, RunWaitTimeout
|
|
42
|
-
from .execution import DeployedProgram, RetryableProviderError
|
|
42
|
+
from .execution import DeployedProgram, RetryableProviderError, RunCancelled, RunFailed
|
|
43
43
|
from .exporter import flush, flush_exporter, sender_health, shutdown_exporter
|
|
44
44
|
from .lm_configuration import HostedLM, SystemOne, configure_lm
|
|
45
45
|
from .mcp_servers import (
|
|
@@ -139,6 +139,8 @@ __all__ = [
|
|
|
139
139
|
"RunRefused",
|
|
140
140
|
"RunWaitTimeout",
|
|
141
141
|
"RunResultExpired",
|
|
142
|
+
"RunFailed",
|
|
143
|
+
"RunCancelled",
|
|
142
144
|
"DeployedProgram",
|
|
143
145
|
"RetryableProviderError",
|
|
144
146
|
"ProgramAddress",
|
|
@@ -13,6 +13,7 @@ shows. No function here puts the key in a return value, an error or a log.
|
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
15
15
|
|
|
16
|
+
import difflib
|
|
16
17
|
import typing
|
|
17
18
|
|
|
18
19
|
from . import _provider_types, credentials
|
|
@@ -44,6 +45,7 @@ def add(
|
|
|
44
45
|
api_key: object,
|
|
45
46
|
base_url: str | None,
|
|
46
47
|
region: str | None,
|
|
48
|
+
force: object = False,
|
|
47
49
|
) -> credentials.Provider:
|
|
48
50
|
where = "cmpnd.Client.add_provider"
|
|
49
51
|
if not isinstance(name, str):
|
|
@@ -59,6 +61,15 @@ def add(
|
|
|
59
61
|
except _provider_types.ProviderTypeError as err:
|
|
60
62
|
raise ValueError(f"{where}: {err}") from None
|
|
61
63
|
body["api_key"] = _key(api_key, where)
|
|
64
|
+
if force is not True and force is not False:
|
|
65
|
+
raise TypeError(f"{where} takes force=True or force=False")
|
|
66
|
+
if not force and any(provider.name == body["name"] for provider in credentials._list(transport)):
|
|
67
|
+
raise ValueError(
|
|
68
|
+
f"provider {body['name']!r} already exists. Pass force=True to replace it, "
|
|
69
|
+
"or use client.rotate_provider_key() to change only its key."
|
|
70
|
+
)
|
|
71
|
+
if not force:
|
|
72
|
+
body["create_only"] = True
|
|
62
73
|
transport.post(_ROUTE, json=body)
|
|
63
74
|
return credentials._get(body["name"], lambda: transport, where)
|
|
64
75
|
|
|
@@ -75,7 +86,9 @@ def rotate_key(transport: typing.Any, provider: object, *, api_key: object) -> c
|
|
|
75
86
|
|
|
76
87
|
|
|
77
88
|
def set_default(transport: typing.Any, provider: object) -> None:
|
|
78
|
-
|
|
89
|
+
name = _name(provider, "cmpnd.Client.set_default_provider")
|
|
90
|
+
_listed(transport, name)
|
|
91
|
+
transport.put(f"{_ROUTE}/default", json={"name": name})
|
|
79
92
|
|
|
80
93
|
|
|
81
94
|
def clear_default(transport: typing.Any) -> None:
|
|
@@ -97,4 +110,5 @@ def _listed(transport: typing.Any, name: str) -> dict[str, typing.Any]:
|
|
|
97
110
|
if (item.get("name") or item.get("target")) == name:
|
|
98
111
|
return item
|
|
99
112
|
names = sorted(str(i.get("name") or i.get("target")) for i in held)
|
|
100
|
-
|
|
113
|
+
close = difflib.get_close_matches(name, names, n=1, cutoff=0.5)
|
|
114
|
+
raise credentials.ProviderNotFound(name, names, close[0] if close else None)
|
|
@@ -29,6 +29,7 @@ holds the keys for MCP tool servers, under `--kind mcp`.
|
|
|
29
29
|
from __future__ import annotations
|
|
30
30
|
|
|
31
31
|
import argparse
|
|
32
|
+
import difflib
|
|
32
33
|
import typing
|
|
33
34
|
|
|
34
35
|
from ... import _provider_types
|
|
@@ -50,11 +51,12 @@ def register(subparsers: argparse._SubParsersAction[argparse.ArgumentParser]) ->
|
|
|
50
51
|
|
|
51
52
|
add = sub.add_parser(
|
|
52
53
|
"add",
|
|
53
|
-
help="Add a model provider and its key
|
|
54
|
+
help="Add a model provider and its key (owner only)",
|
|
54
55
|
description="Add a model provider. The key is read from the terminal, or from stdin when there is no "
|
|
55
|
-
"terminal.
|
|
56
|
+
"terminal. Replacing an existing name requires --force. " + _BASE_URL_NOTICE,
|
|
56
57
|
)
|
|
57
58
|
add.add_argument("name", help="How your code names this provider, such as openai or my-vllm")
|
|
59
|
+
add.add_argument("--force", action="store_true", help="Replace an existing provider's key, type and base URL")
|
|
58
60
|
add.add_argument(
|
|
59
61
|
"--type",
|
|
60
62
|
dest="provider_type",
|
|
@@ -158,6 +160,18 @@ def handle_add(client: api_client.ApiClient, args: typing.Any) -> typing.Any:
|
|
|
158
160
|
)
|
|
159
161
|
except _provider_types.ProviderTypeError as err:
|
|
160
162
|
raise _type_error(err) from None
|
|
163
|
+
chosen = _provider_types.resolve(args.name, getattr(args, "provider_type", None), _provider_types.CLI_SPELLING)
|
|
164
|
+
if chosen not in _provider_types.names():
|
|
165
|
+
raise api_client.CliError(f"unknown --type {chosen!r}. Choose one of {_TYPES_HELP}.")
|
|
166
|
+
if not getattr(args, "force", False):
|
|
167
|
+
held = _providers(client.get(_ROOT))
|
|
168
|
+
if any(_name(item) == body["name"] for item in held):
|
|
169
|
+
raise api_client.CliError(
|
|
170
|
+
f"provider {body['name']!r} already exists. Use --force to replace it, "
|
|
171
|
+
"or `cmpnd providers rotate` to change its key."
|
|
172
|
+
)
|
|
173
|
+
if not getattr(args, "force", False):
|
|
174
|
+
body["create_only"] = True
|
|
161
175
|
body["api_key"] = _read_key()
|
|
162
176
|
try:
|
|
163
177
|
answer = client.post(_ROOT, json=body)
|
|
@@ -225,6 +239,7 @@ def handle_default(client: api_client.ApiClient, args: typing.Any) -> typing.Any
|
|
|
225
239
|
f"this cmpnd server has no default provider. It needs {provider_credentials._SERVE_RELEASE}."
|
|
226
240
|
)
|
|
227
241
|
return {"default": payload["default"]}
|
|
242
|
+
listed(client, name)
|
|
228
243
|
try:
|
|
229
244
|
client.put(f"{_ROOT}/default", json={"name": name})
|
|
230
245
|
except api_client.ApiError as err:
|
|
@@ -239,7 +254,9 @@ def listed(client: api_client.ApiClient, name: str) -> dict[str, typing.Any]:
|
|
|
239
254
|
if _name(p) == name:
|
|
240
255
|
return p
|
|
241
256
|
held = ", ".join(_name(p) for p in providers) or "none"
|
|
242
|
-
|
|
257
|
+
close = difflib.get_close_matches(name, [_name(p) for p in providers], n=1, cutoff=0.5)
|
|
258
|
+
suggestion = f" Did you mean {close[0]!r}?" if close else ""
|
|
259
|
+
raise api_client.CliError(f"your organization holds no provider named {name!r}.{suggestion} It holds: {held}.")
|
|
243
260
|
|
|
244
261
|
|
|
245
262
|
def handle_rotate(client: api_client.ApiClient, args: typing.Any) -> typing.Any:
|
|
@@ -712,6 +712,12 @@ def _schema_data(client: api_client.ApiClient, partial: str) -> dict[str, Any]:
|
|
|
712
712
|
signature_name = None
|
|
713
713
|
outputs_open = False
|
|
714
714
|
known = interface_status == "known"
|
|
715
|
+
detail = None
|
|
716
|
+
if not known:
|
|
717
|
+
record = client.get(f"/api/v1/deployments/{did}")
|
|
718
|
+
report = record.get("interface") if isinstance(record, dict) else None
|
|
719
|
+
if isinstance(report, dict):
|
|
720
|
+
detail = report.get("detail")
|
|
715
721
|
# Open outputs name no fields: a run returns whatever fields the program returns.
|
|
716
722
|
names_outputs = known and not outputs_open
|
|
717
723
|
return {
|
|
@@ -730,6 +736,7 @@ def _schema_data(client: api_client.ApiClient, partial: str) -> dict[str, Any]:
|
|
|
730
736
|
"entrypoint": metadata.artifact.entrypoint if metadata is not None else None,
|
|
731
737
|
"source_format": metadata.artifact.source_format if metadata is not None else None,
|
|
732
738
|
"interface_status": interface_status,
|
|
739
|
+
"detail": detail,
|
|
733
740
|
"signature_name": signature_name,
|
|
734
741
|
"input_fields": [field.name for field in inputs] if known else None,
|
|
735
742
|
"optional_input_fields": [field.name for field in inputs if not field.is_required] if known else None,
|
|
@@ -745,11 +752,17 @@ def _sample_data(client: api_client.ApiClient, partial: str) -> dict[str, Any]:
|
|
|
745
752
|
"""One recorded example input for the program, from its most recent
|
|
746
753
|
example. ``input`` is None when the program has no recorded invocations."""
|
|
747
754
|
did, d, program_id = _deployment_program(client, partial)
|
|
748
|
-
resp = client.get(
|
|
755
|
+
resp = client.get(
|
|
756
|
+
f"/api/v1/signatures/{program_id}/examples", params={"per_page": "1", "page": "1", "status": "ok"}
|
|
757
|
+
)
|
|
749
758
|
examples = resp.get("examples") or []
|
|
750
759
|
input_obj: Any = None
|
|
751
760
|
source_trace: str | None = None
|
|
752
761
|
if examples:
|
|
762
|
+
if examples[0].get("status") != "ok":
|
|
763
|
+
raise api_client.CliError(
|
|
764
|
+
"this server did not honor status=ok for sample inputs. Upgrade the server to sample successful traces."
|
|
765
|
+
)
|
|
753
766
|
raw = examples[0].get("inputs")
|
|
754
767
|
source_trace = examples[0].get("trace_id")
|
|
755
768
|
try:
|
|
@@ -772,10 +785,19 @@ def cmd_schema(client: api_client.ApiClient, args: Any) -> None:
|
|
|
772
785
|
return
|
|
773
786
|
if data["status"] == "unavailable":
|
|
774
787
|
reason = str(data.get("reason") or "unknown reason").replace("_", " ")
|
|
775
|
-
|
|
788
|
+
detail = data.get("detail") or "Deploy the program again to record its public interface."
|
|
789
|
+
raise api_client.CliError(
|
|
790
|
+
f"deployment {_short_id(data['deployment_id'])} metadata is unavailable: {reason}. {detail}"
|
|
791
|
+
)
|
|
776
792
|
if data["interface_status"] != "known":
|
|
777
793
|
reason = str(data.get("reason") or "unknown reason").replace("_", " ")
|
|
778
|
-
|
|
794
|
+
detail = (
|
|
795
|
+
data.get("detail")
|
|
796
|
+
or "Deploy the program again with named forward() parameters to record its public interface."
|
|
797
|
+
)
|
|
798
|
+
raise api_client.CliError(
|
|
799
|
+
f"deployment {_short_id(data['deployment_id'])} interface is unknown: {reason}. {detail}"
|
|
800
|
+
)
|
|
779
801
|
name = data.get("program_name") or _short_id(data["deployment_id"])
|
|
780
802
|
sig_name = data.get("signature_name")
|
|
781
803
|
header = _c(str(name), "bold")
|
|
@@ -22,8 +22,9 @@ release. ``close()`` is an optional alias for end-of-scope flushing.
|
|
|
22
22
|
from __future__ import annotations
|
|
23
23
|
|
|
24
24
|
import dataclasses
|
|
25
|
-
from collections.abc import Mapping
|
|
26
|
-
from
|
|
25
|
+
from collections.abc import Callable, Mapping
|
|
26
|
+
from functools import wraps
|
|
27
|
+
from typing import Any, Literal, ParamSpec, TypeVar
|
|
27
28
|
|
|
28
29
|
from . import (
|
|
29
30
|
_account,
|
|
@@ -41,6 +42,22 @@ from . import (
|
|
|
41
42
|
)
|
|
42
43
|
from .deployment_metadata import DeploymentSignatureResponse
|
|
43
44
|
|
|
45
|
+
_P = ParamSpec("_P")
|
|
46
|
+
_R = TypeVar("_R")
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _label_filter_hint(function: Callable[_P, _R]) -> Callable[_P, _R]:
|
|
50
|
+
@wraps(function)
|
|
51
|
+
def checked(*args: _P.args, **kwargs: _P.kwargs) -> _R:
|
|
52
|
+
if "metadata" in kwargs:
|
|
53
|
+
raise TypeError(
|
|
54
|
+
"Client.list_traces() got an unexpected keyword argument 'metadata'. "
|
|
55
|
+
"Did you mean 'labels'? Use labels= to filter label keys."
|
|
56
|
+
)
|
|
57
|
+
return function(*args, **kwargs)
|
|
58
|
+
|
|
59
|
+
return checked
|
|
60
|
+
|
|
44
61
|
|
|
45
62
|
def _refuse_program_name_selector(inputs: dict[str, Any], method: str) -> None:
|
|
46
63
|
"""Refuse a ``program_name`` among a run's inputs, which the client spells ``entrypoint=``.
|
|
@@ -77,6 +94,14 @@ class Client:
|
|
|
77
94
|
env_max_queue_bytes = configuration.max_queue_bytes_from_environment()
|
|
78
95
|
if env_max_queue_bytes is not None:
|
|
79
96
|
config_kwargs["max_queue_bytes"] = env_max_queue_bytes
|
|
97
|
+
if "default_tags" in config_kwargs:
|
|
98
|
+
from . import labels as trace_labels
|
|
99
|
+
|
|
100
|
+
tags = trace_labels.validate(config_kwargs["default_tags"], argument="default_tags")
|
|
101
|
+
if any(not isinstance(value, str) for value in tags.values()):
|
|
102
|
+
raise ValueError("default_tags values must be strings. Use labels= for lists of strings.")
|
|
103
|
+
trace_labels.validate({**tags, **config_kwargs.get("labels", {})}, argument="default_tags and labels")
|
|
104
|
+
config_kwargs["default_tags"] = dict(tags)
|
|
80
105
|
self._config = configuration.Config(
|
|
81
106
|
api_key=resolved_key,
|
|
82
107
|
endpoint=resolved_endpoint,
|
|
@@ -386,8 +411,10 @@ class Client:
|
|
|
386
411
|
are also ``httpx.HTTPStatusError``.
|
|
387
412
|
httpx.HTTPStatusError: If serve refuses the submission or a status or
|
|
388
413
|
result read, carrying that response. A deployment of another
|
|
389
|
-
account answers ``404``.
|
|
390
|
-
|
|
414
|
+
account answers ``404``.
|
|
415
|
+
RunFailed: If the accepted run failed, with its ``run_id``, ``trace_id``
|
|
416
|
+
and serve's retained ``error`` and ``result``.
|
|
417
|
+
RunCancelled: If the accepted run was cancelled. It is a ``RunFailed``.
|
|
391
418
|
RetryableProviderError: If the stored failure is a retryable provider
|
|
392
419
|
failure. No run is started again automatically.
|
|
393
420
|
RunSubmissionUncertain: If the POST reply was lost or was a server
|
|
@@ -1002,6 +1029,7 @@ class Client:
|
|
|
1002
1029
|
api_key: str,
|
|
1003
1030
|
base_url: str | None = None,
|
|
1004
1031
|
region: str | None = None,
|
|
1032
|
+
force: bool = False,
|
|
1005
1033
|
) -> credentials.Provider:
|
|
1006
1034
|
"""Add a model provider to the organization under ``name``, and return it.
|
|
1007
1035
|
|
|
@@ -1010,8 +1038,9 @@ class Client:
|
|
|
1010
1038
|
that name. ``openai-compatible`` and ``azure`` need ``base_url``, the endpoint's
|
|
1011
1039
|
URL up to ``/v1``. ``bedrock`` needs ``region``, such as ``"us-east-1"``. A
|
|
1012
1040
|
``base_url`` given for another type replaces the type's own endpoint. Adding
|
|
1013
|
-
under a name the organization already uses
|
|
1014
|
-
base URL. ``cmpnd providers add`` does the same
|
|
1041
|
+
under a name the organization already uses requires ``force=True`` to replace
|
|
1042
|
+
its key, type and base URL. ``cmpnd providers add --force`` does the same
|
|
1043
|
+
from a terminal. Use ``rotate_provider_key`` to change only the key.
|
|
1015
1044
|
|
|
1016
1045
|
``api_key`` is the provider's key. Read it from the environment rather than
|
|
1017
1046
|
writing it in your code, as in ``api_key=os.environ["OPENAI_API_KEY"]``. The SDK
|
|
@@ -1031,7 +1060,7 @@ class Client:
|
|
|
1031
1060
|
from . import _provider_writes
|
|
1032
1061
|
|
|
1033
1062
|
return _provider_writes.add(
|
|
1034
|
-
self._http_client(), name, type_name=type, api_key=api_key, base_url=base_url, region=region
|
|
1063
|
+
self._http_client(), name, type_name=type, api_key=api_key, base_url=base_url, region=region, force=force
|
|
1035
1064
|
)
|
|
1036
1065
|
|
|
1037
1066
|
def rotate_provider_key(self, name: str | credentials.Provider, *, api_key: str) -> credentials.Provider:
|
|
@@ -1094,6 +1123,7 @@ class Client:
|
|
|
1094
1123
|
|
|
1095
1124
|
_provider_writes.remove(self._http_client(), name)
|
|
1096
1125
|
|
|
1126
|
+
@_label_filter_hint
|
|
1097
1127
|
def list_traces(
|
|
1098
1128
|
self,
|
|
1099
1129
|
*,
|
|
@@ -1127,6 +1157,10 @@ class Client:
|
|
|
1127
1157
|
this call can be missing from it; it appears once serve has folded it,
|
|
1128
1158
|
typically within a few seconds.
|
|
1129
1159
|
"""
|
|
1160
|
+
if isinstance(tags, Mapping):
|
|
1161
|
+
raise TypeError(
|
|
1162
|
+
"Client.list_traces() takes labels= to filter label keys. tags= takes a list of project names."
|
|
1163
|
+
)
|
|
1130
1164
|
self._check_active()
|
|
1131
1165
|
_exporter_pool.flush(self._config)
|
|
1132
1166
|
page = _traces.list(
|
|
@@ -66,9 +66,10 @@ class ProviderNotFound(LookupError):
|
|
|
66
66
|
class Provider:
|
|
67
67
|
"""One of the organization's named providers.
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
``cmpnd.Client.get_provider`` and ``list_providers`` read providers from the
|
|
70
|
+
platform. ``for_testing`` builds an offline value for tests. Calling
|
|
71
|
+
``cmpnd.Provider(...)`` raises. A provider is frozen and holds no secret.
|
|
72
|
+
``cmpnd.Credential`` is a deprecated name for this class.
|
|
72
73
|
|
|
73
74
|
``name`` is what a deployment or run records. ``protocols`` are the wire protocols
|
|
74
75
|
the provider's endpoint serves, such as ``chat_completions`` and ``system_one``; it
|
|
@@ -90,6 +91,17 @@ class Provider:
|
|
|
90
91
|
"client.get_provider(NAME)"
|
|
91
92
|
)
|
|
92
93
|
|
|
94
|
+
@classmethod
|
|
95
|
+
def for_testing(cls, name: str, *, protocols: tuple[str, ...] = (), api_base: str | None = None) -> Provider:
|
|
96
|
+
"""Build an offline provider for tests, without looking up an account.
|
|
97
|
+
|
|
98
|
+
Serve still checks the named provider when a deployment or run uses it.
|
|
99
|
+
Use ``client.get_provider(name)`` in application code to catch misspellings.
|
|
100
|
+
"""
|
|
101
|
+
if not isinstance(name, str) or not name.strip(): # pyright: ignore[reportUnnecessaryIsInstance] -- untyped callers
|
|
102
|
+
raise ValueError("a test provider needs a non-empty name")
|
|
103
|
+
return _mint(name, tuple(protocols), api_base)
|
|
104
|
+
|
|
93
105
|
def __setattr__(self, name: str, value: object) -> NoReturn:
|
|
94
106
|
raise AttributeError(f"a cmpnd.Provider is frozen, so {name!r} cannot be set")
|
|
95
107
|
|
|
@@ -135,7 +147,7 @@ def _deprecated_type(owner: str, name: str) -> Any:
|
|
|
135
147
|
|
|
136
148
|
|
|
137
149
|
def _mint(name: str, protocols: tuple[str, ...], api_base: str | None) -> Provider:
|
|
138
|
-
"""
|
|
150
|
+
"""Build a frozen provider from listing metadata or an offline test."""
|
|
139
151
|
value = object.__new__(Provider)
|
|
140
152
|
object.__setattr__(value, "name", name)
|
|
141
153
|
object.__setattr__(value, "protocols", protocols)
|
|
@@ -21,6 +21,7 @@ from . import (
|
|
|
21
21
|
_http,
|
|
22
22
|
authored,
|
|
23
23
|
configuration,
|
|
24
|
+
credentials,
|
|
24
25
|
deployment_metadata,
|
|
25
26
|
execution,
|
|
26
27
|
helpers,
|
|
@@ -595,6 +596,7 @@ def deploy_bundle(
|
|
|
595
596
|
program_name: str | None = None,
|
|
596
597
|
config: configuration.Config,
|
|
597
598
|
credential_name: str | None = None,
|
|
599
|
+
provider: credentials.Provider | None = None,
|
|
598
600
|
) -> execution.DeployedProgram:
|
|
599
601
|
"""Upload a checked authored-source bundle on ``config``'s account, without packaging a live module.
|
|
600
602
|
|
|
@@ -603,10 +605,14 @@ def deploy_bundle(
|
|
|
603
605
|
organization uses the name. The platform refuses a deployment without one, except
|
|
604
606
|
a server without program names, such as self-host release 2026-001, which accepts it.
|
|
605
607
|
|
|
606
|
-
``
|
|
608
|
+
``provider`` is the provider the program's model spends, as
|
|
607
609
|
``cmpnd deploy --provider`` names it. Without one, the organization's default is
|
|
608
610
|
spent. Serve refuses a name the organization does not hold, naming the nearest one.
|
|
609
611
|
"""
|
|
612
|
+
if provider is not None:
|
|
613
|
+
if credential_name is not None:
|
|
614
|
+
raise TypeError("deploy_bundle takes provider= or credential_name=, not both. Pass only provider=.")
|
|
615
|
+
credential_name = credentials.name_of(provider, "deploy_bundle(provider=)")
|
|
610
616
|
return deploy_bundle_under(
|
|
611
617
|
zip_bytes,
|
|
612
618
|
facts,
|
|
@@ -688,6 +688,11 @@ def deployment_id_of(target: Any) -> str:
|
|
|
688
688
|
if isinstance(target, str):
|
|
689
689
|
if versions.is_deployment_id(target):
|
|
690
690
|
return target
|
|
691
|
+
if target.startswith("p_"):
|
|
692
|
+
raise ValueError(
|
|
693
|
+
f"{target!r} is a program id. Pass a d_ deployment id from client.list_deployments(), "
|
|
694
|
+
"or use the program name in cmpnd.ProgramAddress.parse('your-program-name')."
|
|
695
|
+
)
|
|
691
696
|
raise ValueError(
|
|
692
697
|
f"{target!r} is not a deployment id (d_…). To name a program, or one of its "
|
|
693
698
|
f"versions by tag, pass an address: cmpnd.ProgramAddress.parse({target!r})."
|
|
@@ -8,15 +8,7 @@ from __future__ import annotations
|
|
|
8
8
|
|
|
9
9
|
from typing import TYPE_CHECKING, Any
|
|
10
10
|
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
# Bound by name, not reached as `httpx.HTTPStatusError`: the SDK's own tests patch this
|
|
14
|
-
# module's whole `httpx` attribute, so constructing the exception off that attribute
|
|
15
|
-
# raises "exceptions must derive from BaseException" under test while working in
|
|
16
|
-
# production. A direct import is the same class both ways.
|
|
17
|
-
from httpx import HTTPStatusError
|
|
18
|
-
|
|
19
|
-
from . import _http, configuration, deployment_runs
|
|
11
|
+
from . import configuration, deployment_runs
|
|
20
12
|
from .deployment_metadata import DeploymentArtifactMetadata, DeploymentSignatureResponse, ProgramFieldType
|
|
21
13
|
|
|
22
14
|
if TYPE_CHECKING:
|
|
@@ -53,7 +45,33 @@ def _with_run_id(error: Exception, run_id: str | None) -> Exception:
|
|
|
53
45
|
return error
|
|
54
46
|
|
|
55
47
|
|
|
56
|
-
class
|
|
48
|
+
class RunFailed(RuntimeError):
|
|
49
|
+
"""An accepted run failed. ``error`` and ``result`` retain serve's answer.
|
|
50
|
+
|
|
51
|
+
``run_id`` identifies the accepted run and ``trace_id`` its root trace, when
|
|
52
|
+
serve named one. ``execution_status`` is the stored execution status, when
|
|
53
|
+
present. It is independent of the HTTP response that delivered the result.
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
def __init__(self, run_id: str, result: dict[str, Any], *, trace_id: str | None = None):
|
|
57
|
+
self.run_id = run_id
|
|
58
|
+
self.trace_id = trace_id
|
|
59
|
+
self.result = result
|
|
60
|
+
self.error = result.get("error")
|
|
61
|
+
self.execution_status = _nonnegative_int(result.get("execution_status"))
|
|
62
|
+
self._cmpnd_deployment_run_id = run_id
|
|
63
|
+
self._cmpnd_deployment_trace_id = trace_id
|
|
64
|
+
detail = self.error.get("message") if isinstance(self.error, dict) else self.error
|
|
65
|
+
detail = str(detail).strip()[:2000] if detail else ""
|
|
66
|
+
outcome = "was cancelled" if isinstance(self, RunCancelled) else "failed"
|
|
67
|
+
super().__init__(f"Deployment run {run_id} {outcome}" + (f": {detail}" if detail else ""))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class RunCancelled(RunFailed):
|
|
71
|
+
"""An accepted run was cancelled. It carries the same evidence as RunFailed."""
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class RetryableProviderError(RunFailed):
|
|
57
75
|
"""A provider failure the platform identified as safe to retry.
|
|
58
76
|
|
|
59
77
|
``provider_status`` is absent when the provider failed before returning an HTTP
|
|
@@ -62,15 +80,15 @@ class RetryableProviderError(HTTPStatusError):
|
|
|
62
80
|
|
|
63
81
|
def __init__(
|
|
64
82
|
self,
|
|
65
|
-
|
|
83
|
+
run_id: str,
|
|
84
|
+
result: dict[str, Any],
|
|
66
85
|
*,
|
|
67
|
-
|
|
68
|
-
response: httpx.Response,
|
|
86
|
+
trace_id: str | None,
|
|
69
87
|
provider_status: int | None,
|
|
70
88
|
attempts: int | None,
|
|
71
89
|
retry_after: int | None,
|
|
72
90
|
) -> None:
|
|
73
|
-
super().__init__(
|
|
91
|
+
super().__init__(run_id, result, trace_id=trace_id)
|
|
74
92
|
self.provider_status = provider_status
|
|
75
93
|
self.attempts = attempts
|
|
76
94
|
self.retry_after = retry_after
|
|
@@ -83,13 +101,9 @@ def _nonnegative_int(value: object) -> int | None:
|
|
|
83
101
|
|
|
84
102
|
|
|
85
103
|
def _retryable_provider_failure(
|
|
86
|
-
|
|
104
|
+
body: dict[str, Any],
|
|
87
105
|
) -> tuple[int | None, int | None, int | None] | None:
|
|
88
|
-
|
|
89
|
-
body = resp.json()
|
|
90
|
-
except ValueError:
|
|
91
|
-
return None
|
|
92
|
-
if not isinstance(body, dict) or body.get("retryable") is not True:
|
|
106
|
+
if body.get("retryable") is not True:
|
|
93
107
|
return None
|
|
94
108
|
failure = body.get("failure")
|
|
95
109
|
if not isinstance(failure, dict) or failure.get("domain") != "provider":
|
|
@@ -278,11 +292,7 @@ def run_deployment(
|
|
|
278
292
|
trace_id = _settled_trace_id(settled)
|
|
279
293
|
result = settled["result"]
|
|
280
294
|
if settled["status"] == "failed":
|
|
281
|
-
|
|
282
|
-
_raise_stored_failure(settled_id, result, config.endpoint)
|
|
283
|
-
except Exception as error:
|
|
284
|
-
error._cmpnd_deployment_trace_id = trace_id # pyright: ignore[reportAttributeAccessIssue]
|
|
285
|
-
raise
|
|
295
|
+
_raise_stored_failure(settled_id, result, trace_id)
|
|
286
296
|
if not isinstance(result, dict) or "output" not in result:
|
|
287
297
|
raise _with_run_id(RuntimeError("Deployment run result has no program output"), settled_id)
|
|
288
298
|
output = result["output"]
|
|
@@ -292,29 +302,21 @@ def run_deployment(
|
|
|
292
302
|
return prediction
|
|
293
303
|
|
|
294
304
|
|
|
295
|
-
def _raise_stored_failure(run_id: str, result: object,
|
|
305
|
+
def _raise_stored_failure(run_id: str, result: object, trace_id: str | None) -> None:
|
|
296
306
|
if not isinstance(result, dict):
|
|
297
307
|
raise _with_run_id(RuntimeError("Deployment run failure has no retained error"), run_id)
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
detail = _http.server_detail(response)
|
|
303
|
-
message = f"Deployment run {run_id} failed with {status}" + (f": {detail}" if detail else "")
|
|
304
|
-
provider_failure = _retryable_provider_failure(response)
|
|
308
|
+
error = result.get("error")
|
|
309
|
+
if isinstance(error, dict) and error.get("type") in {"cancelled", "canceled", "RunCancelled"}:
|
|
310
|
+
raise RunCancelled(run_id, result, trace_id=trace_id)
|
|
311
|
+
provider_failure = _retryable_provider_failure(result)
|
|
305
312
|
if provider_failure is not None:
|
|
306
313
|
provider_status, attempts, retry_after = provider_failure
|
|
307
|
-
|
|
308
|
-
# status is in the detail, so the message leaves the worker's out.
|
|
309
|
-
raise _with_run_id(
|
|
310
|
-
RetryableProviderError(
|
|
311
|
-
f"Deployment run {run_id} failed" + (f": {detail}" if detail else ""),
|
|
312
|
-
request=request,
|
|
313
|
-
response=response,
|
|
314
|
-
provider_status=provider_status,
|
|
315
|
-
attempts=attempts,
|
|
316
|
-
retry_after=retry_after,
|
|
317
|
-
),
|
|
314
|
+
raise RetryableProviderError(
|
|
318
315
|
run_id,
|
|
316
|
+
result,
|
|
317
|
+
trace_id=trace_id,
|
|
318
|
+
provider_status=provider_status,
|
|
319
|
+
attempts=attempts,
|
|
320
|
+
retry_after=retry_after,
|
|
319
321
|
)
|
|
320
|
-
raise
|
|
322
|
+
raise RunFailed(run_id, result, trace_id=trace_id)
|
|
@@ -1182,6 +1182,7 @@ def optimize_authored(
|
|
|
1182
1182
|
lms: dict[str, Any] | None = None,
|
|
1183
1183
|
lm_credentials: dict[str, credentials.Provider] | None = None,
|
|
1184
1184
|
credential: credentials.Provider | None = None,
|
|
1185
|
+
provider: credentials.Provider | None = None,
|
|
1185
1186
|
max_metric_calls: int | None = None,
|
|
1186
1187
|
auto: str | None = None,
|
|
1187
1188
|
may_author_code: bool | None = None,
|
|
@@ -1213,7 +1214,8 @@ def optimize_authored(
|
|
|
1213
1214
|
with ``deployment_id``, for a file that binds no program, is refused before it
|
|
1214
1215
|
resolves, because that deployment already has its program.
|
|
1215
1216
|
|
|
1216
|
-
``
|
|
1217
|
+
``provider`` pays for the student's model as well as reflection unless a binding
|
|
1218
|
+
names its own provider. ``credential`` is its deprecated spelling.
|
|
1217
1219
|
``lm_credentials`` maps a binding the file's ``lms`` declares to the credential it
|
|
1218
1220
|
spends instead, which the file itself cannot name. A ``cmpnd.HostedLM`` or
|
|
1219
1221
|
``cmpnd.SystemOne`` names one in a live-object call.
|
|
@@ -1225,7 +1227,9 @@ def optimize_authored(
|
|
|
1225
1227
|
"""
|
|
1226
1228
|
check_optimizer(optimizer)
|
|
1227
1229
|
run_labels = _run_labels(labels)
|
|
1228
|
-
credential_name = credentials.name_of(
|
|
1230
|
+
credential_name = credentials.name_of(
|
|
1231
|
+
credentials.chosen(provider, credential, "optimize_authored"), "optimize_authored(provider=)"
|
|
1232
|
+
)
|
|
1229
1233
|
config = dict(config or {})
|
|
1230
1234
|
if prepared.facts.lms is not None:
|
|
1231
1235
|
if lms is not None:
|
|
@@ -120,7 +120,7 @@ asks what Cmpnd tools exist, or a task might match one, read it, or run
|
|
|
120
120
|
`support-triage`. Use the same name for local runs, deploys and
|
|
121
121
|
optimizations, so they all land under one program.
|
|
122
122
|
- **Keys never go in code, command arguments or chat.**
|
|
123
|
-
- Provider keys live on Cmpnd as providers: `cmpnd providers add`
|
|
123
|
+
- Provider keys live on Cmpnd as providers: `cmpnd providers add` (an existing name requires `--force`)
|
|
124
124
|
prompts for the key.
|
|
125
125
|
- Local scripts read keys from the environment.
|
|
126
126
|
- Deployed source must import without any key.
|
|
@@ -856,7 +856,7 @@ Every member reads the providers with `list` and `default`. Every write needs th
|
|
|
856
856
|
- `azure` needs `--base-url`, your Azure OpenAI resource's endpoint.
|
|
857
857
|
- `bedrock` needs `--region`, such as `us-east-1`, and builds `https://bedrock-runtime.<region>.amazonaws.com`. `--base-url` replaces the region for another Bedrock endpoint, such as its OpenAI-compatible one.
|
|
858
858
|
|
|
859
|
-
`--base-url` on another type replaces the type's own endpoint. Every member of the org sees the scheme and host of a provider's base URL, so never put a key in it.
|
|
859
|
+
`--base-url` on another type replaces the type's own endpoint. Every member of the org sees the scheme and host of a provider's base URL, so never put a key in it. An existing name requires `--force` before the CLI reads the key. Use `cmpnd providers rotate NAME` to change only the key. A forced replacement changes the key, type and base URL, and every deployment and run that recorded the name uses the replacement on its next call.
|
|
860
860
|
|
|
861
861
|
The command has no `--api-key` flag. A key in argv lands in shell history, `ps` output and CI logs. The CLI reads the key with `getpass` from a terminal, and from stdin otherwise:
|
|
862
862
|
|
|
@@ -1376,3 +1376,5 @@ to the customer. The operator's step-2 key gets a 401. The customer's
|
|
|
1376
1376
|
`cmpnd ps`, `cmpnd run`, `cmpnd tool-servers show` and
|
|
1377
1377
|
`cmpnd optimizations show` succeed under the rotated credentials, and the web
|
|
1378
1378
|
app shows the program, its deployment, the traces and the optimization runs.
|
|
1379
|
+
|
|
1380
|
+
`cmpnd sample` requests only traces that settled with status `ok`. An unknown interface in `cmpnd schema` includes the explanation and remedy that `cmpnd inspect` reports.
|
|
@@ -211,6 +211,8 @@ endpoint. None of these reads the global config:
|
|
|
211
211
|
call starts. It never deploys. The program's model comes
|
|
212
212
|
from the deployment. `provider` names the `cmpnd.Provider` every model
|
|
213
213
|
that names none spends, else the organization's default, if one is set.
|
|
214
|
+
The provider also routes the student model, not only reflection. A binding that
|
|
215
|
+
names its own provider keeps it.
|
|
214
216
|
`labels` labels every trace the run produces, its rollouts, metric calls and
|
|
215
217
|
reflections, under the rules `run_deployment`'s `labels` follow: a reserved
|
|
216
218
|
`cmpnd.*` or `dspy.*` key, a label past a cap or more than 112 keys raises `ValueError` before
|
|
@@ -370,7 +372,7 @@ sdk.rotate_provider_key("openai", api_key=os.environ["OPENAI_API_KEY"])
|
|
|
370
372
|
sdk.remove_provider("bedrock-east")
|
|
371
373
|
```
|
|
372
374
|
|
|
373
|
-
- `sdk.add_provider(name, *, type=None, api_key, base_url=None, region=None)` adds a provider and returns its `cmpnd.Provider`. `type` takes the types `cmpnd providers add --type` takes, and defaults to `name` when a type has that name. `openai-compatible` and `azure` need `base_url`, and `bedrock` needs `region`. A wrong combination raises `ValueError` before any request. Adding under a name
|
|
375
|
+
- `sdk.add_provider(name, *, type=None, api_key, base_url=None, region=None, force=False)` adds a provider and returns its `cmpnd.Provider`. `type` takes the types `cmpnd providers add --type` takes, and defaults to `name` when a type has that name. `openai-compatible` and `azure` need `base_url`, and `bedrock` needs `region`. A wrong combination raises `ValueError` before any request. Adding under a listed name raises `ValueError`. The server also refuses a concurrent add of that name. Pass `force=True` to replace its key, type and base URL, or call `rotate_provider_key` to change only the key.
|
|
374
376
|
- `sdk.rotate_provider_key(name, *, api_key)` replaces a provider's key, keeps its base URL and protocols, and returns the provider. It raises `ValueError` and changes nothing when the listing shows a base URL that may be only its scheme and host, as `cmpnd providers rotate` refuses.
|
|
375
377
|
- `sdk.set_default_provider(name)` makes a provider the default, which a deploy or run spends when its code names none. `sdk.clear_default_provider()` removes the default.
|
|
376
378
|
- `sdk.remove_provider(name)` removes a provider and its key. Calls that use it stop at once, also in runs already in progress.
|
|
@@ -402,3 +404,12 @@ tags and publishes the run summary, the score curve and the GEPA LM traces
|
|
|
402
404
|
through the client's own endpoint and key. When `auto_instrument()` is also
|
|
403
405
|
active, `optimize_program` suspends the global `dspy.GEPA` patch for the
|
|
404
406
|
compile, so the run records once, on the client's account.
|
|
407
|
+
|
|
408
|
+
Use `cmpnd.Provider.for_testing(name, protocols=(), api_base=None)` to build a frozen provider for offline tests. Application code looks up providers with `client.get_provider(name)`. Serve checks the name and protocols when a deployment or run uses either value.
|
|
409
|
+
|
|
410
|
+
Authored calls take the same `provider=` value. `optimize_authored(provider=...)` routes the student model and every model binding that names no provider. Its older `credential=` spelling warns. `deploy_bundle(provider=...)` names the provider the deployed program spends and refuses a simultaneous `credential_name=`.
|
|
411
|
+
`Client(default_tags=...)` checks every key and value at construction under the label rules. Values must be strings. Reserved keys, invalid keys and values over 256 bytes raise `ValueError` naming the argument and rule. Default tags and default labels share the 112-user-key limit.
|
|
412
|
+
|
|
413
|
+
Use `list_traces(labels={"env": "prod"})` to filter label keys. The older `metadata=` argument and a map under `tags=` raise `TypeError` naming `labels=`. A list under `tags=` still filters projects.
|
|
414
|
+
|
|
415
|
+
An accepted run raises `cmpnd.RunFailed` when it fails and `cmpnd.RunCancelled` when it is cancelled. Both carry `run_id`, `trace_id`, the retained `error` and `result`, and the optional recorded `execution_status`. `RetryableProviderError` is a `RunFailed`. HTTP errors continue to carry real submission or read responses.
|