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.

Methods

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

InputValueSpec.from_type

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

Build a value specification from a supported declared type.

Parameters

type_hint
type: type

The declared response type.

data_type
type: str

Discriminator for the submitted input envelope.

Returns

type: Self

Its display name and serialization schema.