team

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package team coordinates grouped background tasks for multi-agent workflows.

Package team stores named groups of Codog background tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	ConfigHome string
}

Store persists team definitions under a Codog config home.

func NewStore

func NewStore(configHome string) Store

NewStore returns a team store rooted at configHome.

func (Store) Create

func (s Store) Create(name string, tasks []TaskSpec, taskIDs []string) (Team, error)

Create validates and saves a new team.

func (Store) Get

func (s Store) Get(id string) (Team, error)

Get loads one team by ID.

func (Store) List

func (s Store) List() ([]Team, error)

List returns all saved teams, newest first.

func (Store) MarkDeleted

func (s Store) MarkDeleted(id string) (Team, error)

MarkDeleted marks a team as deleted without removing its record.

func (Store) Save

func (s Store) Save(team Team) error

Save writes a complete team record.

type TaskSpec

type TaskSpec struct {
	Prompt      string `json:"prompt"`
	Description string `json:"description,omitempty"`
	TaskID      string `json:"task_id,omitempty"`
}

TaskSpec describes one prompt assigned to a team member task.

type Team

type Team struct {
	ID        string     `json:"team_id"`
	Name      string     `json:"name"`
	Tasks     []TaskSpec `json:"tasks"`
	TaskIDs   []string   `json:"task_ids"`
	Status    string     `json:"status"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
}

Team records a named group of task prompts and their background task IDs.

Jump to

Keyboard shortcuts

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