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

monitor

package
v0.9.15 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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileFactory

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) Pause

func (c *Console) Pause() func()

func (*Console) Start

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

type Event

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 {
	DumpState     string `usage:"Dump the internal execution state to a file"`
	DebugMessages bool   `usage:"Enable logging of chat completion calls"`
}

func Complete

func Complete(opts ...Options) (result Options)

Jump to

Keyboard shortcuts

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