teams

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 1 Imported by: 0

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

type Adapter

type Adapter = core.Adapter

Re-export core types for convenience.

type MarshalError

type MarshalError = core.MarshalError

Re-export error types.

type OrchestrationConfig

type OrchestrationConfig = core.OrchestrationConfig

Orchestration

type ParseError

type ParseError = core.ParseError

Re-export error types.

type Process

type Process = core.Process

Re-export core types for convenience.

type ReadError

type ReadError = core.ReadError

Re-export error types.

type Status

type Status = core.Status

Re-export core types for convenience.

type Subtask

type Subtask = core.Subtask

Re-export core types for convenience.

type SubtaskResult

type SubtaskResult = core.SubtaskResult

Re-export core types for convenience.

type Task

type Task = core.Task

Re-export core types for convenience.

type TaskResult

type TaskResult = core.TaskResult

Re-export core types for convenience.

type Team

type Team = core.Team

Re-export core types for convenience.

type TeamResult

type TeamResult = core.TeamResult

Result types

type ValidationError

type ValidationError = core.ValidationError

Re-export error types.

type WriteError

type WriteError = core.WriteError

Re-export error types.

Directories

Path Synopsis
Package core provides canonical types for multi-agent team orchestration.
Package core provides canonical types for multi-agent team orchestration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL