Documentation
¶
Index ¶
- Constants
- type Chatter
- type PluginRegistry
- func (o *PluginRegistry) Configure() (err error)
- func (o *PluginRegistry) ConfigureVendors()
- func (o *PluginRegistry) GetChatter(model string, modelContextLength int, strategy string, stream bool, ...) (ret *Chatter, err error)
- func (o *PluginRegistry) GetModels() (ret *ai.VendorsModels, err error)
- func (o *PluginRegistry) ListVendors(out io.Writer) error
- func (o *PluginRegistry) SaveEnvFile() (err error)
- func (o *PluginRegistry) Setup() (err error)
- func (o *PluginRegistry) SetupVendor(vendorName string) (err error)
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 ¶
func (*Chatter) BuildSession ¶ added in v1.4.47
func (*Chatter) Send ¶
func (o *Chatter) Send(request *common.ChatRequest, opts *common.ChatOptions) (session *fsdb.Session, err error)
Send processes a chat request and applies any file changes if using the create_coding_feature pattern
type PluginRegistry ¶ added in v1.4.67
type PluginRegistry struct {
Db *fsdb.Db
VendorManager *ai.VendorsManager
VendorsAll *ai.VendorsManager
Defaults *tools.Defaults
PatternsLoader *tools.PatternsLoader
YouTube *youtube.YouTube
Language *lang.Language
Jina *jina.Client
TemplateExtensions *template.ExtensionManager
Strategies *strategy.StrategiesManager
}
func NewPluginRegistry ¶ added in v1.4.67
func NewPluginRegistry(db *fsdb.Db) (ret *PluginRegistry, err error)
func (*PluginRegistry) Configure ¶ added in v1.4.67
func (o *PluginRegistry) Configure() (err error)
Configure buildClient VendorsController based on the environment variables
func (*PluginRegistry) ConfigureVendors ¶ added in v1.4.97
func (o *PluginRegistry) ConfigureVendors()
func (*PluginRegistry) GetChatter ¶ added in v1.4.67
func (*PluginRegistry) GetModels ¶ added in v1.4.97
func (o *PluginRegistry) GetModels() (ret *ai.VendorsModels, err error)
func (*PluginRegistry) ListVendors ¶ added in v1.4.178
func (o *PluginRegistry) ListVendors(out io.Writer) error
func (*PluginRegistry) SaveEnvFile ¶ added in v1.4.67
func (o *PluginRegistry) SaveEnvFile() (err error)
func (*PluginRegistry) Setup ¶ added in v1.4.67
func (o *PluginRegistry) Setup() (err error)
func (*PluginRegistry) SetupVendor ¶ added in v1.4.67
func (o *PluginRegistry) SetupVendor(vendorName string) (err error)
Click to show internal directories.
Click to hide internal directories.