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

chat

package
v0.9.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, prevState runner.ChatState, chatter Chatter, prg GetProgram, env []string, startInput, chatStateSaveFile string) error

Types

type Chatter

type Chatter interface {
	Chat(ctx context.Context, prevState runner.ChatState, prg types.Program, env []string, input string, opts runner.RunOptions) (resp runner.ChatResponse, err error)
}

type GetProgram

type GetProgram func() (types.Program, error)

type Prompter

type Prompter interface {
	Readline() (string, bool, error)
	Printf(format string, args ...interface{}) (int, error)
	SetPrompt(p string)
	Close() error
}

Jump to

Keyboard shortcuts

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