feat: init go structure & add agent structure

This commit is contained in:
Acbox
2026-01-20 00:15:26 +08:00
parent 65e03f0b1e
commit 95aa4151cd
11 changed files with 312 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
package agent
import (
"context"
"log"
"github.com/firebase/genkit/go/ai"
"github.com/firebase/genkit/go/genkit"
"github.com/firebase/genkit/go/plugins/googlegenai"
"github.com/memohai/Memoh/model"
"github.com/memohai/Memoh/agent/prompts"
)
type AgentParams struct {
Model model.Model
}
type AgentInput struct {
content string
}
type AgentOperations struct {
Ask func(input AgentInput) (string, error)
}
func NewAgent(params AgentParams) AgentOperations {
return AgentOperations{
Ask: func(input AgentInput) (string, error) {
return "", nil
},
}
}