yera.runtime.models.block_data
Block data models for events blocks.
Symbols
BarChartData
BaseModelBar chart block data.
BlockEndData
BaseModelControl event marking the structural end of a block.
Distinct from semantic completion (e.g. SpinnerData.status="complete",
which means render a tick). This means no further events will arrive for
this block_id. It is consumed by the router to close the block's handler
context and is never dispatched to a handler's push.
ErrorResultData
BaseModelSerialized data for an error result block.
ErrorResultDetails
BaseModelNormalized details captured from an exception.
FailureExitEventData
BaseModelExit event data for failed app execution (exit_code != 0).
FormData
InputRequestBlockDataA form request presenting a struct's fields for one typed submission.
Attributes
Transport contract accepting one JSON object; the struct, not the form schema, validates its contents.
Inlined form schema used to render the form and to redact secrets from stored submissions.
Optional question shown above the form.
Current JSON values keyed by field name, pre-filling the form.
Validation messages keyed by dotted field path, from a previously rejected submission.
FormEchoData
BaseModelThe outcome of one form submission, recorded in the transcript.
Attributes
Block ID of the form request the submission answered.
Whether validation accepted or rejected the submission.
The request's question, repeated alongside the answers.
Form schema describing the submitted fields.
Submitted JSON values with secrets masked.
Validation messages keyed by dotted field path when rejected.
ImageData
BaseModelDescribe encoded image content carried by an output event.
Attributes
Discriminator identifying image block data.
Base64-encoded image-file content.
MIME type identifying the encoded image format.
Optional accessible description of the image.
InputEchoData
BaseModelAn accepted input response that terminally commits its request.
InputRequestBlockData
BaseModelData shared by blocks that request a single input value.
InputRequestData
InputRequestBlockDataInput request block data for awaiting user text input.
LineChartData
BaseModelLine chart block data.
MarkdownData
BaseModelMarkdown content block data.
SectionData
BaseModelStructural and visual state for a collapsible section.
Section data is emitted as a complete snapshot whenever the section heading changes. Consumers can therefore render each event independently without reconstructing previous updates.
Attributes
Heading shown for the section.
Optional preview shown when the completed section is collapsed.
Whether the section collapses automatically on completion.
Registered glyph shown beside the title.
Optional named colour applied to the section heading.
SessionMetaData
BaseModelA partial session metadata update emitted by a runtime or host.
SpinnerData
BaseModelSpinner block data with status and optional message.
StructData
BaseModelStruct data for structured generation responses.
SuccessExitEventData
BaseModelExit event data for successful app completion (exit_code 0).
SuccessResultData
BaseModelSerialized data for a successful result block.
SystemPromptData
BaseModelSystem prompt block data.
TableData
BaseModelTable block data with columns, rows, and border style.
ThinkingData
BaseModelThinking content block data.
TreeSelectorData
InputRequestBlockDataTree selector request containing nested selectable leaves.