Help us shape the future of Go! Take the 2026 Go Developer Survey

core

package
v1.4.441 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 44 Imported by: 0

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(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
}

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