yera.runtime.models.input_spec
Models describing values accepted by input requests.
Symbols
InputValueSpec
Inherits:
BaseModelThe 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,
) → SelfBuild 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.