cmd: remove dead agent prompt wrappers (#17227)
This commit is contained in:
@@ -331,18 +331,10 @@ func agentWorkingDir() string {
|
||||
return cwd
|
||||
}
|
||||
|
||||
func agentSystemPrompt(modelName string, modelSystem string, extra string) string {
|
||||
return agentSystemPromptWithWorkingDir(modelName, modelSystem, extra, agentWorkingDir())
|
||||
}
|
||||
|
||||
func agentSystemPromptWithWorkingDir(modelName string, modelSystem string, extra string, workingDir string) string {
|
||||
return agentSystemPromptAtWithWorkingDir(time.Now(), modelName, modelSystem, extra, workingDir)
|
||||
}
|
||||
|
||||
func agentSystemPromptAt(now time.Time, modelName string, modelSystem string, extra string) string {
|
||||
return agentSystemPromptAtWithWorkingDir(now, modelName, modelSystem, extra, agentWorkingDir())
|
||||
}
|
||||
|
||||
func agentSystemPromptAtWithWorkingDir(now time.Time, modelName string, modelSystem string, extra string, workingDir string) string {
|
||||
var parts []string
|
||||
parts = append(parts, agentDefaultSystemPromptWithWorkingDir(now, modelName, workingDir))
|
||||
@@ -355,10 +347,6 @@ func agentSystemPromptAtWithWorkingDir(now time.Time, modelName string, modelSys
|
||||
return strings.Join(parts, "\n\n")
|
||||
}
|
||||
|
||||
func agentDefaultSystemPrompt(now time.Time, modelName string) string {
|
||||
return agentDefaultSystemPromptWithWorkingDir(now, modelName, agentWorkingDir())
|
||||
}
|
||||
|
||||
func agentDefaultSystemPromptWithWorkingDir(now time.Time, modelName string, workingDir string) string {
|
||||
date := now.Format("Monday, January 2, 2006")
|
||||
shellName := "bash"
|
||||
|
||||
Reference in New Issue
Block a user