Documentation
¶
Overview ¶
Package teams provides multi-agent team orchestration definitions.
Teams coordinate multiple agents to accomplish complex workflows. Each team defines:
- Process type (sequential, parallel, hierarchical)
- Tasks with agent assignments
- Subtasks with Go/No-Go status tracking
- Task dependencies for execution ordering
Example usage:
package main
import (
"fmt"
"github.com/agentplexus/assistantkit/teams"
)
func main() {
// Read a team definition
team, err := teams.ReadTeamFile("release-team.yaml")
if err != nil {
panic(err)
}
// Validate the team
if err := team.Validate(); err != nil {
panic(err)
}
// Get tasks in dependency order
sorted, _ := team.TopologicalSort()
for _, task := range sorted {
fmt.Printf("Task: %s (agent: %s)\n", task.Name, task.Agent)
for _, st := range task.Subtasks {
fmt.Printf(" - %s: %s\n", st.Name, st.Type())
}
}
}
Index ¶
Constants ¶
View Source
const ( ProcessSequential = core.ProcessSequential ProcessParallel = core.ProcessParallel ProcessHierarchical = core.ProcessHierarchical )
Re-export process constants.
View Source
const ( StatusGo = core.StatusGo StatusNoGo = core.StatusNoGo StatusWarn = core.StatusWarn StatusSkip = core.StatusSkip StatusPending = core.StatusPending StatusRunning = core.StatusRunning )
Re-export status constants.
Variables ¶
View Source
var ( NewTeam = core.NewTeam NewTask = core.NewTask NewSubtask = core.NewSubtask GetAdapter = core.GetAdapter Register = core.Register AdapterNames = core.AdapterNames // File I/O ReadTeamFile = core.ReadTeamFile WriteTeamFile = core.WriteTeamFile WriteTeamJSON = core.WriteTeamJSON ReadTeamDir = core.ReadTeamDir ParseYAML = core.ParseYAML ParseJSON = core.ParseJSON // Status computation ComputeTaskStatus = core.ComputeTaskStatus ComputeTeamStatus = core.ComputeTeamStatus )
Re-export core functions.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.