wip(agent-builder): im not sure sure this is actually a good idea

This commit is contained in:
2025-04-18 14:34:29 +01:00
parent 1b1f957e01
commit 6b0fcf3005
9 changed files with 359 additions and 0 deletions

23
backend/builder/agents.go Normal file
View 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))
}