From 62be7008f950a8b59112b792a9099734ae54c157 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 31 Jan 2026 18:55:30 +0100 Subject: pkg/aflow: abstract away LLM temperature Introduce abstract "task type" for LLM agents instead of specifying temperature explicitly for each agent. This has 2 advantages: - we don't hardcode it everywhere, and can change centrally as our understanding of the right temperature evolves - we can control other LLM parameters (topn/topk) using task type as well Update #6576 --- pkg/aflow/flow/patching/patching.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/aflow/flow/patching/patching.go') diff --git a/pkg/aflow/flow/patching/patching.go b/pkg/aflow/flow/patching/patching.go index f8ee75a31..6be96fcc5 100644 --- a/pkg/aflow/flow/patching/patching.go +++ b/pkg/aflow/flow/patching/patching.go @@ -50,7 +50,7 @@ func createPatchingFlow(name string, summaryWindow int) *aflow.Flow { Name: "debugger", Model: aflow.BestExpensiveModel, Reply: "BugExplanation", - Temperature: 1, + TaskType: aflow.FormalReasoningTask, Instruction: debuggingInstruction, Prompt: debuggingPrompt, Tools: commonTools, @@ -63,7 +63,7 @@ func createPatchingFlow(name string, summaryWindow int) *aflow.Flow { Name: "patch-generator", Model: aflow.BestExpensiveModel, Reply: "PatchExplanation", - Temperature: 1, + TaskType: aflow.FormalReasoningTask, Instruction: patchInstruction, Prompt: patchPrompt, Tools: append(commonTools, codeeditor.Tool), @@ -80,7 +80,7 @@ func createPatchingFlow(name string, summaryWindow int) *aflow.Flow { Name: "description-generator", Model: aflow.BestExpensiveModel, Reply: "PatchDescription", - Temperature: 1, + TaskType: aflow.FormalReasoningTask, Instruction: descriptionInstruction, Prompt: descriptionPrompt, Tools: commonTools, -- cgit mrf-deployment