Skip to main content

compile_invocation

Function compile_invocation 

Source
pub fn compile_invocation(
    stage: &PlatformStage,
    domain_sections: &[RenderedSection],
    route: &PromptRoute,
    dialect: &ModelDialect,
    tool_spec_hash: &str,
) -> Result<CompiledPromptInvocation>
Expand description

Compile one call’s two programs — the platform stage and the domain’s same-stage sections (possibly none) — into the invocation the ledger records (spec: “Each model call compiles two programs”).