mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
reimplement agent,provider and add file history
This commit is contained in:
@@ -2,11 +2,12 @@ package prompt
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/kujtimiihoxha/termai/internal/llm/models"
|
||||
)
|
||||
|
||||
func TaskAgentSystemPrompt() string {
|
||||
func TaskPrompt(_ models.ModelProvider) string {
|
||||
agentPrompt := `You are an agent for termAI. Given the user's prompt, you should use the tools available to you to answer the user's question.
|
||||
|
||||
Notes:
|
||||
1. IMPORTANT: You should be concise, direct, and to the point, since your responses will be displayed on a command line interface. Answer the user's question directly, without elaboration, explanation, or details. One word answers are best. Avoid introductions, conclusions, and explanations. You MUST avoid text before/after your response, such as "The answer is <answer>.", "Here is the content of the file..." or "Based on the information provided, the answer is..." or "Here is what I will do next...".
|
||||
2. When relevant, share file names and code snippets relevant to the query
|
||||
|
||||
Reference in New Issue
Block a user