chat

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 14 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) (*ChatHandler, error)

func (*ChatHandler) Query

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

Jump to

Keyboard shortcuts

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