agent

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Key = os.Getenv("OPENAI_API_KEY")

	Client *openai.Client
)
View Source
var (
	DefaultPersona = `Listen. Be patient. Respond kindly. Limit responses to 1024 characters or less.`

	MaxTokens = 1024
)

Functions

func Run added in v0.12.0

func Run()

Types

type AI added in v0.12.0

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

func New added in v0.12.0

func New(persona string) (*AI, error)

func (*AI) Listen added in v0.12.0

func (ai *AI) Listen() error

type Context added in v0.12.0

type Context struct {
	Prompt string
	Reply  string
}

Jump to

Keyboard shortcuts

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