For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Getting Started
    • Welcome
    • Contributing
  • Concepts
    • Columns
    • Seed Datasets
    • Agent Rollout Ingestion
    • Custom Columns
    • Validators
    • Processors
    • Person Sampling
    • Traces
    • Architecture & Performance
    • Deployment Options
    • Security
  • Tutorials
    • Overview
    • The Basics
    • Structured Outputs, Jinja Expressions, and Conditional Generation
    • Seeding with an External Dataset
    • Providing Images as Context
    • Generating Images
    • Image-to-Image Editing
  • Recipes
    • Recipe Cards
  • Plugins
    • Overview
    • Example Plugin
    • FileSystemSeedReader Plugins
    • Discover
  • Code Reference
    • Overview
      • Overview
      • models
      • mcp
      • column_configs
      • config_builder
      • data_designer_config
      • run_config
      • sampler_params
      • validator_params
      • seeds
      • processors
      • analysis
      • Config API
        • Analysis
        • Base
        • Column Configs
        • Column Types
        • Config Builder
        • Custom Column
        • Data Designer Config
        • Dataset Metadata
        • Default Model Settings
        • Errors
        • Exportable Config
        • Fingerprint
        • Interface
        • Mcp
        • Models
        • Preview Results
        • Processor Types
        • Processors
        • Run Config
        • Sampler Constraints
        • Sampler Params
        • Seed
        • Seed Source
        • Seed Source Dataframe
        • Seed Source Types
        • Testing
        • Utils
          • Code Lang
          • Constants
          • Errors
          • Image Helpers
          • Info
          • Io Helpers
          • Misc
          • Numerical Helpers
          • Trace Renderer
          • Trace Type
          • Type Helpers
          • Visualization
          • Warning Helpers
        • Validator Params
        • Version
  • Dev Notes
    • Overview
    • Have It Your Way
    • VLM Long Document Understanding
    • Push Datasets to Hugging Face Hub
    • Text-to-SQL for Nemotron Super
    • Async All the Way Down
    • Owning the Model Stack
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogoNeMo Data Designer
On this page
  • Module Contents
  • Classes
  • Functions
  • Data
  • API
Code ReferenceConfigConfig APIUtils

data_designer.config.utils.type_helpers

||View as Markdown|
Previous

Trace Type

Next

Visualization

Module Contents

Classes

NameDescription
StrEnumstr(object=”) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Functions

NameDescription
create_str_enum_from_discriminated_type_unionCreate a string enum from a type union.
get_sampler_paramsReturns a dictionary of sampler parameter classes.
resolve_string_enumNone

Data

SAMPLER_PARAMS

API

1class data_designer.config.utils.type_helpers.StrEnum

Bases: str, enum.Enum

1data_designer.config.utils.type_helpers.create_str_enum_from_discriminated_type_union(
2 enum_name: str,
3 type_union: type,
4 discriminator_field_name: str
5) -> data_designer.config.utils.type_helpers.StrEnum

Create a string enum from a type union.

The type union is assumed to be a union of configs (Pydantic models) that have a discriminator field, which must be a Literal string type - e.g., Literal[“expression”].

Parameters:

enum_name
str

Name of the StrEnum.

type_union
type

Type union of configs (Pydantic models).

discriminator_field_name
str

Name of the discriminator field.

Returns:

data_designer.config.utils.type_helpers.StrEnum

StrEnum with values being the discriminator field values of the configs in the type union.

Example:

1DataDesignerColumnType = create_str_enum_from_discriminated_type_union(
2 enum_name="DataDesignerColumnType",
3 type_union=ColumnConfigT,
4 discriminator_field_name="column_type",
5)
1data_designer.config.utils.type_helpers.get_sampler_params() -> dict[str, type[pydantic.BaseModel]]

Returns a dictionary of sampler parameter classes.

1data_designer.config.utils.type_helpers.resolve_string_enum(
2 enum_instance: typing.Any,
3 enum_type: type[enum.Enum]
4) -> enum.Enum
1SAMPLER_PARAMS = get_sampler_params(...)