mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-16 00:14:57 +00:00
feat: Introduce agent teams, agent linking, and advanced agent orchestration features.
This commit is contained in:
1 parent
67b19e4746
commit
dfd91556f8
113 files changed
+6785
-672
No files matched your search
@@ -28,8 +28,11 @@ const (
|
||||
UserFile = "USER.md"
|
||||
HeartbeatFile = "HEARTBEAT.md"
|
||||
BootstrapFile = "BOOTSTRAP.md"
|
||||
MemoryFile = "MEMORY.md"
|
||||
MemoryAltFile = "memory.md"
|
||||
DelegationFile = "DELEGATION.md"
|
||||
TeamFile = "TEAM.md"
|
||||
MemoryFile = "MEMORY.md"
|
||||
MemoryAltFile = "memory.md"
|
||||
MemoryJSONFile = "MEMORY.json"
|
||||
)
|
||||
|
||||
// standardFiles is the ordered list of bootstrap files to load.
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
func SeedToStore(ctx context.Context, agentStore store.AgentStore, agentID uuid.UUID, agentType string) ([]string, error) {
|
||||
// Open agents don't need agent-level context files —
|
||||
// all files are seeded per-user from embedded templates on first chat.
|
||||
if agentType == "open" {
|
||||
if agentType == store.AgentTypeOpen {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ var userSeedFilesPredefined = []string{
|
||||
// Returns the list of file names that were seeded.
|
||||
func SeedUserFiles(ctx context.Context, agentStore store.AgentStore, agentID uuid.UUID, userID, agentType string) ([]string, error) {
|
||||
files := userSeedFilesOpen
|
||||
if agentType == "predefined" {
|
||||
if agentType == store.AgentTypePredefined {
|
||||
files = userSeedFilesPredefined
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ func SeedUserFiles(ctx context.Context, agentStore store.AgentStore, agentID uui
|
||||
|
||||
// Predefined agents use a user-focused bootstrap template
|
||||
templateName := name
|
||||
if agentType == "predefined" && name == BootstrapFile {
|
||||
if agentType == store.AgentTypePredefined && name == BootstrapFile {
|
||||
templateName = "BOOTSTRAP_PREDEFINED.md"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user