chat

package
v0.9.5-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

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