mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat: init go structure & add agent structure
This commit is contained in:
@@ -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
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user