cmpnd 0.114.3__tar.gz → 0.115.0__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.114.3 → cmpnd-0.115.0}/PKG-INFO +13 -4
- {cmpnd-0.114.3 → cmpnd-0.115.0}/README.md +12 -3
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/optimizations.py +38 -3
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/client.py +31 -6
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/optimization.py +40 -7
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/cli.md +21 -5
- {cmpnd-0.114.3 → cmpnd-0.115.0}/pyproject.toml +1 -1
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimize_continuation.py +25 -2
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_optimizations.py +55 -2
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize.py +64 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/uv.lock +1 -1
- {cmpnd-0.114.3 → cmpnd-0.115.0}/.gitignore +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/AGENTS.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/CLAUDE.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/LINEAGE.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_account.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_http.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_provider_types.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_provider_writes.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_reanchor_evidence.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_reanchor_patch.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_traces.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/authored.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/callback.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/deployments.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/feedback.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/kernel_lines.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/login.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/programs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/provider_credentials.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/providers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/top.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/verbs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/configuration.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/context.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/credentials.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/datasets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/decorators.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/deployment.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/deployment_metadata.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/deployment_runs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/eval_handler.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/execution.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/exporter.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/field_types.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/helpers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/identity.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/imaging.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/kernel_lines.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/labels.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/models.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/named_programs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/packaging.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/program_evals.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/programs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/references.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/retry.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/SKILL.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/evals.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/setup.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/traces.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd/versions.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/LINEAGE.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/bodies.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/exporter_http.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/network.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/process_local.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/queue_budget.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/record_stream.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/rejections.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/retry.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/run_closed.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/sender.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/span_context.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/client.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/custom-proposer.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/ingest-transport.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/platform-evals.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/reading-traces.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/sdk-instrumentation.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/docs/versions.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/examples/local_ollama.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/capture_review_run.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/fork-matrix.sh +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/record_gepa_events.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/release-gate.sh +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/seed_review_run.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/_credential_route.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/_deployment_signature_helpers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/_exporter_helpers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/_fake_clock.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/_fresh_interpreter.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/_traced_run.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/conftest.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/dspy_features.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_composite_module.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_deploy_pandas.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_reanchor_optimization.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/gepa_record_fixture.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/conftest.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/hosted_optimize_probe.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/system_one_deployment.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/__main__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/drain.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/ingest.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/rlm_shape.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/README.md +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/asgi_app.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/baseline.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/drive_server.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/exits.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/outage.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/outage_proxy.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/pools.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/program.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sender/verify.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/sweep.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/conftest.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_health.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_signatures.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_trace_streaming.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/parity/test_traces.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/_agent.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/_result.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/real_models/test_trace_search.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/span_reference_fixture.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_authored.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_authored_eval.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_callback.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_deployments.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_feedback.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_login.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_org_support.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_programs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_provider_flags.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_providers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_schema_sample.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_top.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_traces_query_needs_program.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_client.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_client_floor.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_client_program_names.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_configuration.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_context.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_credential_selection.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_datasets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_decorators.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_deploy.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_deployment_metadata.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_deployment_runs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_dspy_version_label.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_eval.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_eval_example_attribution.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_eval_example_failures.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_eval_start.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_exception_paths.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_execute.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_execute_run_identity.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_exporter.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_exporter_fork_exec.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_exporter_program_names.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_exporter_queue.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_exporter_real.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_exporter_rejections.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_field_types.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_gepa_fold.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_gepa_output_normalization.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_identity.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_imaging.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_import_weight.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_ingest_conformance.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_ingest_transport.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_integration.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_kernel_lines.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_model_list_protocol.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_models.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimization_program_names.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_gepa_settings.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_lm_model_type.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_proposer.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_split.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_packaging.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_poll_until.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_process_local.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_program_evals.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_program_identity.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_program_lm_binding.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_program_naming.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_programs_create.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_project_payload.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_provider_keyword.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_provider_models.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_provider_types.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_provider_values.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_provider_writes.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_queue_budget.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_reanchor_evidence.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_reanchor_patch.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_retry.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_rlm_tool_spans.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_run_attribution_paths.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_run_closed.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_schemas.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_seed_review_run.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_sender_scenarios.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_sending_settings.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_span_references.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_span_sent_once.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_span_submission.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_stored_login.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_system_one.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_trace_fact_wire_contract.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_trace_facts.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_trace_labels.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_trace_render.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_traces_query_needs_program.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_traces_read.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_truncation.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_untraced_spans.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_usage_dialect.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_user_agent.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_versions.py +0 -0
- {cmpnd-0.114.3 → cmpnd-0.115.0}/tests/test_xxh64.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cmpnd
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.115.0
|
|
4
4
|
Summary: DSPy observability and deployment SDK for cmpnd
|
|
5
5
|
Project-URL: Homepage, https://cmpnd.ai
|
|
6
6
|
Author-email: cmpnd <hello@cmpnd.ai>
|
|
@@ -625,6 +625,14 @@ for model in ["openai/gpt-4o-mini", "openai/gpt-4.1-nano"]:
|
|
|
625
625
|
print(model, swept.score)
|
|
626
626
|
```
|
|
627
627
|
|
|
628
|
+
`reflection_model=` proposes the new run's instructions with another model, and
|
|
629
|
+
`reflection_provider=` names the provider it spends. The student model stays
|
|
630
|
+
as it was:
|
|
631
|
+
|
|
632
|
+
```python
|
|
633
|
+
rethought = sdk.continue_optimization(best, reflection_model="openai/gpt-5", auto="light")
|
|
634
|
+
```
|
|
635
|
+
|
|
628
636
|
A refusal raises `cmpnd.OptimizeError`, whose `error_code` says why, such as
|
|
629
637
|
`not_completed`, `unknown_candidate` or `no_credential`.
|
|
630
638
|
|
|
@@ -913,9 +921,10 @@ as a plain object.
|
|
|
913
921
|
found. It raises `cmpnd.OptimizeError` or `cmpnd.OptimizeFailed` on failure.
|
|
914
922
|
- `list_candidates(run_id)` returns a run's candidates as dicts, each with its
|
|
915
923
|
`ca_` id, score, parent and instructions.
|
|
916
|
-
- `continue_optimization(run, candidate=None, model=None, provider=None,
|
|
917
|
-
|
|
918
|
-
|
|
924
|
+
- `continue_optimization(run, candidate=None, model=None, provider=None,
|
|
925
|
+
reflection_model=None, reflection_provider=None, ...)` runs a new
|
|
926
|
+
optimization from one candidate of a completed run, with that run's data and
|
|
927
|
+
a new budget, optionally on another student or reflection model, and returns
|
|
919
928
|
its best `DeployedProgram`.
|
|
920
929
|
- `list_traces(**filters)` and `get_trace(trace_id)` read traces with the
|
|
921
930
|
client's credentials. They flush the client's traces first.
|
|
@@ -571,6 +571,14 @@ for model in ["openai/gpt-4o-mini", "openai/gpt-4.1-nano"]:
|
|
|
571
571
|
print(model, swept.score)
|
|
572
572
|
```
|
|
573
573
|
|
|
574
|
+
`reflection_model=` proposes the new run's instructions with another model, and
|
|
575
|
+
`reflection_provider=` names the provider it spends. The student model stays
|
|
576
|
+
as it was:
|
|
577
|
+
|
|
578
|
+
```python
|
|
579
|
+
rethought = sdk.continue_optimization(best, reflection_model="openai/gpt-5", auto="light")
|
|
580
|
+
```
|
|
581
|
+
|
|
574
582
|
A refusal raises `cmpnd.OptimizeError`, whose `error_code` says why, such as
|
|
575
583
|
`not_completed`, `unknown_candidate` or `no_credential`.
|
|
576
584
|
|
|
@@ -859,9 +867,10 @@ as a plain object.
|
|
|
859
867
|
found. It raises `cmpnd.OptimizeError` or `cmpnd.OptimizeFailed` on failure.
|
|
860
868
|
- `list_candidates(run_id)` returns a run's candidates as dicts, each with its
|
|
861
869
|
`ca_` id, score, parent and instructions.
|
|
862
|
-
- `continue_optimization(run, candidate=None, model=None, provider=None,
|
|
863
|
-
|
|
864
|
-
|
|
870
|
+
- `continue_optimization(run, candidate=None, model=None, provider=None,
|
|
871
|
+
reflection_model=None, reflection_provider=None, ...)` runs a new
|
|
872
|
+
optimization from one candidate of a completed run, with that run's data and
|
|
873
|
+
a new budget, optionally on another student or reflection model, and returns
|
|
865
874
|
its best `DeployedProgram`.
|
|
866
875
|
- `list_traces(**filters)` and `get_trace(trace_id)` read traces with the
|
|
867
876
|
client's credentials. They flush the client's traces first.
|
|
@@ -110,7 +110,8 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
110
110
|
cont = sub.add_parser(
|
|
111
111
|
"continue",
|
|
112
112
|
help="Run a new optimization from one candidate of a completed run. It reuses that run's data, models "
|
|
113
|
-
"and credentials, and takes a new budget. --model runs the candidate on another student model"
|
|
113
|
+
"and credentials, and takes a new budget. --model runs the candidate on another student model, and "
|
|
114
|
+
"--reflection-model proposes its instructions with another model",
|
|
114
115
|
)
|
|
115
116
|
cont.add_argument("id", help="Completed optimization run ID (op_...)")
|
|
116
117
|
cont.add_argument(
|
|
@@ -133,6 +134,21 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
133
134
|
"`cmpnd providers list` shows the names",
|
|
134
135
|
)
|
|
135
136
|
deprecation.renamed_flag(cont, "--credential", "--provider", dest="credential", metavar="NAME")
|
|
137
|
+
cont.add_argument(
|
|
138
|
+
"--reflection-model",
|
|
139
|
+
dest="reflection_model",
|
|
140
|
+
default=None,
|
|
141
|
+
help="The model that proposes the new run's instructions, for example openai/gpt-5 (default: the "
|
|
142
|
+
"completed run's). The new run keeps the completed run's reflection sampling",
|
|
143
|
+
)
|
|
144
|
+
cont.add_argument(
|
|
145
|
+
"--reflection-provider",
|
|
146
|
+
dest="reflection_provider",
|
|
147
|
+
metavar="NAME",
|
|
148
|
+
default=None,
|
|
149
|
+
help="The provider the reflection model spends (default: the one the completed run's reflection model "
|
|
150
|
+
"spent). `cmpnd providers list` shows the names",
|
|
151
|
+
)
|
|
136
152
|
# The budget flags are `cmpnd optimize`'s, and the SDK refuses a run with none or two,
|
|
137
153
|
# so both commands answer a missing budget the same way.
|
|
138
154
|
cont.add_argument(
|
|
@@ -445,7 +461,9 @@ def handle_continue(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
445
461
|
"""Run a new optimization from one candidate of a completed run, as `cmpnd optimize` runs one.
|
|
446
462
|
|
|
447
463
|
The new run reuses the completed run's data and configuration and takes a new budget.
|
|
448
|
-
`--model` and `--provider` run the candidate on another student model
|
|
464
|
+
`--model` and `--provider` run the candidate on another student model, and
|
|
465
|
+
`--reflection-model` and `--reflection-provider` propose its instructions with another
|
|
466
|
+
model. The command
|
|
449
467
|
names the candidate it starts from, waits for the run, and prints the best program as
|
|
450
468
|
`cmpnd optimize` does. `--async` returns the queued run instead. `--label` labels
|
|
451
469
|
the new run's traces in place of the completed run's labels.
|
|
@@ -456,6 +474,12 @@ def handle_continue(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
456
474
|
credential_name = deprecation.renamed_value(args, "provider", "credential", new="--provider", old="--credential")
|
|
457
475
|
if credential_name is not None:
|
|
458
476
|
credential_name = top._ProviderLookup(client)(f"--provider {credential_name}", credential_name).name
|
|
477
|
+
reflection_credential_name = getattr(args, "reflection_provider", None)
|
|
478
|
+
if reflection_credential_name is not None:
|
|
479
|
+
reflection_credential_name = top._ProviderLookup(client)(
|
|
480
|
+
f"--reflection-provider {reflection_credential_name}", reflection_credential_name
|
|
481
|
+
).name
|
|
482
|
+
reflection_model = getattr(args, "reflection_model", None)
|
|
459
483
|
cfg = top.sdk_config(client)
|
|
460
484
|
try:
|
|
461
485
|
started = optimization.start_continuation(
|
|
@@ -464,6 +488,8 @@ def handle_continue(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
464
488
|
candidate=args.candidate,
|
|
465
489
|
model=args.model,
|
|
466
490
|
credential_name=credential_name,
|
|
491
|
+
reflection_model=reflection_model,
|
|
492
|
+
reflection_credential_name=reflection_credential_name,
|
|
467
493
|
max_metric_calls=args.max_metric_calls,
|
|
468
494
|
auto=args.auto,
|
|
469
495
|
labels=labels,
|
|
@@ -490,6 +516,11 @@ def handle_continue(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
490
516
|
top._c(f"on {started.get('model')} with the provider {started.get('credential_name')}", "dim"),
|
|
491
517
|
file=sys.stderr,
|
|
492
518
|
)
|
|
519
|
+
if reflection_model is not None or reflection_credential_name is not None:
|
|
520
|
+
reflecting = f"reflecting with {started.get('reflection_model')}"
|
|
521
|
+
if started.get("reflection_credential_name"):
|
|
522
|
+
reflecting += f" on the provider {started.get('reflection_credential_name')}"
|
|
523
|
+
print(top._c(reflecting, "dim"), file=sys.stderr)
|
|
493
524
|
print(top._c(f"optimizing with {started.get('optimizer')}…", "dim"), file=sys.stderr)
|
|
494
525
|
try:
|
|
495
526
|
result = optimization.wait_for_continuation(started, cfg=cfg)
|
|
@@ -502,7 +533,11 @@ def handle_continue(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
502
533
|
"optimization_id": started.get("optimization_id"),
|
|
503
534
|
"continued_from_run_id": started.get("continued_from_run_id"),
|
|
504
535
|
"continued_from_candidate_id": started.get("continued_from_candidate_id"),
|
|
505
|
-
**{
|
|
536
|
+
**{
|
|
537
|
+
key: started[key]
|
|
538
|
+
for key in ("model", "credential_name", "reflection_model", "reflection_credential_name")
|
|
539
|
+
if key in started
|
|
540
|
+
},
|
|
506
541
|
},
|
|
507
542
|
)
|
|
508
543
|
return None
|
|
@@ -931,6 +931,8 @@ class Client:
|
|
|
931
931
|
model: str | None = None,
|
|
932
932
|
provider: credentials.Provider | None = None,
|
|
933
933
|
credential: credentials.Provider | None = None,
|
|
934
|
+
reflection_model: str | None = None,
|
|
935
|
+
reflection_provider: credentials.Provider | None = None,
|
|
934
936
|
max_metric_calls: int | None = None,
|
|
935
937
|
auto: str | None = None,
|
|
936
938
|
poll_interval: float = 3.0,
|
|
@@ -954,6 +956,12 @@ class Client:
|
|
|
954
956
|
swept = client.continue_optimization(best, model=model, auto="light")
|
|
955
957
|
print(model, swept.score)
|
|
956
958
|
|
|
959
|
+
With ``reflection_model``, the new run proposes its instructions with that model
|
|
960
|
+
instead of the completed run's. The candidate's program never calls the
|
|
961
|
+
reflection model, so the student model stays as it was::
|
|
962
|
+
|
|
963
|
+
rethought = client.continue_optimization(best, reflection_model="openai/gpt-5", auto="light")
|
|
964
|
+
|
|
957
965
|
Args:
|
|
958
966
|
run: The completed run's ``op_`` id, or the ``DeployedProgram`` an
|
|
959
967
|
optimization returned.
|
|
@@ -962,12 +970,20 @@ class Client:
|
|
|
962
970
|
default is the run's best.
|
|
963
971
|
model: The student model the new run spends, as a deploy records it, for
|
|
964
972
|
example ``"openai/gpt-4o-mini"``. The default is the completed run's.
|
|
965
|
-
Only the program's own model changes: a predictor with its own LM
|
|
966
|
-
run's ``lms``
|
|
967
|
-
|
|
973
|
+
Only the program's own model changes: a predictor with its own LM and
|
|
974
|
+
the run's ``lms`` stay as the completed run had them, and the
|
|
975
|
+
reflection model changes only through ``reflection_model``.
|
|
968
976
|
provider: The provider the student model spends, from
|
|
969
977
|
``client.get_provider(NAME)``. The default is the completed run's.
|
|
970
978
|
credential: Deprecated name of ``provider``. It still works and warns.
|
|
979
|
+
reflection_model: The model that proposes the new run's instructions, for
|
|
980
|
+
example ``"openai/gpt-5"``. The default is the completed run's. The new
|
|
981
|
+
run keeps the completed run's reflection sampling, such as its
|
|
982
|
+
``max_tokens``.
|
|
983
|
+
reflection_provider: The provider the reflection model spends, from
|
|
984
|
+
``client.get_provider(NAME)``. The default is the provider the
|
|
985
|
+
completed run's reflection model spent, even when ``provider`` moves
|
|
986
|
+
the student to another.
|
|
971
987
|
max_metric_calls: The budget as a ceiling on metric calls. Pass this or
|
|
972
988
|
``auto``, exactly one.
|
|
973
989
|
auto: The budget as ``"light"``, ``"medium"`` or ``"heavy"``.
|
|
@@ -984,16 +1000,23 @@ class Client:
|
|
|
984
1000
|
Raises:
|
|
985
1001
|
ValueError: No budget or two budgets, a ``DeployedProgram`` that no
|
|
986
1002
|
optimization produced, or a label that breaks a label rule.
|
|
987
|
-
TypeError: ``provider`` is a string, or both
|
|
988
|
-
``credential`` are given. Look a provider up with
|
|
1003
|
+
TypeError: ``provider`` or ``reflection_provider`` is a string, or both
|
|
1004
|
+
``provider`` and ``credential`` are given. Look a provider up with
|
|
1005
|
+
``get_provider``.
|
|
989
1006
|
OptimizeError: The platform refused the continuation. Its ``error_code``
|
|
990
1007
|
says why, for example ``not_completed``, ``unknown_candidate`` or
|
|
991
|
-
``no_credential``.
|
|
1008
|
+
``no_credential``. A platform that predates ``reflection_model``
|
|
1009
|
+
ignores it and starts the run on the completed run's reflection
|
|
1010
|
+
model, so this raises ``reflection_model_unsupported``, naming that
|
|
1011
|
+
run in ``optimization_id`` to cancel.
|
|
992
1012
|
OptimizeFailed: The new run transitioned to ``status="failed"``.
|
|
993
1013
|
"""
|
|
994
1014
|
self._check_active()
|
|
995
1015
|
chosen = credentials.chosen(provider, credential, "cmpnd.Client.continue_optimization")
|
|
996
1016
|
credential_name = credentials.name_of(chosen, "cmpnd.Client.continue_optimization(provider=)")
|
|
1017
|
+
reflection_credential_name = credentials.name_of(
|
|
1018
|
+
reflection_provider, "cmpnd.Client.continue_optimization(reflection_provider=)"
|
|
1019
|
+
)
|
|
997
1020
|
from . import execution, optimization
|
|
998
1021
|
|
|
999
1022
|
run_id = run.optimization_run_id if isinstance(run, execution.DeployedProgram) else run
|
|
@@ -1007,6 +1030,8 @@ class Client:
|
|
|
1007
1030
|
candidate=candidate,
|
|
1008
1031
|
model=model,
|
|
1009
1032
|
credential_name=credential_name,
|
|
1033
|
+
reflection_model=reflection_model,
|
|
1034
|
+
reflection_credential_name=reflection_credential_name,
|
|
1010
1035
|
max_metric_calls=max_metric_calls,
|
|
1011
1036
|
auto=auto,
|
|
1012
1037
|
poll_interval=poll_interval,
|
|
@@ -1241,6 +1241,8 @@ def start_continuation(
|
|
|
1241
1241
|
candidate: str | None = None,
|
|
1242
1242
|
model: str | None = None,
|
|
1243
1243
|
credential_name: str | None = None,
|
|
1244
|
+
reflection_model: str | None = None,
|
|
1245
|
+
reflection_credential_name: str | None = None,
|
|
1244
1246
|
max_metric_calls: int | None = None,
|
|
1245
1247
|
auto: str | None = None,
|
|
1246
1248
|
labels: object = None,
|
|
@@ -1248,12 +1250,13 @@ def start_continuation(
|
|
|
1248
1250
|
"""Start a run from one candidate of the completed run ``run_id``, and return serve's answer.
|
|
1249
1251
|
|
|
1250
1252
|
The answer names the new run (``optimization_id``), its deployment and optimizer, the
|
|
1251
|
-
run and ``ca_`` candidate it continues, the candidate's score and instructions,
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
run's, and ``labels
|
|
1253
|
+
run and ``ca_`` candidate it continues, the candidate's score and instructions, the
|
|
1254
|
+
``model`` and ``credential_name`` the run spends, and its ``reflection_model`` and
|
|
1255
|
+
``reflection_credential_name``. Serve deploys the candidate and reuses the parent's
|
|
1256
|
+
evaluation data and configuration, so the request carries only the candidate, the
|
|
1257
|
+
budget, an optional student model and credential, an optional reflection model and
|
|
1258
|
+
credential and the run's labels, and nothing is uploaded. Without ``labels`` the run
|
|
1259
|
+
carries the completed run's, and ``labels={}`` starts it with none.
|
|
1257
1260
|
"""
|
|
1258
1261
|
run_labels = _run_labels(labels)
|
|
1259
1262
|
body: dict[str, Any] = {}
|
|
@@ -1264,6 +1267,10 @@ def start_continuation(
|
|
|
1264
1267
|
body["model"] = model
|
|
1265
1268
|
if credential_name is not None:
|
|
1266
1269
|
body["credential_name"] = credential_name
|
|
1270
|
+
if reflection_model is not None:
|
|
1271
|
+
body["reflection_model"] = reflection_model
|
|
1272
|
+
if reflection_credential_name is not None:
|
|
1273
|
+
body["reflection_credential_name"] = reflection_credential_name
|
|
1267
1274
|
if run_labels is not None:
|
|
1268
1275
|
body["labels"] = run_labels
|
|
1269
1276
|
headers = {"X-API-Key": cfg.api_key, "Content-Type": "application/json"}
|
|
@@ -1279,7 +1286,29 @@ def start_continuation(
|
|
|
1279
1286
|
)
|
|
1280
1287
|
if not resp.is_success:
|
|
1281
1288
|
raise OptimizeError.refused(what, resp)
|
|
1282
|
-
|
|
1289
|
+
answer = resp.json()
|
|
1290
|
+
if (reflection_model is not None or reflection_credential_name is not None) and "reflection_model" not in answer:
|
|
1291
|
+
_refuse_unreflected_continuation(answer)
|
|
1292
|
+
return answer
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
def _refuse_unreflected_continuation(answer: dict[str, Any]) -> None:
|
|
1296
|
+
"""Raise for a continuation an older platform started on its parent's reflection model.
|
|
1297
|
+
|
|
1298
|
+
Serve's answer names ``reflection_model``. A platform that predates the field ignores
|
|
1299
|
+
it in the request, starts the run on the completed run's reflection model, and its
|
|
1300
|
+
answer names none. The error names that run and how to stop it.
|
|
1301
|
+
"""
|
|
1302
|
+
run = answer.get("optimization_id")
|
|
1303
|
+
run_id = run if isinstance(run, str) and run else None
|
|
1304
|
+
stop = f" Stop it with `cmpnd optimizations cancel {run_id}`." if run_id else ""
|
|
1305
|
+
raise OptimizeError(
|
|
1306
|
+
f"this platform predates choosing a continuation's reflection model, so it started {run_id or 'a run'} "
|
|
1307
|
+
f"on the completed run's reflection model.{stop} Continue without reflection_model and "
|
|
1308
|
+
"reflection_provider, or ask the platform's operator to upgrade.",
|
|
1309
|
+
error_code="reflection_model_unsupported",
|
|
1310
|
+
optimization_id=run_id,
|
|
1311
|
+
)
|
|
1283
1312
|
|
|
1284
1313
|
|
|
1285
1314
|
def wait_for_continuation(
|
|
@@ -1374,6 +1403,8 @@ def continue_optimization(
|
|
|
1374
1403
|
candidate: str | None = None,
|
|
1375
1404
|
model: str | None = None,
|
|
1376
1405
|
credential_name: str | None = None,
|
|
1406
|
+
reflection_model: str | None = None,
|
|
1407
|
+
reflection_credential_name: str | None = None,
|
|
1377
1408
|
max_metric_calls: int | None = None,
|
|
1378
1409
|
auto: str | None = None,
|
|
1379
1410
|
poll_interval: float = 3.0,
|
|
@@ -1390,6 +1421,8 @@ def continue_optimization(
|
|
|
1390
1421
|
candidate=candidate,
|
|
1391
1422
|
model=model,
|
|
1392
1423
|
credential_name=credential_name,
|
|
1424
|
+
reflection_model=reflection_model,
|
|
1425
|
+
reflection_credential_name=reflection_credential_name,
|
|
1393
1426
|
max_metric_calls=max_metric_calls,
|
|
1394
1427
|
auto=auto,
|
|
1395
1428
|
labels=labels,
|
|
@@ -1358,11 +1358,23 @@ so nothing is uploaded.
|
|
|
1358
1358
|
the run's best.
|
|
1359
1359
|
- `--model MODEL` runs the candidate on another student model, as a deploy
|
|
1360
1360
|
records it, such as `openai/gpt-4o-mini`. This is a model sweep. Only the
|
|
1361
|
-
program's own model changes. A predictor with its own LM
|
|
1362
|
-
|
|
1361
|
+
program's own model changes. A predictor with its own LM and the run's named
|
|
1362
|
+
LMs stay as the completed run had them.
|
|
1363
1363
|
- `--provider NAME` names the provider the student model spends. The
|
|
1364
1364
|
default is the completed run's. The command looks the name up before it
|
|
1365
1365
|
starts the run, as `cmpnd optimize` does.
|
|
1366
|
+
- `--reflection-model MODEL` proposes the new run's instructions with another
|
|
1367
|
+
model, such as `openai/gpt-5`. The candidate's program never calls the
|
|
1368
|
+
reflection model, so the student model stays as it was. The new run keeps the
|
|
1369
|
+
completed run's reflection sampling, such as its `max_tokens`.
|
|
1370
|
+
- `--reflection-provider NAME` names the provider the reflection model spends.
|
|
1371
|
+
The default is the provider the completed run's reflection model spent, even
|
|
1372
|
+
when `--provider` moves the student to another. The command looks the name up
|
|
1373
|
+
as it looks up `--provider`. A platform that predates these flags ignores
|
|
1374
|
+
them and starts the run on the completed run's reflection model. Its answer
|
|
1375
|
+
names no reflection model, so the command fails on stderr, naming that run
|
|
1376
|
+
and the `cmpnd optimizations cancel` command that stops it. Python callers
|
|
1377
|
+
receive the error code `reflection_model_unsupported`.
|
|
1366
1378
|
- `--label KEY=VALUE` labels the new run's traces, as on `cmpnd optimize`.
|
|
1367
1379
|
Without it the new run carries the completed run's labels.
|
|
1368
1380
|
- The command runs the optimization as `cmpnd optimize` does. It names the
|
|
@@ -1370,7 +1382,9 @@ so nothing is uploaded.
|
|
|
1370
1382
|
instructions, then waits. It prints the best deployment's id on stdout and
|
|
1371
1383
|
its score on stderr. `--json` prints `best_deployment_id` and `best_score`,
|
|
1372
1384
|
with the new run's `optimization_id`, the run and candidate it continued
|
|
1373
|
-
from,
|
|
1385
|
+
from, the `model` and `credential_name` it spends, and its `reflection_model`
|
|
1386
|
+
and `reflection_credential_name`. A run that names a reflection model or
|
|
1387
|
+
provider also names them on stderr.
|
|
1374
1388
|
- `--async` prints the queued run as JSON and returns at once. Follow it with
|
|
1375
1389
|
`cmpnd optimizations show NEW_RUN_ID`, which shows `continued_from_run_id` and
|
|
1376
1390
|
`continued_from_candidate_id`. Showing the completed run lists its
|
|
@@ -1380,13 +1394,15 @@ so nothing is uploaded.
|
|
|
1380
1394
|
|
|
1381
1395
|
In Python, `cmpnd.Client.list_candidates(run_id)` returns the candidates as
|
|
1382
1396
|
dicts, and `cmpnd.Client.continue_optimization(run, candidate=None, model=None,
|
|
1383
|
-
provider=None,
|
|
1397
|
+
provider=None, reflection_model=None, reflection_provider=None,
|
|
1398
|
+
max_metric_calls=None, auto=None, labels=None)` runs the
|
|
1384
1399
|
continuation and returns its best `DeployedProgram`, as `optimize_deployment`
|
|
1385
1400
|
does. `run` is an
|
|
1386
1401
|
`op_` id or the `DeployedProgram` an optimization returned, whose
|
|
1387
1402
|
`optimization_run_id` names its run. `candidate` is a `ca_` id. `model` is a
|
|
1388
1403
|
model string, and `provider` is a `client.get_provider(NAME)` result.
|
|
1389
|
-
`
|
|
1404
|
+
`reflection_model` and `reflection_provider` take the same shapes for the
|
|
1405
|
+
reflection model. `labels` replaces the completed run's labels, and `labels={}` starts the
|
|
1390
1406
|
new run with none.
|
|
1391
1407
|
|
|
1392
1408
|
An org's plan may cap how many hosted optimizations run at once. A run started
|
|
@@ -5,7 +5,7 @@ name = "cmpnd"
|
|
|
5
5
|
# it's new) — no git tags. Bump with `uv version --bump {minor,patch}` or by
|
|
6
6
|
# hand. Runtime `cmpnd.__version__` reads installed metadata, so it tracks
|
|
7
7
|
# this automatically. See docs/plans/2026-07-02-sdk-pypi-tag-free-publish.md.
|
|
8
|
-
version = "0.
|
|
8
|
+
version = "0.115.0"
|
|
9
9
|
description = "DSPy observability and deployment SDK for cmpnd"
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.11"
|
|
@@ -8,7 +8,9 @@ candidate shows which candidate seeded it: it holds that candidate's text and it
|
|
|
8
8
|
|
|
9
9
|
A model sweep is a continuation on another student model. fake-provider's model
|
|
10
10
|
``cmpnd-fake/deaf`` skips the instruction rule, so the proposal that scores 1.0 on the
|
|
11
|
-
parent's model scores 0.0 on it, which shows the student model changed.
|
|
11
|
+
parent's model scores 0.0 on it, which shows the student model changed. A continuation on
|
|
12
|
+
another reflection model keeps the student model, so the proposal still scores 1.0, and
|
|
13
|
+
the new run records the reflection model it names.
|
|
12
14
|
|
|
13
15
|
The parent runs once per module. Each test continues from it.
|
|
14
16
|
|
|
@@ -78,7 +80,7 @@ def _idx(candidate: dict[str, Any]) -> int:
|
|
|
78
80
|
|
|
79
81
|
|
|
80
82
|
def _continue(
|
|
81
|
-
run_id: str, candidate: dict[str, Any], model: str | None = None
|
|
83
|
+
run_id: str, candidate: dict[str, Any], model: str | None = None, reflection_model: str | None = None
|
|
82
84
|
) -> tuple[cmpnd.DeployedProgram, list[dict[str, Any]]]:
|
|
83
85
|
"""Continue ``run_id`` from ``candidate`` and wait; return the new run's best program and its candidates."""
|
|
84
86
|
with platform_client() as client:
|
|
@@ -86,6 +88,7 @@ def _continue(
|
|
|
86
88
|
run_id,
|
|
87
89
|
candidate=candidate["candidate_id"],
|
|
88
90
|
model=model,
|
|
91
|
+
reflection_model=reflection_model,
|
|
89
92
|
max_metric_calls=BUDGET_METRIC_CALLS,
|
|
90
93
|
poll_interval=2.0,
|
|
91
94
|
timeout=300.0,
|
|
@@ -141,6 +144,26 @@ class TestAModelSweep:
|
|
|
141
144
|
assert detail["continued_from_candidate_id"] == proposal["candidate_id"]
|
|
142
145
|
|
|
143
146
|
|
|
147
|
+
class TestAnotherReflectionModel:
|
|
148
|
+
def test_a_continuation_reflects_with_the_named_model_and_keeps_the_student(self, parent, server_client):
|
|
149
|
+
run_id, _, proposal = parent
|
|
150
|
+
result, candidates = _continue(run_id, proposal, reflection_model=DEAF_MODEL)
|
|
151
|
+
|
|
152
|
+
# The student model is the parent's, so the proposal's text still scores 1.0.
|
|
153
|
+
first = min(candidates, key=_idx)
|
|
154
|
+
assert (first["instructions"], first["aggregate_score"]) == (proposal["instructions"], 1.0)
|
|
155
|
+
assert server_client.get_deployment(result.deployment_id)["litellm_model"] != DEAF_MODEL
|
|
156
|
+
detail = server_client.get_optimization(result.optimization_run_id)
|
|
157
|
+
assert detail["reflection_model_name"] == DEAF_MODEL
|
|
158
|
+
assert server_client.get_optimization(run_id)["reflection_model_name"] == fake_lm.FAKE_MODEL
|
|
159
|
+
|
|
160
|
+
def test_an_empty_reflection_model_is_refused(self, parent):
|
|
161
|
+
run_id, _, _ = parent
|
|
162
|
+
with platform_client() as client, pytest.raises(cmpnd.OptimizeError) as raised:
|
|
163
|
+
client.continue_optimization(run_id, reflection_model=" ", max_metric_calls=BUDGET_METRIC_CALLS)
|
|
164
|
+
assert raised.value.error_code == "invalid_model"
|
|
165
|
+
|
|
166
|
+
|
|
144
167
|
class TestEveryResultIsAVersionOfTheProgramTheUserDeployed:
|
|
145
168
|
def _program_of(self, server_client, deployment_id: str) -> str:
|
|
146
169
|
return server_client.get_deployment(deployment_id)["program_id"]
|
|
@@ -317,9 +317,62 @@ class TestOptimizationsContinue:
|
|
|
317
317
|
summary = json.loads(out)
|
|
318
318
|
assert (summary["model"], summary["credential_name"]) == ("bedrock/us.amazon.nova-micro-v1:0", "bedrock")
|
|
319
319
|
|
|
320
|
-
def
|
|
320
|
+
def test_a_new_reflection_model_names_itself_and_looks_up_its_provider(self, mock_client, capsys):
|
|
321
|
+
"""`--reflection-provider` is looked up as `--provider` is, apart from the student's."""
|
|
322
|
+
anthropic = cmpnd.credentials._mint("anthropic", ("chat_completions",), "https://api.anthropic.com")
|
|
323
|
+
reflecting = {
|
|
324
|
+
**_STARTED,
|
|
325
|
+
"reflection_model": "anthropic/claude-opus-4",
|
|
326
|
+
"reflection_credential_name": "anthropic",
|
|
327
|
+
}
|
|
328
|
+
with mock.patch("cmpnd.credentials._get", autospec=True, return_value=anthropic) as m_get:
|
|
329
|
+
_, m_start, _ = self._run(
|
|
330
|
+
mock_client,
|
|
331
|
+
[
|
|
332
|
+
"--reflection-model",
|
|
333
|
+
"anthropic/claude-opus-4",
|
|
334
|
+
"--reflection-provider",
|
|
335
|
+
"anthropic",
|
|
336
|
+
"--auto",
|
|
337
|
+
"light",
|
|
338
|
+
"--json",
|
|
339
|
+
],
|
|
340
|
+
started=reflecting,
|
|
341
|
+
)
|
|
342
|
+
assert m_get.call_args.args[0] == "anthropic"
|
|
343
|
+
kwargs = m_start.call_args.kwargs
|
|
344
|
+
assert (kwargs["reflection_model"], kwargs["reflection_credential_name"]) == (
|
|
345
|
+
"anthropic/claude-opus-4",
|
|
346
|
+
"anthropic",
|
|
347
|
+
)
|
|
348
|
+
assert (kwargs["model"], kwargs["credential_name"]) == (None, None)
|
|
349
|
+
out, err = capsys.readouterr()
|
|
350
|
+
assert "reflecting with anthropic/claude-opus-4 on the provider anthropic" in err
|
|
351
|
+
summary = json.loads(out)
|
|
352
|
+
assert (summary["reflection_model"], summary["reflection_credential_name"]) == (
|
|
353
|
+
"anthropic/claude-opus-4",
|
|
354
|
+
"anthropic",
|
|
355
|
+
)
|
|
356
|
+
|
|
357
|
+
def test_an_unknown_reflection_provider_is_refused_before_the_continuation(self, mock_client):
|
|
358
|
+
args = _build_parser().parse_args(
|
|
359
|
+
["optimizations", "continue", "op_abc", "--reflection-provider", "anthropc", "--auto", "light"]
|
|
360
|
+
)
|
|
361
|
+
missing = cmpnd.credentials.ProviderNotFound("anthropc", ["anthropic"], "anthropic")
|
|
362
|
+
with (
|
|
363
|
+
mock.patch("cmpnd.credentials._get", autospec=True, side_effect=missing),
|
|
364
|
+
mock.patch("cmpnd.optimization.start_continuation", autospec=True) as m_start,
|
|
365
|
+
pytest.raises(CliError, match="--reflection-provider anthropc"),
|
|
366
|
+
):
|
|
367
|
+
handle_continue(_client_with_account(mock_client), args)
|
|
368
|
+
m_start.assert_not_called()
|
|
369
|
+
|
|
370
|
+
def test_a_continuation_with_no_model_sends_none(self, mock_client, capsys):
|
|
321
371
|
_, m_start, _ = self._run(mock_client, ["--auto", "light"])
|
|
322
|
-
|
|
372
|
+
kwargs = m_start.call_args.kwargs
|
|
373
|
+
assert (kwargs["model"], kwargs["credential_name"]) == (None, None)
|
|
374
|
+
assert (kwargs["reflection_model"], kwargs["reflection_credential_name"]) == (None, None)
|
|
375
|
+
assert "reflecting with" not in capsys.readouterr().err
|
|
323
376
|
|
|
324
377
|
def test_an_unknown_credential_is_refused_before_the_continuation(self, mock_client):
|
|
325
378
|
args = _build_parser().parse_args(
|
|
@@ -1455,6 +1455,70 @@ class TestContinueOptimization:
|
|
|
1455
1455
|
) # type: ignore[arg-type]
|
|
1456
1456
|
assert client.post.call_count == 0
|
|
1457
1457
|
|
|
1458
|
+
def test_a_continuation_posts_its_reflection_model_and_provider(self, wire):
|
|
1459
|
+
"""The reflection model and its provider travel apart from the student's."""
|
|
1460
|
+
wire.answer(
|
|
1461
|
+
"POST",
|
|
1462
|
+
201,
|
|
1463
|
+
{**self._ANSWER, "reflection_model": "anthropic/claude-opus-4", "reflection_credential_name": "anthropic"},
|
|
1464
|
+
)
|
|
1465
|
+
wire.answer("GET", 200, self._DONE)
|
|
1466
|
+
anthropic = cmpnd.credentials._mint("anthropic", ("chat_completions",), "https://api.anthropic.com")
|
|
1467
|
+
|
|
1468
|
+
with _no_sleep():
|
|
1469
|
+
_sdk().continue_optimization(
|
|
1470
|
+
"op_parent", reflection_model="anthropic/claude-opus-4", reflection_provider=anthropic, auto="light"
|
|
1471
|
+
)
|
|
1472
|
+
(request,) = wire.sent("POST")
|
|
1473
|
+
assert json.loads(request.content) == {
|
|
1474
|
+
"auto": "light",
|
|
1475
|
+
"reflection_model": "anthropic/claude-opus-4",
|
|
1476
|
+
"reflection_credential_name": "anthropic",
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
def test_a_reflection_model_alone_sends_no_provider(self, wire):
|
|
1480
|
+
wire.answer(
|
|
1481
|
+
"POST", 201, {**self._ANSWER, "reflection_model": "openai/gpt-5", "reflection_credential_name": None}
|
|
1482
|
+
)
|
|
1483
|
+
|
|
1484
|
+
cfg = cmpnd.configuration.Config(api_key="ct_client", endpoint="http://client.test")
|
|
1485
|
+
optimization.start_continuation("op_parent", cfg=cfg, reflection_model="openai/gpt-5", auto="light")
|
|
1486
|
+
(request,) = wire.sent("POST")
|
|
1487
|
+
assert json.loads(request.content) == {"auto": "light", "reflection_model": "openai/gpt-5"}
|
|
1488
|
+
|
|
1489
|
+
@pytest.mark.parametrize(
|
|
1490
|
+
"choice",
|
|
1491
|
+
[{"reflection_model": "openai/gpt-5"}, {"reflection_credential_name": "openai"}],
|
|
1492
|
+
ids=["a reflection model", "a reflection provider"],
|
|
1493
|
+
)
|
|
1494
|
+
def test_a_platform_that_ignores_the_reflection_fields_names_the_run_it_started(self, wire, choice):
|
|
1495
|
+
"""An older serve ignores the fields, and its answer names no reflection model."""
|
|
1496
|
+
wire.answer("POST", 201, self._ANSWER)
|
|
1497
|
+
|
|
1498
|
+
cfg = cmpnd.configuration.Config(api_key="ct_client", endpoint="http://client.test")
|
|
1499
|
+
with pytest.raises(optimization.OptimizeError, match="predates") as raised:
|
|
1500
|
+
optimization.start_continuation("op_parent", cfg=cfg, auto="light", **choice)
|
|
1501
|
+
assert raised.value.error_code == "reflection_model_unsupported"
|
|
1502
|
+
assert raised.value.optimization_id == "op_child"
|
|
1503
|
+
assert "started op_child" in str(raised.value)
|
|
1504
|
+
assert "cmpnd optimizations cancel op_child" in str(raised.value)
|
|
1505
|
+
assert len(wire.sent("POST")) == 1, "the SDK cancels nothing on its own"
|
|
1506
|
+
|
|
1507
|
+
def test_a_continuation_without_a_reflection_choice_reads_no_reflection_answer(self, wire):
|
|
1508
|
+
"""A continuation that names no reflection model works against an older serve as before."""
|
|
1509
|
+
wire.answer("POST", 201, self._ANSWER)
|
|
1510
|
+
|
|
1511
|
+
cfg = cmpnd.configuration.Config(api_key="ct_client", endpoint="http://client.test")
|
|
1512
|
+
assert optimization.start_continuation("op_parent", cfg=cfg, auto="light") == self._ANSWER
|
|
1513
|
+
|
|
1514
|
+
def test_a_reflection_provider_named_by_a_string_is_refused(self, mock_httpx):
|
|
1515
|
+
client = _client(mock_httpx)
|
|
1516
|
+
with pytest.raises(TypeError, match=r"reflection_provider=.*client\.get_provider"):
|
|
1517
|
+
_sdk().continue_optimization(
|
|
1518
|
+
"op_parent", reflection_model="openai/gpt-5", reflection_provider="openai", max_metric_calls=10
|
|
1519
|
+
) # type: ignore[arg-type]
|
|
1520
|
+
assert client.post.call_count == 0
|
|
1521
|
+
|
|
1458
1522
|
def test_a_listed_candidate_is_named_by_its_id(self, wire):
|
|
1459
1523
|
wire.answer("GET", 200, self._CANDIDATES)
|
|
1460
1524
|
wire.answer("POST", 201, self._ANSWER)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|