Module adcp.types.generated_poc.content_standards.content_standards

Classes

class CalibrationExemplars (**data: Any)
Expand source code
class CalibrationExemplars(AdCPBaseModel):
    fail: Annotated[
        list[artifact.Artifact] | None,
        Field(description='Artifacts that fail the content standards'),
    ] = None
    pass_: Annotated[
        list[artifact.Artifact] | None,
        Field(alias='pass', description='Artifacts that pass the content standards'),
    ] = None

Base model for AdCP types with spec-compliant serialization.

AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Ancestors

Class variables

var fail : list[Artifact] | None
var model_config
var pass_ : list[Artifact] | None

Inherited members

class ContentStandards (**data: Any)
Expand source code
class ContentStandards(AdCPBaseModel):
    calibration_exemplars: Annotated[
        CalibrationExemplars | None,
        Field(
            description='Training/test set to calibrate policy interpretation. Provides concrete examples of pass/fail decisions.'
        ),
    ] = None
    channels_any: Annotated[
        list[channels.MediaChannel] | None,
        Field(
            description='Advertising channels. Standards apply to ANY of the listed channels (OR logic).',
            min_length=1,
        ),
    ] = None
    countries_all: Annotated[
        list[str] | None,
        Field(
            description='ISO 3166-1 alpha-2 country codes. Standards apply in ALL listed countries (AND logic).',
            min_length=1,
        ),
    ] = None
    ext: ext_1.ExtensionObject | None = None
    languages_any: Annotated[
        list[str] | None,
        Field(
            description="BCP 47 language tags (e.g., 'en', 'de', 'fr'). Standards apply to content in ANY of these languages (OR logic). Content in unlisted languages is not covered by these standards.",
            min_length=1,
        ),
    ] = None
    name: Annotated[
        str | None, Field(description='Human-readable name for this standards configuration')
    ] = None
    policy: Annotated[
        str | None,
        Field(
            description='Natural language policy describing acceptable and unacceptable content contexts. Used by LLMs and human reviewers to make judgments.'
        ),
    ] = None
    standards_id: Annotated[
        str, Field(description='Unique identifier for this standards configuration')
    ]

Base model for AdCP types with spec-compliant serialization.

AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Ancestors

Subclasses

Class variables

var calibration_exemplarsCalibrationExemplars | None
var channels_any : list[MediaChannel] | None
var countries_all : list[str] | None
var extExtensionObject | None
var languages_any : list[str] | None
var model_config
var name : str | None
var policy : str | None
var standards_id : str

Inherited members