loader

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 30 Imported by: 6

Documentation

Index

Constants

View Source
const CacheTimeout = time.Hour

Variables

View Source
var Remap = map[string]string{}

Functions

func AddVSC added in v0.1.5

func AddVSC(lookup VCSLookup)

func ContentFromURL added in v0.8.2

func ContentFromURL(url string, disableCache bool) (string, error)

func Program

func Program(ctx context.Context, name, subToolName string, opts ...Options) (types.Program, error)

func ProgramFromSource

func ProgramFromSource(ctx context.Context, content, subToolName string, opts ...Options) (types.Program, error)

Types

type MCPLoader added in v0.9.6

type MCPLoader interface {
	Load(ctx context.Context, tool types.Tool) ([]types.Tool, error)
	Close() error
}

type Options added in v0.6.0

type Options struct {
	Cache        *cache.Client
	Location     string
	DefaultModel string
	MCPLoader    MCPLoader
}

type VCSLookup added in v0.1.5

type VCSLookup func(context.Context, *cache.Client, string) (string, string, *types.Repo, bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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