teamloader

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, agentSource config.Source, runConfig *config.RuntimeConfig, opts ...Opt) (*team.Team, error)

Load loads an agent team from the given source

func WithInstructions added in v1.6.3

func WithInstructions(inner tools.ToolSet, instruction string) tools.ToolSet

func WithToolsExcludeFilter added in v1.9.24

func WithToolsExcludeFilter(inner tools.ToolSet, toolNames ...string) tools.ToolSet

WithToolsExcludeFilter creates a toolset that excludes the specified tools. If no tool names are provided, all tools are included.

func WithToolsFilter added in v1.8.0

func WithToolsFilter(inner tools.ToolSet, toolNames ...string) tools.ToolSet

WithToolsFilter creates a toolset that only includes the specified tools. If no tool names are provided, all tools are included.

func WithToon added in v1.9.2

func WithToon(inner tools.ToolSet, toon string) tools.ToolSet

Types

type Opt added in v1.8.0

type Opt func(*loadOptions) error

func WithModelOverrides added in v1.8.0

func WithModelOverrides(overrides []string) Opt

func WithToolsetRegistry added in v1.9.0

func WithToolsetRegistry(registry *ToolsetRegistry) Opt

WithToolsetRegistry allows using a custom toolset registry instead of the default

type ToolsetCreator added in v1.9.0

type ToolsetCreator func(ctx context.Context, toolset latest.Toolset, parentDir string, runConfig *config.RuntimeConfig) (tools.ToolSet, error)

ToolsetCreator is a function that creates a toolset based on the provided configuration

type ToolsetRegistry added in v1.9.0

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

ToolsetRegistry manages the registration of toolset creators by type

func NewDefaultToolsetRegistry added in v1.9.0

func NewDefaultToolsetRegistry() *ToolsetRegistry

func NewToolsetRegistry added in v1.9.0

func NewToolsetRegistry() *ToolsetRegistry

NewToolsetRegistry creates a new empty toolset registry

func (*ToolsetRegistry) CreateTool added in v1.9.0

func (r *ToolsetRegistry) CreateTool(ctx context.Context, toolset latest.Toolset, parentDir string, runConfig *config.RuntimeConfig) (tools.ToolSet, error)

CreateTool creates a toolset using the registered creator for the given type

func (*ToolsetRegistry) Get added in v1.9.0

func (r *ToolsetRegistry) Get(toolsetType string) (ToolsetCreator, bool)

Get retrieves a toolset creator for the given type

func (*ToolsetRegistry) Register added in v1.9.0

func (r *ToolsetRegistry) Register(toolsetType string, creator ToolsetCreator)

Register adds a new toolset creator for the given type

Jump to

Keyboard shortcuts

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