feat: Introduce agent teams, agent linking, and advanced agent orchestration features.

This commit is contained in:
viettranx committed 2026-02-25 23:24:52 +07:00
1 parent 67b19e4746
commit dfd91556f8
113 files changed
+6785 -672

No files matched your search

+5 -2
View File
@@ -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.
+3 -3
View File
@@ -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"
}