Add Runner.Prepare and refactor Runner.Run to reuse pre-LLM prepare flow

This commit is contained in:
2026-05-06 15:12:58 +00:00
parent 48c06218dc
commit 44056d7b8f
3 changed files with 420 additions and 61 deletions

View File

@@ -83,6 +83,7 @@ type PreparedRun struct {
PromptHash string `json:"prompt_hash,omitempty"`
SelectedProfileID string `json:"selected_profile_id"`
EffectiveModelParams ExecutionTarget `json:"effective_model_params"`
OutputContract OutputContract `json:"output_contract"`
InputHashes map[string]string `json:"input_hashes,omitempty"`
RenderedPromptHash string `json:"rendered_prompt_hash"`
Messages []RenderedMessage `json:"messages"`