Skip to content

Commit 8c384f9

Browse files
committed
refactor: rm working dir call #48
1 parent 89bdf64 commit 8c384f9

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

agents/react.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package agents
33
import (
44
"context"
55
"fmt"
6-
"os"
76
"strings"
87

98
"github.com/bit8bytes/beago/inputs/roles"
@@ -44,17 +43,13 @@ func buildReActPrompt(tls map[string]tools.Tool, jsonInstructions string) []llms
4443
}
4544
}
4645

47-
wd, _ := os.Getwd()
48-
4946
return []llms.Message{
5047
{
5148
Role: roles.System,
5249
Content: fmt.Sprintf(`
5350
You are an helpful agent. Answer questions using the available tools.
5451
Do not estimate or predict values. Use only values returned by tools.
5552
56-
Working directory: %s
57-
5853
Available tools:
5954
%s
6055
%s
@@ -67,7 +62,7 @@ Respond with a JSON object on each turn with these fields:
6762
6863
When you have enough information to answer, set "action" to "" and "action_input" to {} and put a detailed answer based on your observations — MUST be non-empty when done; be thorough and include all relevant findings.
6964
70-
Think step by step. Do not hallucinate.`, wd, toolDescriptions.String(), jsonInstructions),
65+
Think step by step. Do not hallucinate.`, toolDescriptions.String(), jsonInstructions),
7166
},
7267
}
7368
}

0 commit comments

Comments
 (0)