wip(agent-builder): im not sure sure this is actually a good idea
This commit is contained in:
23
backend/builder/agents.go
Normal file
23
backend/builder/agents.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package builder
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
"screenmark/screenmark/.gen/haystack/agents/model"
|
||||
. "screenmark/screenmark/.gen/haystack/agents/table"
|
||||
|
||||
. "github.com/go-jet/jet/v2/postgres"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type AgentModel struct {
|
||||
dbPool *sql.DB
|
||||
}
|
||||
|
||||
func (m AgentModel) SaveTool(ctx context.Context, agentId uuid.UUID, tool string) (model.Tools, error) {
|
||||
insertToolStmt := Tools.
|
||||
INSERT(Tools.Tool).
|
||||
VALUES(Json(tool))
|
||||
}
|
||||
Reference in New Issue
Block a user