feat: expose Data Designer run config#203
Conversation
04ded89 to
b73f6d6
Compare
Greptile SummaryThis PR exposes Data Designer's runtime execution controls (
Confidence Score: 5/5Safe to merge — the change is a small additive parameter with no impact on existing call sites. The new parameter is optional and defaults to None, so all existing Anonymizer(...) call sites are completely unaffected. The set_run_config call is placed after DataDesigner construction and before adapter wiring, which is the correct ordering. Both code paths (managed and caller-supplied DataDesigner) are exercised by dedicated unit tests. The RunConfig re-export keeps the annotation runtime-resolvable, which was carefully verified in the prior review thread. No files require special attention. Important Files Changed
|
Signed-off-by: lipikaramaswamy <lramaswamy@nvidia.com>
Signed-off-by: lipikaramaswamy <lramaswamy@nvidia.com>
Signed-off-by: Lipika Ramaswamy <lipika.ramaswamy@gmail.com>
Signed-off-by: Lipika Ramaswamy <lipika.ramaswamy@gmail.com>
Summary
Adds an optional
data_designer_run_configparameter toAnonymizer(...)so callers can configure Data Designer runtime controls such asbuffer_sizeandmax_in_flight_taskswhile still using Anonymizer's normal model config/provider loading path.The name is intentionally explicit: it sits next to the existing advanced
data_designerconstructor parameter and avoids overloadingrun_config, which could be confused withAnonymizerConfigoranonymizer.run(config=...).This keeps execution/backpressure tuning on the runtime constructor instead of putting it on
AnonymizerConfig, which remains focused on anonymization behavior. The PR also re-exportsRunConfigfromanonymizerso examples can use the public Anonymizer import path.Type of Change
Testing
make testpasses locallymake checkpasses locally (format + lint + typecheck + lock-check)Targeted validation run:
uv run pytest tests/interface/test_anonymizer_interface.py -quv run ruff check src/anonymizer/interface/anonymizer.py tests/interface/test_anonymizer_interface.pyDocumentation
make docs-buildpasses locallyNo docs changed. This small API hook is intended to support self-hosted Data Designer runtime/backpressure configuration without bypassing Anonymizer's provider setup.
Related Issues