Skip to main content

Module request

Module request 

Source
Expand description

Request and response types for the four AI interaction modes defined in §17.8: Generate, Repair, Optimize, and Select.

All confidence values are f64 in the range 0.0..=1.0 (see §17.4). Providers are expected to populate reasoning and alternatives where feasible so that decision manifest entries can be constructed from a response without a second provider round-trip.

Structs§

Alternative
An alternative considered by the provider but not chosen.
CandidateRule
Candidate codegen rule emitted by a successful repair response.
DecisionRef
Reference to a prior decision that should bias the current call.
GenerateRequest
Input to AiProvider::generate.
GenerateResponse
Response from AiProvider::generate.
ModuleContext
Per-module context fed to generation/repair/optimize calls.
OptimizeRequest
Input to AiProvider::optimize.
OptimizeResponse
Response from AiProvider::optimize.
RepairRequest
Input to AiProvider::repair.
RepairResponse
Response from AiProvider::repair.
SelectContext
Context supplied alongside the option set for a select() call.
SelectOption
A single option in a closed-set selection.
SelectRequest
Input to AiProvider::select.
SelectResponse
Response from AiProvider::select.
TargetProfile
Minimal target profile view consumed by the provider interface.

Enums§

OptimizationHint
Hints for the optimization pass (Tier 3).