Versions in this module Expand all Collapse all v0 v0.9.0 Apr 6, 2024 Changes in this version + type APIKeyStorage struct + func NewAPIKeyStorage(t interface{ ... }) *APIKeyStorage + func (_m *APIKeyStorage) ClearAPIKey() error + func (_m *APIKeyStorage) EXPECT() *APIKeyStorage_Expecter + func (_m *APIKeyStorage) GetAPIKey() (string, error) + func (_m *APIKeyStorage) SetAPIKey(apiKey string) error + type APIKeyStorage_ClearAPIKey_Call struct + func (_c *APIKeyStorage_ClearAPIKey_Call) Return(_a0 error) *APIKeyStorage_ClearAPIKey_Call + func (_c *APIKeyStorage_ClearAPIKey_Call) Run(run func()) *APIKeyStorage_ClearAPIKey_Call + func (_c *APIKeyStorage_ClearAPIKey_Call) RunAndReturn(run func() error) *APIKeyStorage_ClearAPIKey_Call + type APIKeyStorage_Expecter struct + func (_e *APIKeyStorage_Expecter) ClearAPIKey() *APIKeyStorage_ClearAPIKey_Call + func (_e *APIKeyStorage_Expecter) GetAPIKey() *APIKeyStorage_GetAPIKey_Call + func (_e *APIKeyStorage_Expecter) SetAPIKey(apiKey interface{}) *APIKeyStorage_SetAPIKey_Call + type APIKeyStorage_GetAPIKey_Call struct + func (_c *APIKeyStorage_GetAPIKey_Call) Return(_a0 string, _a1 error) *APIKeyStorage_GetAPIKey_Call + func (_c *APIKeyStorage_GetAPIKey_Call) Run(run func()) *APIKeyStorage_GetAPIKey_Call + func (_c *APIKeyStorage_GetAPIKey_Call) RunAndReturn(run func() (string, error)) *APIKeyStorage_GetAPIKey_Call + type APIKeyStorage_SetAPIKey_Call struct + func (_c *APIKeyStorage_SetAPIKey_Call) Return(_a0 error) *APIKeyStorage_SetAPIKey_Call + func (_c *APIKeyStorage_SetAPIKey_Call) Run(run func(apiKey string)) *APIKeyStorage_SetAPIKey_Call + func (_c *APIKeyStorage_SetAPIKey_Call) RunAndReturn(run func(string) error) *APIKeyStorage_SetAPIKey_Call + type ClientProvider struct + func NewClientProvider(t interface{ ... }) *ClientProvider + func (_m *ClientProvider) EXPECT() *ClientProvider_Expecter + func (_m *ClientProvider) NewClientFromConfig() (*openai.Client, error) + type ClientProvider_Expecter struct + func (_e *ClientProvider_Expecter) NewClientFromConfig() *ClientProvider_NewClientFromConfig_Call + type ClientProvider_NewClientFromConfig_Call struct + func (_c *ClientProvider_NewClientFromConfig_Call) Return(_a0 *openai.Client, _a1 error) *ClientProvider_NewClientFromConfig_Call + func (_c *ClientProvider_NewClientFromConfig_Call) Run(run func()) *ClientProvider_NewClientFromConfig_Call + func (_c *ClientProvider_NewClientFromConfig_Call) RunAndReturn(run func() (*openai.Client, error)) *ClientProvider_NewClientFromConfig_Call + type ConfigProvider struct + func NewConfigProvider(t interface{ ... }) *ConfigProvider + func (_m *ConfigProvider) ClearConfig() error + func (_m *ConfigProvider) EXPECT() *ConfigProvider_Expecter + func (_m *ConfigProvider) GetConfig() (*config.Config, error) + func (_m *ConfigProvider) GetConfigDir() (string, error) + func (_m *ConfigProvider) NewFromConfigFile() (openai.ClientConfig, error) + func (_m *ConfigProvider) SaveConfig(_a0 *config.Config) error + type ConfigProvider_ClearConfig_Call struct + func (_c *ConfigProvider_ClearConfig_Call) Return(_a0 error) *ConfigProvider_ClearConfig_Call + func (_c *ConfigProvider_ClearConfig_Call) Run(run func()) *ConfigProvider_ClearConfig_Call + func (_c *ConfigProvider_ClearConfig_Call) RunAndReturn(run func() error) *ConfigProvider_ClearConfig_Call + type ConfigProvider_Expecter struct + func (_e *ConfigProvider_Expecter) ClearConfig() *ConfigProvider_ClearConfig_Call + func (_e *ConfigProvider_Expecter) GetConfigDir() *ConfigProvider_GetConfigDir_Call + func (_e *ConfigProvider_Expecter) LoadConfig() *ConfigProvider_LoadConfig_Call + func (_e *ConfigProvider_Expecter) NewFromConfigFile() *ConfigProvider_NewFromConfigFile_Call + func (_e *ConfigProvider_Expecter) SaveConfig(_a0 interface{}) *ConfigProvider_SaveConfig_Call + type ConfigProvider_GetConfigDir_Call struct + func (_c *ConfigProvider_GetConfigDir_Call) Return(_a0 string, _a1 error) *ConfigProvider_GetConfigDir_Call + func (_c *ConfigProvider_GetConfigDir_Call) Run(run func()) *ConfigProvider_GetConfigDir_Call + func (_c *ConfigProvider_GetConfigDir_Call) RunAndReturn(run func() (string, error)) *ConfigProvider_GetConfigDir_Call + type ConfigProvider_LoadConfig_Call struct + func (_c *ConfigProvider_LoadConfig_Call) Return(_a0 *config.Config, _a1 error) *ConfigProvider_LoadConfig_Call + func (_c *ConfigProvider_LoadConfig_Call) Run(run func()) *ConfigProvider_LoadConfig_Call + func (_c *ConfigProvider_LoadConfig_Call) RunAndReturn(run func() (*config.Config, error)) *ConfigProvider_LoadConfig_Call + type ConfigProvider_NewFromConfigFile_Call struct + func (_c *ConfigProvider_NewFromConfigFile_Call) Return(_a0 openai.ClientConfig, _a1 error) *ConfigProvider_NewFromConfigFile_Call + func (_c *ConfigProvider_NewFromConfigFile_Call) Run(run func()) *ConfigProvider_NewFromConfigFile_Call + func (_c *ConfigProvider_NewFromConfigFile_Call) RunAndReturn(run func() (openai.ClientConfig, error)) *ConfigProvider_NewFromConfigFile_Call + type ConfigProvider_SaveConfig_Call struct + func (_c *ConfigProvider_SaveConfig_Call) Return(_a0 error) *ConfigProvider_SaveConfig_Call + func (_c *ConfigProvider_SaveConfig_Call) Run(run func(_a0 *config.Config)) *ConfigProvider_SaveConfig_Call + func (_c *ConfigProvider_SaveConfig_Call) RunAndReturn(run func(*config.Config) error) *ConfigProvider_SaveConfig_Call + type ContextRetriever struct + func NewContextRetriever(t interface{ ... }) *ContextRetriever + func (_m *ContextRetriever) EXPECT() *ContextRetriever_Expecter + func (_m *ContextRetriever) RetrieveContext() (string, error) + type ContextRetriever_Expecter struct + func (_e *ContextRetriever_Expecter) RetrieveContext() *ContextRetriever_RetrieveContext_Call + type ContextRetriever_RetrieveContext_Call struct + func (_c *ContextRetriever_RetrieveContext_Call) Return(_a0 string, _a1 error) *ContextRetriever_RetrieveContext_Call + func (_c *ContextRetriever_RetrieveContext_Call) Run(run func()) *ContextRetriever_RetrieveContext_Call + func (_c *ContextRetriever_RetrieveContext_Call) RunAndReturn(run func() (string, error)) *ContextRetriever_RetrieveContext_Call + type FileManager struct + func NewFileManager(t interface{ ... }) *FileManager + func (_m *FileManager) EXPECT() *FileManager_Expecter + func (_m *FileManager) Read(path string) ([]byte, error) + func (_m *FileManager) Write(path string, content []byte, perm fs.FileMode) error + type FileManager_Expecter struct + func (_e *FileManager_Expecter) Read(path interface{}) *FileManager_Read_Call + func (_e *FileManager_Expecter) Write(path interface{}, content interface{}, perm interface{}) *FileManager_Write_Call + type FileManager_Read_Call struct + func (_c *FileManager_Read_Call) Return(_a0 []byte, _a1 error) *FileManager_Read_Call + func (_c *FileManager_Read_Call) Run(run func(path string)) *FileManager_Read_Call + func (_c *FileManager_Read_Call) RunAndReturn(run func(string) ([]byte, error)) *FileManager_Read_Call + type FileManager_Write_Call struct + func (_c *FileManager_Write_Call) Return(_a0 error) *FileManager_Write_Call + func (_c *FileManager_Write_Call) Run(run func(path string, content []byte, perm fs.FileMode)) *FileManager_Write_Call + func (_c *FileManager_Write_Call) RunAndReturn(run func(string, []byte, fs.FileMode) error) *FileManager_Write_Call + type FileReader struct + func NewFileReader(t interface{ ... }) *FileReader + func (_m *FileReader) EXPECT() *FileReader_Expecter + func (_m *FileReader) Execute(path string) ([]byte, error) + type FileReader_Execute_Call struct + func (_c *FileReader_Execute_Call) Return(_a0 []byte, _a1 error) *FileReader_Execute_Call + func (_c *FileReader_Execute_Call) Run(run func(path string)) *FileReader_Execute_Call + func (_c *FileReader_Execute_Call) RunAndReturn(run func(string) ([]byte, error)) *FileReader_Execute_Call + type FileReader_Expecter struct + func (_e *FileReader_Expecter) Execute(path interface{}) *FileReader_Execute_Call + type Marshaller struct + func NewMarshaller(t interface{ ... }) *Marshaller + func (_m *Marshaller) EXPECT() *Marshaller_Expecter + func (_m *Marshaller) Marshal(in interface{}) ([]byte, error) + func (_m *Marshaller) Unmarshal(in []byte, out interface{}) error + type Marshaller_Expecter struct + func (_e *Marshaller_Expecter) Marshal(in interface{}) *Marshaller_Marshal_Call + func (_e *Marshaller_Expecter) Unmarshal(in interface{}, out interface{}) *Marshaller_Unmarshal_Call + type Marshaller_Marshal_Call struct + func (_c *Marshaller_Marshal_Call) Return(_a0 []byte, _a1 error) *Marshaller_Marshal_Call + func (_c *Marshaller_Marshal_Call) Run(run func(in interface{})) *Marshaller_Marshal_Call + func (_c *Marshaller_Marshal_Call) RunAndReturn(run func(interface{}) ([]byte, error)) *Marshaller_Marshal_Call + type Marshaller_Unmarshal_Call struct + func (_c *Marshaller_Unmarshal_Call) Return(_a0 error) *Marshaller_Unmarshal_Call + func (_c *Marshaller_Unmarshal_Call) Run(run func(in []byte, out interface{})) *Marshaller_Unmarshal_Call + func (_c *Marshaller_Unmarshal_Call) RunAndReturn(run func([]byte, interface{}) error) *Marshaller_Unmarshal_Call + type Parser struct + func NewParser(t interface{ ... }) *Parser + func (_m *Parser) EXPECT() *Parser_Expecter + func (_m *Parser) Execute(in []byte, out interface{}) error + type Parser_Execute_Call struct + func (_c *Parser_Execute_Call) Return(_a0 error) *Parser_Execute_Call + func (_c *Parser_Execute_Call) Run(run func(in []byte, out interface{})) *Parser_Execute_Call + func (_c *Parser_Execute_Call) RunAndReturn(run func([]byte, interface{}) error) *Parser_Execute_Call + type Parser_Expecter struct + func (_e *Parser_Expecter) Execute(in interface{}, out interface{}) *Parser_Execute_Call + type PromptResolver struct + func NewPromptResolver(t interface{ ... }) *PromptResolver + func (_m *PromptResolver) EXPECT() *PromptResolver_Expecter + func (_m *PromptResolver) ResolvePrompt() string + type PromptResolver_Expecter struct + func (_e *PromptResolver_Expecter) ResolvePrompt() *PromptResolver_ResolvePrompt_Call + type PromptResolver_ResolvePrompt_Call struct + func (_c *PromptResolver_ResolvePrompt_Call) Return(_a0 string) *PromptResolver_ResolvePrompt_Call + func (_c *PromptResolver_ResolvePrompt_Call) Run(run func()) *PromptResolver_ResolvePrompt_Call + func (_c *PromptResolver_ResolvePrompt_Call) RunAndReturn(run func() string) *PromptResolver_ResolvePrompt_Call + type SystemMessageGenerator struct + func NewSystemMessageGenerator(t interface{ ... }) *SystemMessageGenerator + func (_m *SystemMessageGenerator) EXPECT() *SystemMessageGenerator_Expecter + func (_m *SystemMessageGenerator) GenerateSystemMessage() (string, error) + type SystemMessageGenerator_Expecter struct + func (_e *SystemMessageGenerator_Expecter) GenerateSystemMessage() *SystemMessageGenerator_GenerateSystemMessage_Call + type SystemMessageGenerator_GenerateSystemMessage_Call struct + func (_c *SystemMessageGenerator_GenerateSystemMessage_Call) Return(_a0 string, _a1 error) *SystemMessageGenerator_GenerateSystemMessage_Call + func (_c *SystemMessageGenerator_GenerateSystemMessage_Call) Run(run func()) *SystemMessageGenerator_GenerateSystemMessage_Call + func (_c *SystemMessageGenerator_GenerateSystemMessage_Call) RunAndReturn(run func() (string, error)) *SystemMessageGenerator_GenerateSystemMessage_Call + type TemplateLocator struct + func NewTemplateLocator(t interface{ ... }) *TemplateLocator + func (_m *TemplateLocator) EXPECT() *TemplateLocator_Expecter + func (_m *TemplateLocator) GetTemplate(name string) (*templates.Template, error) + func (_m *TemplateLocator) ListTemplates() ([]templates.Template, error) + type TemplateLocator_Expecter struct + func (_e *TemplateLocator_Expecter) GetTemplate(name interface{}) *TemplateLocator_GetTemplate_Call + func (_e *TemplateLocator_Expecter) ListTemplates() *TemplateLocator_ListTemplates_Call + type TemplateLocator_GetTemplate_Call struct + func (_c *TemplateLocator_GetTemplate_Call) Return(_a0 *templates.Template, _a1 error) *TemplateLocator_GetTemplate_Call + func (_c *TemplateLocator_GetTemplate_Call) Run(run func(name string)) *TemplateLocator_GetTemplate_Call + func (_c *TemplateLocator_GetTemplate_Call) RunAndReturn(run func(string) (*templates.Template, error)) *TemplateLocator_GetTemplate_Call + type TemplateLocator_ListTemplates_Call struct + func (_c *TemplateLocator_ListTemplates_Call) Return(_a0 []templates.Template, _a1 error) *TemplateLocator_ListTemplates_Call + func (_c *TemplateLocator_ListTemplates_Call) Run(run func()) *TemplateLocator_ListTemplates_Call + func (_c *TemplateLocator_ListTemplates_Call) RunAndReturn(run func() ([]templates.Template, error)) *TemplateLocator_ListTemplates_Call + type UsernameRetriever struct + func NewUsernameRetriever(t interface{ ... }) *UsernameRetriever + func (_m *UsernameRetriever) EXPECT() *UsernameRetriever_Expecter + func (_m *UsernameRetriever) Execute() (*user.User, error) + type UsernameRetriever_Execute_Call struct + func (_c *UsernameRetriever_Execute_Call) Return(_a0 *user.User, _a1 error) *UsernameRetriever_Execute_Call + func (_c *UsernameRetriever_Execute_Call) Run(run func()) *UsernameRetriever_Execute_Call + func (_c *UsernameRetriever_Execute_Call) RunAndReturn(run func() (*user.User, error)) *UsernameRetriever_Execute_Call + type UsernameRetriever_Expecter struct + func (_e *UsernameRetriever_Expecter) Execute() *UsernameRetriever_Execute_Call + type Validator struct + func NewValidator(t interface{ ... }) *Validator + func (_m *Validator) EXPECT() *Validator_Expecter + func (_m *Validator) Execute(cfg *config.Config) error + type Validator_Execute_Call struct + func (_c *Validator_Execute_Call) Return(_a0 error) *Validator_Execute_Call + func (_c *Validator_Execute_Call) Run(run func(cfg *config.Config)) *Validator_Execute_Call + func (_c *Validator_Execute_Call) RunAndReturn(run func(*config.Config) error) *Validator_Execute_Call + type Validator_Expecter struct + func (_e *Validator_Expecter) Execute(cfg interface{}) *Validator_Execute_Call