core

package
v1.4.316 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const NoSessionPatternUserMessages = "no session, pattern or user messages provided"

Variables

This section is empty.

Functions

This section is empty.

Types

type Chatter

type Chatter struct {
	Stream bool
	DryRun bool
	// contains filtered or unexported fields
}

func (*Chatter) BuildSession

func (o *Chatter) BuildSession(request *domain.ChatRequest, raw bool) (session *fsdb.Session, err error)

func (*Chatter) Send

func (o *Chatter) Send(request *domain.ChatRequest, opts *domain.ChatOptions) (session *fsdb.Session, err error)

Send processes a chat request and applies file changes for create_coding_feature pattern

type PluginRegistry

type PluginRegistry struct {
	Db *fsdb.Db

	VendorManager      *ai.VendorsManager
	VendorsAll         *ai.VendorsManager
	Defaults           *tools.Defaults
	PatternsLoader     *tools.PatternsLoader
	CustomPatterns     *custom_patterns.CustomPatterns
	YouTube            *youtube.YouTube
	Language           *lang.Language
	Jina               *jina.Client
	TemplateExtensions *template.ExtensionManager
	Strategies         *strategy.StrategiesManager
}

func NewPluginRegistry

func NewPluginRegistry(db *fsdb.Db) (ret *PluginRegistry, err error)

func (*PluginRegistry) Configure

func (o *PluginRegistry) Configure() (err error)

Configure buildClient VendorsController based on the environment variables

func (*PluginRegistry) ConfigureVendors

func (o *PluginRegistry) ConfigureVendors()

func (*PluginRegistry) GetChatter

func (o *PluginRegistry) GetChatter(model string, modelContextLength int, vendorName string, strategy string, stream bool, dryRun bool) (ret *Chatter, err error)

func (*PluginRegistry) GetModels

func (o *PluginRegistry) GetModels() (ret *ai.VendorsModels, err error)

func (*PluginRegistry) ListVendors

func (o *PluginRegistry) ListVendors(out io.Writer) error

func (*PluginRegistry) SaveEnvFile

func (o *PluginRegistry) SaveEnvFile() (err error)

func (*PluginRegistry) Setup

func (o *PluginRegistry) Setup() (err error)

func (*PluginRegistry) SetupVendor

func (o *PluginRegistry) SetupVendor(vendorName string) (err error)

Jump to

Keyboard shortcuts

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