monitor

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileFactory added in v0.6.0

func NewFileFactory(loc string) (runner.MonitorFactory, error)

NewFileFactory creates a new monitor factory that writes events to the location specified. The location can be one of three things: 1. a file descriptor/handle in the form "fd://2" 2. a file name 3. a named pipe in the form "\\.\pipe\my-pipe"

Types

type Console

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

func NewConsole

func NewConsole(opts ...Options) *Console

func (*Console) Start

func (c *Console) Start(_ context.Context, prg *types.Program, _ []string, input string) (runner.Monitor, error)

type Event added in v0.6.0

type Event struct {
	runner.Event `json:",inline"`
	Program      *types.Program `json:"program,omitempty"`
	Input        string         `json:"input,omitempty"`
	Output       string         `json:"output,omitempty"`
	Err          string         `json:"err,omitempty"`
}

type Options

type Options struct {
	DisplayProgress bool   `usage:"-"`
	DumpState       string `usage:"Dump the internal execution state to a file"`
	DebugMessages   bool   `usage:"Enable logging of chat completion calls"`
}

Jump to

Keyboard shortcuts

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