Help us shape the future of Go! Take the 2026 Go Developer Survey

team

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentInfo

type AgentInfo struct {
	Name        string
	Description string
	Provider    string
	Model       string
	Commands    types.Commands
}

AgentInfo contains information about an agent

type Opt

type Opt func(*Team)

func WithAgents

func WithAgents(agents ...*agent.Agent) Opt

func WithPermissions

func WithPermissions(checker *permissions.Checker) Opt

type Team

type Team struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Opt) *Team

func (*Team) Agent

func (t *Team) Agent(name string) (*agent.Agent, error)

func (*Team) AgentNames

func (t *Team) AgentNames() []string

func (*Team) AgentsInfo

func (t *Team) AgentsInfo() []AgentInfo

AgentsInfo returns information about all agents in the team

func (*Team) DefaultAgent

func (t *Team) DefaultAgent() (*agent.Agent, error)

func (*Team) Permissions

func (t *Team) Permissions() *permissions.Checker

Permissions returns the permission checker for this team. Returns nil if no permissions are configured.

func (*Team) SetPermissions added in v1.37.0

func (t *Team) SetPermissions(checker *permissions.Checker)

SetPermissions replaces the team's permission checker. This is used to merge additional permission sources (e.g. user-level global permissions) into the team's checker after construction.

func (*Team) Size

func (t *Team) Size() int

func (*Team) StopToolSets

func (t *Team) StopToolSets(ctx context.Context) error

Jump to

Keyboard shortcuts

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