toolreference

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(gptClient *gptscript.GPTScript,
	dispatcher *dispatcher.Dispatcher,
	registryURLs []string,
	supportDocker bool,
) *Handler

func (*Handler) BackPopulateModels

func (h *Handler) BackPopulateModels(req router.Request, _ router.Response) error

func (*Handler) CleanupModelProvider

func (h *Handler) CleanupModelProvider(req router.Request, _ router.Response) error

func (*Handler) EnsureOpenAIEnvCredentialAndDefaults

func (h *Handler) EnsureOpenAIEnvCredentialAndDefaults(ctx context.Context, c client.Client) error

func (*Handler) PollRegistries added in v0.5.0

func (h *Handler) PollRegistries(ctx context.Context, c client.Client)

func (*Handler) Populate

func (h *Handler) Populate(req router.Request, resp router.Response) error

Jump to

Keyboard shortcuts

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