aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/flow/patching/patching.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-31 18:55:30 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-02-02 09:00:59 +0000
commit62be7008f950a8b59112b792a9099734ae54c157 (patch)
tree4295a343466f78d6d2cf5832148209608241c3dd /pkg/aflow/flow/patching/patching.go
parent875e739a46ec76f088a29b62dfa4a881ad0543e9 (diff)
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
Diffstat (limited to 'pkg/aflow/flow/patching/patching.go')
-rw-r--r--pkg/aflow/flow/patching/patching.go6
1 files changed, 3 insertions, 3 deletions
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,