Module adcp.types.domains.manifest

Classes

class Model (root: RootModelRootType = PydanticUndefined, **data)
Expand source code
class Model(AdCPRootModel[Any]):
    root: Any

RootModel under the SDK's deferred-build policy.

class X(RootModel[A | B]) parametrizes a concrete class at the RootModel[…] expression, and that class carries pydantic's default config: its validator for the whole union is built right there, before X and any config X declares exist. For a composing root such as adagents.AdcpAgentsAuthorization that walked most of its domain into pydantic-core at import (#1694). Parametrizing this class instead inherits defer_build=True into AdCPRootModel[A | B] and into X, so the build waits for first use like every other generated model's. scripts/post_generate_fixes.defer_rootmodel_builds points every generated composing root here; a value root is a scalar subclass instead (adcp.types._scalar).

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 model_config
var root : Any