adviser

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adviser

type Adviser interface {
	RecommendTea(ctx context.Context, teas []common.Tea, weather common.Weather, feelings string) (string, error)
	RecommendTeaStream(ctx context.Context, teas []common.Tea, weather common.Weather, feelings string, res chan<- string) error
	ContextScores(ctx context.Context, teas []string, weather common.Weather, day time.Weekday) (map[string]int, error)
	LoadPrompt() error
}

func NewService

func NewService(client *openai.Client, log *logrus.Entry) Adviser

type Feelings

type Feelings string

func (Feelings) NotEmpty

func (f Feelings) NotEmpty() bool

type Template

type Template struct {
	Teas      []common.Tea
	Additives []common.Tea
	Weather   common.Weather
	TimeOfDay string
	Feelings  Feelings
}

Jump to

Keyboard shortcuts

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