Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime boundary module for prompts.

This module contains imperative code (template parsing, rendering) that cannot be easily converted to functional style. It satisfies the dylint boundary-module check.

Re-exports§

pub use crate::prompts::io::extract_metadata;
pub use crate::prompts::io::extract_partials;
pub use crate::prompts::io::extract_variables;
pub use crate::prompts::io::validate_syntax;
pub use crate::prompts::template_registry::TemplateError;

Structs§

RenderedTemplate
Result of template rendering with substitution log.
SubstitutionEntry
Record of a single placeholder substitution.
SubstitutionLog
Record of template substitution - stored in reducer state for validation.
Template
Template for rendering prompts with variable substitution.

Enums§

SubstitutionSource
How a placeholder was resolved during template rendering.

Traits§

BriefDescription
Helper trait for brief outcome descriptions.

Functions§

generate_resume_note
Generate a rich resume note from resume context.