team

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentInfo added in v1.16.0

type AgentInfo struct {
	Name        string
	Description string
	Provider    string
	Model       string
}

AgentInfo contains information about an agent

type Opt

type Opt func(*Team)

func WithAgents

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

func WithRAGManagers added in v1.9.16

func WithRAGManagers(managers map[string]*rag.Manager) 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 added in v1.16.0

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

AgentsInfo returns information about all agents in the team

func (*Team) InitializeRAG added in v1.9.16

func (t *Team) InitializeRAG(ctx context.Context)

InitializeRAG initializes all RAG managers in the background

func (*Team) Model added in v1.10.5

func (t *Team) Model() provider.Provider

func (*Team) RAGManagers added in v1.9.16

func (t *Team) RAGManagers() map[string]*rag.Manager

RAGManagers returns the RAG managers for this team

func (*Team) Size

func (t *Team) Size() int

func (*Team) StartRAGFileWatchers added in v1.9.16

func (t *Team) StartRAGFileWatchers(ctx context.Context)

StartRAGFileWatchers starts file watchers for all RAG managers

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