friday

package
v0.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatWithEntry

func ChatWithEntry(ctx context.Context, entryId int64, isGroup bool, history []map[string]string, response chan map[string]string, realHistory chan []map[string]string) error

func IngestFile

func IngestFile(ctx context.Context, entryId, parentId int64, fileName, content string) (map[string]int, error)

func InitFriday

func InitFriday(cfg *config.Config) (err error)

func InitFridayFromConfig

func InitFridayFromConfig() (err error)

func Keywords

func Keywords(ctx context.Context, content string) ([]string, map[string]int, error)

func Question

func Question(ctx context.Context, q string) (answer string, usage map[string]int, err error)

func SummaryFile

func SummaryFile(ctx context.Context, fileName, content string) (string, map[string]int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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