yera.runtime.models.input_spec

Models describing values accepted by input requests.

Symbols

class InputValueSpec — The serialized value accepted by an input request.

InputValueSpec

Inherits: BaseModel

The serialized value accepted by an input request.

Fields

data_type
type: str (required)
type_name
type: str (required)
value_schema
type: dict[str, object] (required)

Methods

from_type — Build a value specification from a supported declared type.

InputValueSpec.from_type

from_type(
    type_hint: TypeHint,
    data_type: str,
) → Self

Build a value specification from a supported declared type.

Parameters

type_hint
type: TypeHint

The declared response type.

data_type
type: str

Discriminator for the submitted input envelope.

Returns

type: Self

Its display name and serialization schema.