mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 10:14:22 +01:00
reimplement agent,provider and add file history
This commit is contained in:
19
internal/llm/prompt/prompt.go
Normal file
19
internal/llm/prompt/prompt.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package prompt
|
||||
|
||||
import (
|
||||
"github.com/kujtimiihoxha/termai/internal/config"
|
||||
"github.com/kujtimiihoxha/termai/internal/llm/models"
|
||||
)
|
||||
|
||||
func GetAgentPrompt(agentName config.AgentName, provider models.ModelProvider) string {
|
||||
switch agentName {
|
||||
case config.AgentCoder:
|
||||
return CoderPrompt(provider)
|
||||
case config.AgentTitle:
|
||||
return TitlePrompt(provider)
|
||||
case config.AgentTask:
|
||||
return TaskPrompt(provider)
|
||||
default:
|
||||
return "You are a helpful assistant"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user