ai

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIProvider

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

type IAI

type IAI interface {
	Configure(logger logger.ILogger) error
	ConfigureKnowledge(logger logger.ILogger) error
	ConfigureAssistant(logger logger.ILogger, enableExecutors bool) error
	Purge() error
	UploadFiles(path []string) error
	GetName() string
	CreateThread() (*string, error)
	Analyze(text, language string, threadID string, executorConfig common.Executor) (string, error)
}

func NewAI

func NewAI(backend string, opts ...Option) (IAI, error)

type Option

type Option func(*AIProvider)

func WithPassword

func WithPassword(password string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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