Help us shape the future of Go! Take the 2026 Go Developer Survey

host

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

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

func NewHost

func NewHost() *Host

func (*Host) Close

func (h *Host) Close() error

func (*Host) Execute

func (h *Host) Execute(cmd *exec.Cmd) (*provider.Provider, error)

func (*Host) Handler added in v0.0.4

func (*Host) Tool added in v0.0.4

func (h *Host) Tool(name string) (openai.ChatCompletionToolParam, bool)

func (*Host) Tools

func (h *Host) Tools() ([]openai.ChatCompletionToolParam, error)

type HostedToolHandler

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

func (*HostedToolHandler) Execute

func (h *HostedToolHandler) Execute(ctx context.Context) (any, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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