Skip to content

Commit 0edbad1

Browse files
committed
fix: include models in evaluate_ragcode tool JSON Data
1 parent 37ea155 commit 0edbad1

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

internal/service/tools/evaluate_ragcode.go

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,22 @@ func (t *EvaluateRagCodeTool) Execute(ctx context.Context, args map[string]inter
114114
b.WriteString(fmt.Sprintf("- **Models**: Chat=%s, Embed=%s\n", t.cfg.LLM.OllamaModel, t.cfg.LLM.OllamaEmbed))
115115
}
116116

117+
data := map[string]interface{}{
118+
"workspace_root": workspaceRoot,
119+
"detection_source": source,
120+
"health_status": healthStatus,
121+
}
122+
if t.cfg != nil {
123+
data["models"] = map[string]string{
124+
"chat": t.cfg.LLM.OllamaModel,
125+
"embed": t.cfg.LLM.OllamaEmbed,
126+
}
127+
}
128+
117129
response := ToolResponse{
118130
Status: "success",
119131
Message: b.String(),
120-
Data: map[string]interface{}{
121-
"workspace_root": workspaceRoot,
122-
"detection_source": source,
123-
"health_status": healthStatus,
124-
},
132+
Data: data,
125133
Context: ContextMetadata{
126134
WorkspaceRoot: workspaceRoot,
127135
DetectionSource: source,

0 commit comments

Comments
 (0)