core

package
v1.4.492 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 46 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

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(ctx context.Context, 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
	Spotify            *spotify.Spotify
	TemplateExtensions *template.ExtensionManager
	Strategies         *strategy.StrategiesManager
	// contains filtered or unexported fields
}

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, 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