brains

package
v0.0.0-...-129d17c Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAllQuietly

func CloseAllQuietly(cs ...io.Closer)

func NewHandler

func NewHandler(a Brain) http.Handler

func NewTextsynth

func NewTextsynth(authSecret, engineName, systemPrompt string) *textsynth

Types

type Brain

type Brain interface {
	RespondTo(ctx context.Context, ask string) (ans string, err error)
	Think(ctx context.Context, in string) (out fmt.Stringer, err error)
	fmt.Stringer
}

Jump to

Keyboard shortcuts

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