Documentation
¶
Index ¶
- type OpenAIService
- func (_m *OpenAIService) GenerateConfig(ctx context.Context, format string, message string) (string, error)
- func (_m *OpenAIService) Ping(ctx context.Context) error
- func (_m *OpenAIService) RegenerateConfig(ctx context.Context, format string, oldConfig string, errMessage string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAIService ¶
OpenAIService is an autogenerated mock type for the OpenAIService type
func NewOpenAIService ¶
func NewOpenAIService(t interface {
mock.TestingT
Cleanup(func())
}) *OpenAIService
NewOpenAIService creates a new instance of OpenAIService. It also registers a testing interface on the mock and a cleanup function to assert the mock expectations. The first argument is typically a *testing.T value.
func (*OpenAIService) GenerateConfig ¶
func (_m *OpenAIService) GenerateConfig(ctx context.Context, format string, message string) (string, error)
GenerateConfig provides a mock function with given fields: ctx, format, message
func (*OpenAIService) Ping ¶
func (_m *OpenAIService) Ping(ctx context.Context) error
Ping provides a mock function with given fields: ctx
func (*OpenAIService) RegenerateConfig ¶
func (_m *OpenAIService) RegenerateConfig(ctx context.Context, format string, oldConfig string, errMessage string, contextMessages ...string) (string, error)
RegenerateConfig provides a mock function with given fields: ctx, format, oldConfig, errMessage, contextMessages
Click to show internal directories.
Click to hide internal directories.