cmpnd 0.106.0__tar.gz → 0.106.2__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.106.0 → cmpnd-0.106.2}/PKG-INFO +1 -1
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/client.py +10 -1
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/optimization.py +117 -2
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/client.md +28 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/custom-proposer.md +14 -8
- {cmpnd-0.106.0 → cmpnd-0.106.2}/pyproject.toml +1 -1
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/hosted_optimize_probe.py +56 -3
- cmpnd-0.106.2/tests/test_optimize_gepa_settings.py +232 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize_proposer.py +8 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/uv.lock +1 -1
- {cmpnd-0.106.0 → cmpnd-0.106.2}/.gitignore +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/AGENTS.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/CLAUDE.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/README.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_account.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_guides.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_http.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_provider_types.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_provider_writes.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_reanchor_patch.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_rlm_patch.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_traces.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/authored.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/callback.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/deployments.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/feedback.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/kernel_lines.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/login.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/optimizations.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/programs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/provider_credentials.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/providers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/top.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/verbs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/configuration.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/context.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/credentials.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/datasets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/decorators.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/deployment.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/deployment_metadata.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/deployment_runs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/eval_handler.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/execution.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/exporter.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/helpers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/identity.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/imaging.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/kernel_lines.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/labels.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/models.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/named_programs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/packaging.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/programs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/references.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/retry.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/SKILL.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/references/setup.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/traces.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/cmpnd/versions.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/cli.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/reading-traces.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/sdk-instrumentation.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/docs/versions.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/examples/local_ollama.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/LINEAGE.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/README.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/bodies.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/exporter_http.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/network.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/process_local.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/queue_budget.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/rejections.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/request_log.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/retry.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/sender.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/span_context.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/ingest/pyproject.toml +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/capture_review_run.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/fork-matrix.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/release-gate.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/run-real-models.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/seed_review_run.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/_credential_route.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/_deployment_signature_helpers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/_exporter_helpers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/_fake_clock.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/_fresh_interpreter.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/_traced_run.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/conftest.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/dspy_features.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_composite_module.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_deploy_pandas.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimize_continuation.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_reanchor_optimization.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/conftest.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/__main__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/drain.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/ingest.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/rlm_shape.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/README.md +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/asgi_app.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/baseline.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/drive_server.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/exits.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/outage.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/outage_proxy.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/pools.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/program.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sender/verify.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/sweep.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/conftest.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_health.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_signatures.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_trace_streaming.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/parity/test_traces.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/_result.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/real_models/test_trace_search.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/span_reference_fixture.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_authored.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_callback.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_deployments.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_feedback.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_login.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_optimizations.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_programs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_provider_flags.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_providers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_schema_sample.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_top.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_client.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_client_floor.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_client_program_names.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_clustering/test_type_conversion.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_configuration.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_context.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_credential_selection.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_datasets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_decorators.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_deploy.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_deployment_metadata.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_deployment_runs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_dspy_version_label.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_eval.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_eval_example_attribution.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_eval_example_failures.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_eval_start.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_exception_paths.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_execute.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_execute_run_identity.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_exporter.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_exporter_fork_exec.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_exporter_program_names.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_exporter_queue.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_exporter_real.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_exporter_rejections.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_gepa_output_normalization.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_identity.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_imaging.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_import_weight.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_ingest_conformance.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_ingest_second_producer.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_integration.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_kernel_lines.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_models.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimization_program_names.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize_split.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_packaging.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_poll_until.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_process_local.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_program_identity.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_program_naming.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_programs_create.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_project_payload.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_provider_keyword.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_provider_types.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_provider_values.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_provider_writes.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_queue_budget.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_reanchor_patch.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_retry.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_rlm_patch.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_run_attribution_paths.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_schemas.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_seed_review_run.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_sender_scenarios.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_sending_settings.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_span_references.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_span_sent_once.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_span_submission.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_stored_login.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_system_one.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_trace_fact_wire_contract.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_trace_facts.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_trace_labels.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_trace_render.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_traces_read.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_truncation.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_user_agent.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_versions.py +0 -0
- {cmpnd-0.106.0 → cmpnd-0.106.2}/tests/test_xxh64.py +0 -0
|
@@ -745,7 +745,16 @@ class Client:
|
|
|
745
745
|
config: Optimizer-specific config forwarded to the deploy stack
|
|
746
746
|
(allow-listed server-side). ``seed`` is managed by the loop. The
|
|
747
747
|
budget may also be set here — ``max_full_evals`` only lives here —
|
|
748
|
-
but not in both places at once.
|
|
748
|
+
but not in both places at once. It takes ``dspy.GEPA``'s search
|
|
749
|
+
settings by their ``dspy.GEPA`` names, each meaning what it means
|
|
750
|
+
locally and defaulting to DSPy's value: ``component_selector``
|
|
751
|
+
(``"round_robin"`` or ``"all"``), ``skip_perfect_score``,
|
|
752
|
+
``perfect_score``, ``use_merge``, ``max_merge_invocations``,
|
|
753
|
+
``add_format_failure_as_feedback``, ``reflection_minibatch_size`` and
|
|
754
|
+
``candidate_selection_strategy``. Each value is read as a local
|
|
755
|
+
``dspy.GEPA`` reads it, so ``skip_perfect_score=None`` is ``False``, and
|
|
756
|
+
a value a local run refuses or fails on raises the local run's error
|
|
757
|
+
before any network call.
|
|
749
758
|
reflection_lm: **Required** — the model that proposes new instructions.
|
|
750
759
|
The search is only as good as it is, so this is a strong model,
|
|
751
760
|
typically not the one being optimized. Pass the ``dspy.LM`` you would
|
|
@@ -23,6 +23,8 @@ import inspect
|
|
|
23
23
|
import io
|
|
24
24
|
import json
|
|
25
25
|
import logging
|
|
26
|
+
import math
|
|
27
|
+
import sys
|
|
26
28
|
import time
|
|
27
29
|
import warnings
|
|
28
30
|
import zipfile
|
|
@@ -245,6 +247,106 @@ def _apply_budget(
|
|
|
245
247
|
)
|
|
246
248
|
|
|
247
249
|
|
|
250
|
+
# dspy.GEPA's search settings a hosted run takes by their dspy.GEPA names, each defaulting
|
|
251
|
+
# to DSPy's value when ``config`` leaves it out (``docs/worker-api.yaml``, ``GepaConfig``).
|
|
252
|
+
_COMPONENT_SELECTORS = ("round_robin", "all")
|
|
253
|
+
# GEPA reads these three only for their truth, so any value is one of two.
|
|
254
|
+
_GEPA_FLAGS = ("skip_perfect_score", "use_merge", "add_format_failure_as_feedback")
|
|
255
|
+
# A max_merge_invocations no count of merges reaches, for a value such as float("inf").
|
|
256
|
+
_UNBOUNDED_MERGES = 2**31 - 1
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
def _as_float(number: Any) -> float:
|
|
260
|
+
"""``number`` as a float, with an int too large for one as the infinity it compares like."""
|
|
261
|
+
try:
|
|
262
|
+
return float(number)
|
|
263
|
+
except OverflowError:
|
|
264
|
+
return math.inf if number > 0 else -math.inf
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
def _check_gepa_settings(config: dict[str, Any]) -> None:
|
|
268
|
+
"""Read ``config``'s dspy.GEPA settings as a local ``dspy.GEPA`` reads them.
|
|
269
|
+
|
|
270
|
+
Hosted refuses nothing a local run accepts, and reads every value as DSPy 3.5 and
|
|
271
|
+
GEPA 0.1.4 do, so this rewrites each setting into the value GEPA would act on:
|
|
272
|
+
|
|
273
|
+
- ``skip_perfect_score``, ``use_merge`` and ``add_format_failure_as_feedback`` are read
|
|
274
|
+
for their truth, so ``None`` is ``False``.
|
|
275
|
+
- ``perfect_score`` is read only while ``skip_perfect_score`` is true, and
|
|
276
|
+
``max_merge_invocations`` only while ``use_merge`` is. Otherwise either leaves
|
|
277
|
+
``config`` whatever it holds.
|
|
278
|
+
- ``max_merge_invocations`` caps a count of accepted merges with ``<``, so a number
|
|
279
|
+
becomes the whole number that caps it the same way.
|
|
280
|
+
- A non-finite ``perfect_score``, which JSON cannot carry, becomes the setting it
|
|
281
|
+
means. GEPA skips a parent when ``all(s >= perfect_score ...)`` holds for its
|
|
282
|
+
minibatch scores. No score reaches ``inf`` or ``nan``, so either is
|
|
283
|
+
``skip_perfect_score=False``. Every score reaches ``-inf``, and the kernel refuses
|
|
284
|
+
a non-finite metric score, so the most negative finite float means the same.
|
|
285
|
+
|
|
286
|
+
What a local run refuses or fails on, it is refused here, before any network call,
|
|
287
|
+
with the error the local run raises: GEPA's own sentence for ``perfect_score=None``
|
|
288
|
+
and an unknown selector name, and Python's for a value GEPA cannot compare or call.
|
|
289
|
+
A selector object is the one value a local run takes that a hosted run cannot, since
|
|
290
|
+
it is code. Serve reads JSON the same way (``serve/internal/deploymentsapi/gepa_settings.go``).
|
|
291
|
+
"""
|
|
292
|
+
for key in _GEPA_FLAGS:
|
|
293
|
+
if key in config:
|
|
294
|
+
config[key] = bool(config[key])
|
|
295
|
+
if "component_selector" in config:
|
|
296
|
+
selector = config["component_selector"]
|
|
297
|
+
if isinstance(selector, str):
|
|
298
|
+
if selector not in _COMPONENT_SELECTORS:
|
|
299
|
+
# GEPA's own refusal (gepa/api.py), which names the setting by its GEPA name.
|
|
300
|
+
raise ValueError(
|
|
301
|
+
f"Unknown module_selector strategy: {selector}. Supported strategies: 'round_robin', 'all'"
|
|
302
|
+
)
|
|
303
|
+
elif callable(selector):
|
|
304
|
+
raise ValueError(
|
|
305
|
+
"component_selector must be 'round_robin' or 'all' for a hosted run: a selector object "
|
|
306
|
+
"is code, and a hosted run takes dspy.GEPA's built-in selectors by name"
|
|
307
|
+
)
|
|
308
|
+
else:
|
|
309
|
+
# GEPA calls whatever it was given at the first iteration.
|
|
310
|
+
raise TypeError(f"'{type(selector).__name__}' object is not callable (component_selector={selector!r})")
|
|
311
|
+
if "perfect_score" in config:
|
|
312
|
+
score = config["perfect_score"]
|
|
313
|
+
if not config.get("skip_perfect_score", True):
|
|
314
|
+
del config["perfect_score"]
|
|
315
|
+
elif score is None:
|
|
316
|
+
# GEPA's own refusal (gepa/proposer/reflective_mutation/reflective_mutation.py).
|
|
317
|
+
raise ValueError(
|
|
318
|
+
"perfect_score must be provided when skip_perfect_score is True. "
|
|
319
|
+
"If you do not have a perfect target score, set skip_perfect_score=False."
|
|
320
|
+
)
|
|
321
|
+
else:
|
|
322
|
+
try:
|
|
323
|
+
_ = 1.0 >= score # GEPA compares each minibatch score against it
|
|
324
|
+
except TypeError as e:
|
|
325
|
+
raise TypeError(f"{e} (perfect_score={score!r})") from None
|
|
326
|
+
score = _as_float(score)
|
|
327
|
+
if math.isnan(score) or score == math.inf:
|
|
328
|
+
config["skip_perfect_score"] = False
|
|
329
|
+
del config["perfect_score"]
|
|
330
|
+
else:
|
|
331
|
+
config["perfect_score"] = max(score, -sys.float_info.max)
|
|
332
|
+
if "max_merge_invocations" in config:
|
|
333
|
+
merges = config["max_merge_invocations"]
|
|
334
|
+
if not config.get("use_merge", True):
|
|
335
|
+
del config["max_merge_invocations"]
|
|
336
|
+
return
|
|
337
|
+
try:
|
|
338
|
+
_ = 0 < merges # GEPA compares its accepted merges against it
|
|
339
|
+
except TypeError as e:
|
|
340
|
+
raise TypeError(f"{e} (max_merge_invocations={merges!r})") from None
|
|
341
|
+
bound = _as_float(merges)
|
|
342
|
+
if math.isnan(bound) or bound <= 0:
|
|
343
|
+
config["max_merge_invocations"] = 0
|
|
344
|
+
elif math.isinf(bound):
|
|
345
|
+
config["max_merge_invocations"] = _UNBOUNDED_MERGES
|
|
346
|
+
else:
|
|
347
|
+
config["max_merge_invocations"] = min(math.ceil(bound), _UNBOUNDED_MERGES)
|
|
348
|
+
|
|
349
|
+
|
|
248
350
|
# The sampling parameters a caller may set on a model, and the vocabulary every
|
|
249
351
|
# layer between this call and a provider narrows to. Specified in
|
|
250
352
|
# ``docs/worker-protocol.md``; the copy that faces the provider is
|
|
@@ -676,6 +778,11 @@ _PROPOSER_ARGUMENTS = ("candidate", "reflective_dataset", "components")
|
|
|
676
778
|
#: settings as a JSON object, ``InstructionProposerSettings`` in ``docs/worker-api.yaml``.
|
|
677
779
|
INSTRUCTION_PROPOSER_MEMBER = "instruction_proposer.json"
|
|
678
780
|
|
|
781
|
+
#: Where a generated ``proposer.py`` states its entrypoint for the optimizer, which runs no
|
|
782
|
+
#: Python and so never reads the file's ``__cmpnd_proposer__`` marker: a JSON object
|
|
783
|
+
#: ``{"proposer_entrypoint": "<name>"}``, the key an authored manifest uses.
|
|
784
|
+
PROPOSER_ENTRYPOINT_MEMBER = "proposer.json"
|
|
785
|
+
|
|
679
786
|
|
|
680
787
|
def instruction_proposer_settings(proposer: object) -> dict[str, Any] | None:
|
|
681
788
|
"""A DSPy ``InstructionProposer``'s settings as plain values, or None for any other proposer.
|
|
@@ -891,8 +998,9 @@ def _build_optimization_bundle(
|
|
|
891
998
|
"""Build the optimization-bundle ZIP: ``trainset.ndjson`` +
|
|
892
999
|
``valset.ndjson`` (one split row per line, as `_split_rows` builds it) + ``metric.py`` (the
|
|
893
1000
|
metric's recovered source). A run that declared its own proposer function adds
|
|
894
|
-
``proposer.py
|
|
895
|
-
as ``instruction_proposer.json``. A
|
|
1001
|
+
``proposer.py`` and ``proposer.json``, which names its entrypoint. A run that declared
|
|
1002
|
+
a DSPy ``InstructionProposer`` adds its settings as ``instruction_proposer.json``. A
|
|
1003
|
+
run with neither runs ``InstructionProposer()``."""
|
|
896
1004
|
metric_source = packaging._generate_metric_source(metric)
|
|
897
1005
|
if metric_source is None:
|
|
898
1006
|
raise ValueError(
|
|
@@ -930,6 +1038,11 @@ def _build_optimization_bundle(
|
|
|
930
1038
|
# proposes nothing, which a worker refuses.
|
|
931
1039
|
if proposer_source is not None:
|
|
932
1040
|
zf.writestr("proposer.py", proposer_source)
|
|
1041
|
+
# The name the source's marker states, said where the optimizer can read it.
|
|
1042
|
+
zf.writestr(
|
|
1043
|
+
PROPOSER_ENTRYPOINT_MEMBER,
|
|
1044
|
+
json.dumps({"proposer_entrypoint": getattr(proposer, "__name__", "propose")}),
|
|
1045
|
+
)
|
|
933
1046
|
if settings is not None:
|
|
934
1047
|
zf.writestr(INSTRUCTION_PROPOSER_MEMBER, json.dumps(settings))
|
|
935
1048
|
return buf.getvalue()
|
|
@@ -994,6 +1107,7 @@ def optimize_deployment(
|
|
|
994
1107
|
_reflection_config(config, reflection_lm)
|
|
995
1108
|
_lms_config(config, lms)
|
|
996
1109
|
_apply_budget(config, max_metric_calls=max_metric_calls, auto=auto)
|
|
1110
|
+
_check_gepa_settings(config)
|
|
997
1111
|
train_rows = _split_rows(trainset, "trainset", input_fields)
|
|
998
1112
|
val_rows = _split_rows(valset, "valset", input_fields)
|
|
999
1113
|
|
|
@@ -1305,6 +1419,7 @@ def optimize_authored(
|
|
|
1305
1419
|
_lms_config(config, lms)
|
|
1306
1420
|
_lm_credentials_config(config, lm_credentials)
|
|
1307
1421
|
_apply_budget(config, max_metric_calls=max_metric_calls, auto=auto)
|
|
1422
|
+
_check_gepa_settings(config)
|
|
1308
1423
|
|
|
1309
1424
|
if prepared.program_bundle is None and deployment_id is not None and program_name is not None:
|
|
1310
1425
|
raise ValueError(
|
|
@@ -233,6 +233,34 @@ endpoint. None of these reads the global config:
|
|
|
233
233
|
`sdk.continue_optimization(run, ..., labels=None)` takes them the same way.
|
|
234
234
|
A continuation without them carries the completed run's labels, and one with
|
|
235
235
|
`labels={}` carries none.
|
|
236
|
+
`config` takes `dspy.GEPA`'s search settings by their `dspy.GEPA` names, and
|
|
237
|
+
each setting means what it means in a local run. A setting left out takes
|
|
238
|
+
DSPy's default:
|
|
239
|
+
|
|
240
|
+
| Setting | Default |
|
|
241
|
+
|---|---|
|
|
242
|
+
| `component_selector` | `"round_robin"` (or `"all"`) |
|
|
243
|
+
| `skip_perfect_score` | `True` |
|
|
244
|
+
| `perfect_score` | `1.0` |
|
|
245
|
+
| `use_merge` | `True` |
|
|
246
|
+
| `max_merge_invocations` | `5` |
|
|
247
|
+
| `add_format_failure_as_feedback` | `False` |
|
|
248
|
+
|
|
249
|
+
The client reads each value as a local `dspy.GEPA` reads it and sends the
|
|
250
|
+
setting that local run acts on:
|
|
251
|
+
|
|
252
|
+
- A boolean setting is read for its truth, so `None` sends `False`.
|
|
253
|
+
- A `perfect_score` that no score can reach, such as `inf` or `nan`, sends
|
|
254
|
+
`skip_perfect_score=False`.
|
|
255
|
+
- `-inf` sends the most negative finite float, which every score reaches.
|
|
256
|
+
- `max_merge_invocations` is rounded up to a whole number, and `inf` means no
|
|
257
|
+
limit.
|
|
258
|
+
- A setting that only matters beside another one, such as `perfect_score`
|
|
259
|
+
while `skip_perfect_score` is off, is dropped.
|
|
260
|
+
|
|
261
|
+
A value a local run refuses or fails on raises the local run's own error
|
|
262
|
+
before anything is sent. A selector object raises too, because a hosted run
|
|
263
|
+
cannot take code.
|
|
236
264
|
|
|
237
265
|
A `DeployedProgram` is not callable: a run needs a client's account, so calling
|
|
238
266
|
one raises `TypeError` and names `run_deployment`. The platform finds a
|
|
@@ -34,10 +34,9 @@ skill given as a path works. A proposer built with its own `adapter=` is
|
|
|
34
34
|
refused before any network call, because an adapter is code and only the
|
|
35
35
|
settings travel. In an optimize file, bind the instance as `proposer`.
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
with `messages`, so the setting has nothing to shorten.
|
|
37
|
+
The sandbox hands this proposer the records a local run hands it, with DSPy's
|
|
38
|
+
own objects intact. A `dspy.History` input arrives as a `History`, as the
|
|
39
|
+
predictor saw it on that call, so `truncate_history_outputs` shortens it.
|
|
41
40
|
|
|
42
41
|
## A proposer function
|
|
43
42
|
|
|
@@ -120,10 +119,17 @@ A proposal that names an undeclared binding is refused with a list of the
|
|
|
120
119
|
declared ones, and the run stops. A proposer that rewrites text without a
|
|
121
120
|
model needs no `lms` parameter.
|
|
122
121
|
|
|
123
|
-
The records hold
|
|
124
|
-
`InstructionProposer
|
|
125
|
-
`
|
|
126
|
-
|
|
122
|
+
The records hold what `dspy.GEPA` hands a proposer that is not an
|
|
123
|
+
`InstructionProposer`. A `dspy.History` input arrives as
|
|
124
|
+
`format_history_for_reflection`'s text, an input of one of DSPy's own types,
|
|
125
|
+
such as `dspy.Image`, as that object, and every other input and every output as
|
|
126
|
+
`str()` of the value. An input of a `dspy.Type` you defined arrives as its
|
|
127
|
+
string, because the sandbox that runs your proposer does not have your class.
|
|
128
|
+
|
|
129
|
+
Each record describes one call of the component in one rollout, picked at
|
|
130
|
+
random among that rollout's calls the way `dspy.GEPA` picks it. Its `Feedback`
|
|
131
|
+
is what your metric returned when called with that component's name and that
|
|
132
|
+
call's trace.
|
|
127
133
|
|
|
128
134
|
There is no state. Each proposal runs in a fresh instance, so nothing
|
|
129
135
|
accumulates across iterations. A proposer that needs history must receive it
|
|
@@ -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.106.
|
|
8
|
+
version = "0.106.2"
|
|
9
9
|
description = "DSPy observability and deployment SDK for cmpnd"
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.11"
|
|
@@ -31,7 +31,7 @@ reaches the provider and therefore what says which authority was spent.
|
|
|
31
31
|
|
|
32
32
|
**``--proposer`` drives the run's own instruction proposer**, which is the second
|
|
33
33
|
piece of user code a run can carry and the only one that runs on a verb of its own.
|
|
34
|
-
|
|
34
|
+
Five modes, and the caller's expectation differs by mode rather than the client
|
|
35
35
|
path doing:
|
|
36
36
|
|
|
37
37
|
none the platform's proposer, which is every other run in this lane
|
|
@@ -42,6 +42,13 @@ path doing:
|
|
|
42
42
|
raising a proposer that refuses every task, which must END the run: a search
|
|
43
43
|
whose proposer never works has to say so rather than spend its budget
|
|
44
44
|
arriving back at the instruction it started with
|
|
45
|
+
instruction-proposer
|
|
46
|
+
DSPy's own ``InstructionProposer(truncate_history_outputs=True)``,
|
|
47
|
+
declared by the client, which the kernel rebuilds from its settings
|
|
48
|
+
and hands the reflective records as DSPy objects
|
|
49
|
+
strings a proposer function that requires each record in DSPy's string form,
|
|
50
|
+
the form ``dspy.GEPA`` hands a custom proposer locally, and raises on
|
|
51
|
+
anything else
|
|
45
52
|
|
|
46
53
|
**``--credential`` and ``--judge-credential`` name the credentials a hosted call
|
|
47
54
|
spends**, each by the name an owner sealed it under. ``--credential`` is the run's
|
|
@@ -116,6 +123,9 @@ PROPOSER_BINDING = "proposer-lm"
|
|
|
116
123
|
# the run is settled with.
|
|
117
124
|
PROPOSER_REFUSAL = "this proposer refuses every task it is handed"
|
|
118
125
|
|
|
126
|
+
# The instruction the strings proposer writes, a module constant for the same reason.
|
|
127
|
+
STRINGS_PROPOSER_INSTRUCTION = "Answer the question with one lowercase word, and nothing else."
|
|
128
|
+
|
|
119
129
|
|
|
120
130
|
class ShortAnswer(dspy.Signature):
|
|
121
131
|
"""Answer the question with a single lowercase word or phrase."""
|
|
@@ -266,6 +276,43 @@ def refuse_every_proposal(candidate, reflective_dataset, components):
|
|
|
266
276
|
raise RuntimeError(PROPOSER_REFUSAL)
|
|
267
277
|
|
|
268
278
|
|
|
279
|
+
def propose_from_strings(candidate, reflective_dataset, components):
|
|
280
|
+
"""A proposer function that reads its records the way ``dspy.GEPA`` hands them locally.
|
|
281
|
+
|
|
282
|
+
Locally, a custom proposer receives each record as ``Inputs``, ``Generated Outputs`` and
|
|
283
|
+
``Feedback``, with every output and every input that is not one of DSPy's types as a
|
|
284
|
+
string. This program's inputs are plain strings, so every value is one. Hosted, the kernel
|
|
285
|
+
decodes the record a rollout wrote and hands a proposer function that same shape. Any
|
|
286
|
+
other shape, or a value that is not a string, raises, and a proposer that raises on every
|
|
287
|
+
task ends the run naming why.
|
|
288
|
+
|
|
289
|
+
The rewrite itself is a fixed instruction: this run asks what a proposer receives, and
|
|
290
|
+
reaching a model would add nothing to that.
|
|
291
|
+
"""
|
|
292
|
+
for name in components:
|
|
293
|
+
for record in reflective_dataset[name]:
|
|
294
|
+
if set(record) != {"Inputs", "Generated Outputs", "Feedback"}:
|
|
295
|
+
raise TypeError(f"a record of {name} has the keys {sorted(record)}, not DSPy's three")
|
|
296
|
+
outputs = record["Generated Outputs"]
|
|
297
|
+
values = [*record["Inputs"].values(), record["Feedback"]]
|
|
298
|
+
values += list(outputs.values()) if isinstance(outputs, dict) else [outputs]
|
|
299
|
+
for value in values:
|
|
300
|
+
if not isinstance(value, str):
|
|
301
|
+
raise TypeError(f"a record of {name} holds a {type(value).__name__}, not a string: {value!r}")
|
|
302
|
+
return {name: STRINGS_PROPOSER_INSTRUCTION for name in components}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def instruction_proposer():
|
|
306
|
+
"""DSPy's ``InstructionProposer`` with history compaction on, declared as a user declares it.
|
|
307
|
+
|
|
308
|
+
The instance never travels: the SDK sends its settings, and the kernel rebuilds it and
|
|
309
|
+
hands it the records as DSPy objects, so its compaction runs on a real ``History``.
|
|
310
|
+
"""
|
|
311
|
+
from dspy.teleprompt.gepa.instruction_proposal import InstructionProposer # noqa: PLC0415
|
|
312
|
+
|
|
313
|
+
return InstructionProposer(truncate_history_outputs=True)
|
|
314
|
+
|
|
315
|
+
|
|
269
316
|
def example_proposer():
|
|
270
317
|
"""``examples/generalizing_proposer.py``, imported the way a user imports their own.
|
|
271
318
|
|
|
@@ -300,6 +347,10 @@ def declared_proposer(mode: str):
|
|
|
300
347
|
return None, lms
|
|
301
348
|
if mode == "raising":
|
|
302
349
|
return refuse_every_proposal, lms
|
|
350
|
+
if mode == "strings":
|
|
351
|
+
return propose_from_strings, lms
|
|
352
|
+
if mode == "instruction-proposer":
|
|
353
|
+
return instruction_proposer(), lms
|
|
303
354
|
lms[PROPOSER_BINDING] = PROPOSER_MODEL
|
|
304
355
|
return example_proposer(), lms
|
|
305
356
|
|
|
@@ -398,11 +449,13 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
|
|
|
398
449
|
)
|
|
399
450
|
p.add_argument(
|
|
400
451
|
"--proposer",
|
|
401
|
-
choices=("none", "example", "raising"),
|
|
452
|
+
choices=("none", "example", "raising", "instruction-proposer", "strings"),
|
|
402
453
|
default="none",
|
|
403
454
|
help=(
|
|
404
455
|
"whose instruction proposer this run uses: the platform's, the documented "
|
|
405
|
-
"example,
|
|
456
|
+
"example, one that refuses every task (which must end the run), a declared "
|
|
457
|
+
"InstructionProposer with history compaction, or a function that requires "
|
|
458
|
+
"DSPy's string records"
|
|
406
459
|
),
|
|
407
460
|
)
|
|
408
461
|
p.add_argument("--timeout", type=float, default=1800.0, help="seconds to wait for the run to settle")
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"""A hosted run takes dspy.GEPA's search settings by their dspy.GEPA names.
|
|
2
|
+
|
|
3
|
+
``config`` carries ``component_selector``, ``skip_perfect_score``, ``perfect_score``,
|
|
4
|
+
``use_merge``, ``max_merge_invocations`` and ``add_format_failure_as_feedback`` to the
|
|
5
|
+
optimizer as the values a local ``dspy.GEPA`` acts on. A value a local run accepts is
|
|
6
|
+
accepted, and one it refuses or fails on is refused before any network call, with the
|
|
7
|
+
local run's own error. A setting left out means DSPy's default, which the engine applies
|
|
8
|
+
(``optimizer/gepa/config_test.go`` pins the same values).
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import inspect
|
|
14
|
+
import json
|
|
15
|
+
import sys
|
|
16
|
+
from typing import Any
|
|
17
|
+
|
|
18
|
+
import dspy as _dspy
|
|
19
|
+
import pytest
|
|
20
|
+
from dspy.utils.dummies import DummyLM
|
|
21
|
+
|
|
22
|
+
import cmpnd
|
|
23
|
+
from cmpnd import optimization
|
|
24
|
+
|
|
25
|
+
try:
|
|
26
|
+
from dspy.clients.engines.dummy_engine import DummyEngine
|
|
27
|
+
except ImportError: # DSPy < 3.4 scripts DummyLM without an engine to subclass.
|
|
28
|
+
DummyEngine = None
|
|
29
|
+
|
|
30
|
+
#: The parity test scripts a local run through a DummyLM engine, which DSPy has from 3.4.
|
|
31
|
+
needs_engines = pytest.mark.skipif(DummyEngine is None, reason="needs DSPy>=3.4 (DummyLM engines)")
|
|
32
|
+
|
|
33
|
+
# DSPy's stubs type these calls narrower than DSPy runs them.
|
|
34
|
+
dspy: Any = _dspy
|
|
35
|
+
|
|
36
|
+
# dspy.GEPA's defaults, as the engine applies them to a setting the config leaves out.
|
|
37
|
+
DSPY_DEFAULTS = {
|
|
38
|
+
"component_selector": "round_robin",
|
|
39
|
+
"skip_perfect_score": True,
|
|
40
|
+
"perfect_score": 1.0,
|
|
41
|
+
"use_merge": True,
|
|
42
|
+
"max_merge_invocations": 5,
|
|
43
|
+
"add_format_failure_as_feedback": False,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _feedback_metric(gold, pred, trace, pred_name, pred_trace):
|
|
48
|
+
return None
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _optimize(config: dict[str, Any]) -> None:
|
|
52
|
+
cmpnd.Client(api_key="ct_test_key", endpoint="http://localhost:3000").optimize_deployment(
|
|
53
|
+
"d_0123456789ab",
|
|
54
|
+
optimizer="gepa",
|
|
55
|
+
trainset=[],
|
|
56
|
+
valset=[],
|
|
57
|
+
metric=_feedback_metric,
|
|
58
|
+
reflection_lm="openai/gpt-4o",
|
|
59
|
+
max_metric_calls=60,
|
|
60
|
+
config=config,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def test_the_defaults_are_dspys():
|
|
65
|
+
# DSPy's own __init__, even while an earlier test's auto_instrument() wraps it.
|
|
66
|
+
init = getattr(dspy.GEPA, "_cmpnd_original_init", dspy.GEPA.__init__)
|
|
67
|
+
parameters = inspect.signature(init).parameters
|
|
68
|
+
assert {name: parameters[name].default for name in DSPY_DEFAULTS} == DSPY_DEFAULTS
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
if DummyEngine is not None:
|
|
72
|
+
|
|
73
|
+
class _ProbeEngine(DummyEngine):
|
|
74
|
+
"""Answers "good" once the instruction holds "better", which the proposer adds, so a
|
|
75
|
+
run accepts a reflective candidate and reaches every setting GEPA reads."""
|
|
76
|
+
|
|
77
|
+
def _complete_messages(self, messages):
|
|
78
|
+
system = " ".join(m["content"] for m in messages if m["role"] == "system")
|
|
79
|
+
self.owner.answers = {"": {"a": "good" if "better" in system else "bad"}}
|
|
80
|
+
return super()._complete_messages(messages)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _probe_metric(gold, pred, trace=None, pred_name=None, pred_trace=None):
|
|
84
|
+
return dspy.Prediction(score=1.0 if pred.a == "good" else 0.0, feedback="say better")
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def _probe_proposer(candidate, reflective_dataset, components_to_update):
|
|
88
|
+
return {c: candidate[c] + " better" for c in components_to_update}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def _dspy_gepa(settings: dict[str, Any]) -> tuple[str, Any]:
|
|
92
|
+
"""What a local dspy.GEPA run makes of ``settings``: its candidates and their parents,
|
|
93
|
+
or the error it raised."""
|
|
94
|
+
lm = DummyLM({"": {"a": "bad"}})
|
|
95
|
+
lm._engine_spec = _ProbeEngine(lm) # pyright: ignore[reportAttributeAccessIssue]
|
|
96
|
+
examples = [dspy.Example(q=str(i), a="good").with_inputs("q") for i in range(6)]
|
|
97
|
+
try:
|
|
98
|
+
with dspy.context(lm=lm):
|
|
99
|
+
gepa = dspy.GEPA(
|
|
100
|
+
metric=_probe_metric,
|
|
101
|
+
max_metric_calls=60,
|
|
102
|
+
instruction_proposer=_probe_proposer,
|
|
103
|
+
reflection_minibatch_size=2,
|
|
104
|
+
track_stats=True,
|
|
105
|
+
**settings,
|
|
106
|
+
)
|
|
107
|
+
result = gepa.compile(dspy.Predict("q -> a"), trainset=examples, valset=examples).detailed_results
|
|
108
|
+
except Exception as e:
|
|
109
|
+
return "refused", e
|
|
110
|
+
return "ran", ([c.predictors()[0].signature.instructions for c in result.candidates], result.parents)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
_NAN, _INF = float("nan"), float("inf")
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@needs_engines
|
|
117
|
+
@pytest.mark.parametrize(
|
|
118
|
+
"settings",
|
|
119
|
+
[
|
|
120
|
+
{},
|
|
121
|
+
{"skip_perfect_score": None},
|
|
122
|
+
{"skip_perfect_score": "yes"},
|
|
123
|
+
{"skip_perfect_score": 0},
|
|
124
|
+
{"use_merge": None},
|
|
125
|
+
{"use_merge": "no"},
|
|
126
|
+
{"add_format_failure_as_feedback": None},
|
|
127
|
+
{"add_format_failure_as_feedback": 1},
|
|
128
|
+
{"perfect_score": None},
|
|
129
|
+
{"perfect_score": None, "skip_perfect_score": False},
|
|
130
|
+
{"perfect_score": None, "skip_perfect_score": None},
|
|
131
|
+
{"perfect_score": "1"},
|
|
132
|
+
{"perfect_score": "1", "skip_perfect_score": False},
|
|
133
|
+
{"perfect_score": True},
|
|
134
|
+
{"perfect_score": 0.5},
|
|
135
|
+
{"perfect_score": _INF},
|
|
136
|
+
{"perfect_score": _NAN},
|
|
137
|
+
{"perfect_score": -_INF},
|
|
138
|
+
{"perfect_score": 10**400},
|
|
139
|
+
{"perfect_score": -(10**400)},
|
|
140
|
+
{"perfect_score": _INF, "skip_perfect_score": False},
|
|
141
|
+
{"max_merge_invocations": None},
|
|
142
|
+
{"max_merge_invocations": None, "use_merge": False},
|
|
143
|
+
{"max_merge_invocations": None, "use_merge": None},
|
|
144
|
+
{"max_merge_invocations": "5"},
|
|
145
|
+
{"max_merge_invocations": 2.5},
|
|
146
|
+
{"max_merge_invocations": -1},
|
|
147
|
+
{"max_merge_invocations": 0},
|
|
148
|
+
{"max_merge_invocations": _INF},
|
|
149
|
+
{"max_merge_invocations": _NAN},
|
|
150
|
+
{"max_merge_invocations": 10**400},
|
|
151
|
+
{"component_selector": None},
|
|
152
|
+
{"component_selector": 3},
|
|
153
|
+
{"component_selector": "all"},
|
|
154
|
+
{"component_selector": "random"},
|
|
155
|
+
],
|
|
156
|
+
ids=repr,
|
|
157
|
+
)
|
|
158
|
+
def test_the_sdk_accepts_and_refuses_what_dspy_gepa_does(settings):
|
|
159
|
+
"""Run each setting through ``dspy.GEPA`` itself and through the SDK's check.
|
|
160
|
+
|
|
161
|
+
A value a local run accepts, the SDK accepts, and what it sends makes the same local
|
|
162
|
+
run: the same candidates with the same parents. A value a local run refuses or fails
|
|
163
|
+
on, the SDK refuses with the local run's own error.
|
|
164
|
+
"""
|
|
165
|
+
local, answer = _dspy_gepa(settings)
|
|
166
|
+
sent = dict(settings)
|
|
167
|
+
try:
|
|
168
|
+
optimization._check_gepa_settings(sent)
|
|
169
|
+
except (TypeError, ValueError) as refused:
|
|
170
|
+
assert local == "refused", f"the SDK refused {settings!r}, which dspy.GEPA ran: {refused}"
|
|
171
|
+
assert str(answer) in str(refused)
|
|
172
|
+
return
|
|
173
|
+
assert local == "ran", f"the SDK accepted {settings!r}, which dspy.GEPA refused: {answer}"
|
|
174
|
+
assert _dspy_gepa(sent) == (local, answer), f"{settings!r} became {sent!r}, which runs differently"
|
|
175
|
+
json.dumps(sent, allow_nan=False) # what the SDK sends is plain JSON
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
@pytest.mark.parametrize(
|
|
179
|
+
("perfect_score", "sent"),
|
|
180
|
+
[
|
|
181
|
+
(_INF, {"skip_perfect_score": False}),
|
|
182
|
+
(_NAN, {"skip_perfect_score": False}),
|
|
183
|
+
(10**400, {"skip_perfect_score": False}),
|
|
184
|
+
(-_INF, {"perfect_score": -sys.float_info.max}),
|
|
185
|
+
(-(10**400), {"perfect_score": -sys.float_info.max}),
|
|
186
|
+
],
|
|
187
|
+
ids=repr,
|
|
188
|
+
)
|
|
189
|
+
def test_a_non_finite_perfect_score_is_sent_as_the_setting_it_means(perfect_score, sent):
|
|
190
|
+
"""No finite score reaches inf or nan, so GEPA never skips a parent, and every finite
|
|
191
|
+
score reaches -inf, so it always does. The parity run cannot tell -inf's stand-in from
|
|
192
|
+
any other bound below its scores, so this pins the bound itself."""
|
|
193
|
+
config = {"perfect_score": perfect_score}
|
|
194
|
+
optimization._check_gepa_settings(config)
|
|
195
|
+
assert config == sent
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def test_a_selector_object_is_the_one_value_a_hosted_run_cannot_take():
|
|
199
|
+
with pytest.raises(ValueError, match="a selector object is code"):
|
|
200
|
+
optimization._check_gepa_settings({"component_selector": lambda *a: ["predict"]})
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
def test_the_settings_reach_the_run_as_written(monkeypatch):
|
|
204
|
+
monkeypatch.setattr(optimization, "_deployment_signature_facts", lambda *args: None)
|
|
205
|
+
sent: dict[str, Any] = {}
|
|
206
|
+
|
|
207
|
+
def run(*_args: Any, config: dict[str, Any], **_kwargs: Any):
|
|
208
|
+
sent.update(config)
|
|
209
|
+
raise RuntimeError("reached the step loop")
|
|
210
|
+
|
|
211
|
+
monkeypatch.setattr(optimization, "_run_optimization", run)
|
|
212
|
+
with pytest.raises(RuntimeError, match="reached the step loop"):
|
|
213
|
+
_optimize(
|
|
214
|
+
{
|
|
215
|
+
"component_selector": "all",
|
|
216
|
+
"skip_perfect_score": None,
|
|
217
|
+
"perfect_score": None,
|
|
218
|
+
"use_merge": 1,
|
|
219
|
+
"max_merge_invocations": 2.5,
|
|
220
|
+
"add_format_failure_as_feedback": "yes",
|
|
221
|
+
}
|
|
222
|
+
)
|
|
223
|
+
# Each reaches the run as the value dspy.GEPA acts on. A None skip_perfect_score is
|
|
224
|
+
# False, so the perfect_score it would gate is never read and leaves.
|
|
225
|
+
settings = {
|
|
226
|
+
"component_selector": "all",
|
|
227
|
+
"skip_perfect_score": False,
|
|
228
|
+
"use_merge": True,
|
|
229
|
+
"max_merge_invocations": 3,
|
|
230
|
+
"add_format_failure_as_feedback": True,
|
|
231
|
+
}
|
|
232
|
+
assert {key: sent[key] for key in sent if key in DSPY_DEFAULTS} == settings
|
|
@@ -98,6 +98,14 @@ def test_a_declared_proposer_travels_as_its_own_member_naming_its_entrypoint():
|
|
|
98
98
|
assert "def a_proposer(candidate, reflective_dataset, components, lms=None):" in source
|
|
99
99
|
|
|
100
100
|
|
|
101
|
+
def test_a_declared_proposer_states_its_entrypoint_beside_its_source():
|
|
102
|
+
"""The optimizer runs no Python, so it reads the entrypoint from this member rather than
|
|
103
|
+
from the source, for the run record's `proposer`."""
|
|
104
|
+
bundle = _bundle(a_proposer)
|
|
105
|
+
|
|
106
|
+
assert json.loads(bundle.read(optimization.PROPOSER_ENTRYPOINT_MEMBER)) == {"proposer_entrypoint": "a_proposer"}
|
|
107
|
+
|
|
108
|
+
|
|
101
109
|
def test_a_proposers_helpers_and_constants_travel_with_it():
|
|
102
110
|
"""The property that makes a proposer with no filesystem workable.
|
|
103
111
|
|
|
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
|