team

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(configDir, name string) error

Delete removes a team

func FormatTeamList

func FormatTeamList(teams []Team) string

FormatTeamList formats teams for display

func SendMsg

func SendMsg(configDir, teamName, from, to, text string) error

SendMessage sends a message to an agent's inbox

func TeamsDir

func TeamsDir(configDir string) string

TeamsDir returns the teams directory

Types

type Member

type Member struct {
	Name      string `json:"name"`
	AgentType string `json:"agentType"`
	Model     string `json:"model,omitempty"`
	IsActive  bool   `json:"isActive"`
}

Member is an agent in a team

type Message

type Message struct {
	From      string    `json:"from"`
	To        string    `json:"to"`
	Text      string    `json:"text"`
	Timestamp time.Time `json:"timestamp"`
	Read      bool      `json:"read"`
}

Message is an inter-agent message

func ReadInbox

func ReadInbox(configDir, teamName, agentName string) []Message

ReadInbox reads unread messages for an agent

type Team

type Team struct {
	Name        string    `json:"name"`
	Description string    `json:"description"`
	LeadAgent   string    `json:"leadAgent"`
	Members     []Member  `json:"members"`
	CreatedAt   time.Time `json:"createdAt"`
	// contains filtered or unexported fields
}

Team represents a group of cooperating agents

func Create

func Create(configDir, name, description string) (*Team, error)

Create creates a new team

func ListTeams

func ListTeams(configDir string) []Team

ListTeams lists all teams

func Load

func Load(configDir, name string) (*Team, error)

Load loads a team by name

func (*Team) AddMember

func (t *Team) AddMember(name, agentType, model string)

AddMember adds a member to the team

func (*Team) Save

func (t *Team) Save() error

Save persists team config

Jump to

Keyboard shortcuts

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