loader

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const CacheTimeout = time.Hour

Variables

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

Functions

func AddVSC

func AddVSC(lookup VCSLookup)

func ContentFromURL

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

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

type Options

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

type VCSLookup

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

Directories

Path Synopsis
Package forgejo registers a VCS loader that resolves GPTScript tool references hosted on git.basepeak.dev (a Forgejo instance).
Package forgejo registers a VCS loader that resolves GPTScript tool references hosted on git.basepeak.dev (a Forgejo instance).

Jump to

Keyboard shortcuts

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