DataDesigner/docs/code_reference/config/run_config.md
Andre Manoel 8b79b21298 Initialize orphan Fern docs website branch
Preserves tree from previous docs-website head: 5e47d33ea8. This branch is a CI-managed publish artifact like gh-pages; source provenance is tracked in commit messages rather than Git ancestry.
2026-05-14 01:17:51 +00:00

29 lines
823 B
Markdown

# Run Config
`RunConfig` controls dataset generation behavior, including early shutdown thresholds,
batch sizing, non-inference worker concurrency, and the Jinja rendering engine used by
the runtime.
`JinjaRenderingEngine.SECURE` is the default. Set `JinjaRenderingEngine.NATIVE`
when you want Jinja2's broader built-in sandbox behavior instead of Data Designer's
hardened renderer.
For guidance on when to use each mode, see [Security](../../concepts/security.md).
## Usage
```python
import data_designer.config as dd
from data_designer.interface import DataDesigner
data_designer = DataDesigner()
data_designer.set_run_config(dd.RunConfig(
buffer_size=500,
max_conversation_restarts=3,
jinja_rendering_engine=dd.JinjaRenderingEngine.NATIVE,
))
```
## API Reference
::: data_designer.config.run_config