chat

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPath

func FromPath(path string) (models.Chat, error)

func IdFromPrompt

func IdFromPrompt(prompt string) string

func Save

func Save(saveAt string, chat models.Chat) error

Types

type ChatHandler

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

func New

func New(q models.ChatQuerier, confDir, args string, preMessages []models.Message, conf NotCyclicalImport) (*ChatHandler, error)

func (*ChatHandler) Query

func (q *ChatHandler) Query(ctx context.Context) error

type NotCyclicalImport added in v1.6.1

type NotCyclicalImport struct {
	UseTools   bool
	UseProfile string
	Model      string
}

Jump to

Keyboard shortcuts

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