Documentation
¶
Overview ¶
Package mockllms is a generated GoMock package.
Package mockllms is a generated GoMock package.
Index ¶
- type MockBatcher
- func (m *MockBatcher) CancelBatch(ctx context.Context, batchID string) (*llms.BatchHandle, error)
- func (m *MockBatcher) EXPECT() *MockBatcherMockRecorder
- func (m *MockBatcher) FetchBatchResults(ctx context.Context, batchID string) ([]llms.BatchResult, error)
- func (m *MockBatcher) GetBatch(ctx context.Context, batchID string) (*llms.BatchHandle, error)
- func (m *MockBatcher) SubmitBatch(ctx context.Context, requests []llms.BatchRequest, ...) (*llms.BatchHandle, error)
- type MockBatcherMockRecorder
- func (mr *MockBatcherMockRecorder) CancelBatch(ctx, batchID any) *gomock.Call
- func (mr *MockBatcherMockRecorder) FetchBatchResults(ctx, batchID any) *gomock.Call
- func (mr *MockBatcherMockRecorder) GetBatch(ctx, batchID any) *gomock.Call
- func (mr *MockBatcherMockRecorder) SubmitBatch(ctx, requests any, options ...any) *gomock.Call
- type MockInferenceModel
- type MockInferenceModelMockRecorder
- type MockModel
- type MockModelLister
- type MockModelListerMockRecorder
- type MockModelMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBatcher ¶ added in v0.17.130
type MockBatcher struct {
// contains filtered or unexported fields
}
MockBatcher is a mock of Batcher interface.
func NewMockBatcher ¶ added in v0.17.130
func NewMockBatcher(ctrl *gomock.Controller) *MockBatcher
NewMockBatcher creates a new mock instance.
func (*MockBatcher) CancelBatch ¶ added in v0.17.130
func (m *MockBatcher) CancelBatch(ctx context.Context, batchID string) (*llms.BatchHandle, error)
CancelBatch mocks base method.
func (*MockBatcher) EXPECT ¶ added in v0.17.130
func (m *MockBatcher) EXPECT() *MockBatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBatcher) FetchBatchResults ¶ added in v0.17.130
func (m *MockBatcher) FetchBatchResults(ctx context.Context, batchID string) ([]llms.BatchResult, error)
FetchBatchResults mocks base method.
func (*MockBatcher) GetBatch ¶ added in v0.17.130
func (m *MockBatcher) GetBatch(ctx context.Context, batchID string) (*llms.BatchHandle, error)
GetBatch mocks base method.
func (*MockBatcher) SubmitBatch ¶ added in v0.17.130
func (m *MockBatcher) SubmitBatch(ctx context.Context, requests []llms.BatchRequest, options ...llms.BatchSubmitOption) (*llms.BatchHandle, error)
SubmitBatch mocks base method.
type MockBatcherMockRecorder ¶ added in v0.17.130
type MockBatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockBatcherMockRecorder is the mock recorder for MockBatcher.
func (*MockBatcherMockRecorder) CancelBatch ¶ added in v0.17.130
func (mr *MockBatcherMockRecorder) CancelBatch(ctx, batchID any) *gomock.Call
CancelBatch indicates an expected call of CancelBatch.
func (*MockBatcherMockRecorder) FetchBatchResults ¶ added in v0.17.130
func (mr *MockBatcherMockRecorder) FetchBatchResults(ctx, batchID any) *gomock.Call
FetchBatchResults indicates an expected call of FetchBatchResults.
func (*MockBatcherMockRecorder) GetBatch ¶ added in v0.17.130
func (mr *MockBatcherMockRecorder) GetBatch(ctx, batchID any) *gomock.Call
GetBatch indicates an expected call of GetBatch.
func (*MockBatcherMockRecorder) SubmitBatch ¶ added in v0.17.130
func (mr *MockBatcherMockRecorder) SubmitBatch(ctx, requests any, options ...any) *gomock.Call
SubmitBatch indicates an expected call of SubmitBatch.
type MockInferenceModel ¶ added in v0.21.160
type MockInferenceModel struct {
// contains filtered or unexported fields
}
MockInferenceModel is a mock of InferenceModel interface.
func NewMockInferenceModel ¶ added in v0.21.160
func NewMockInferenceModel(ctrl *gomock.Controller) *MockInferenceModel
NewMockInferenceModel creates a new mock instance.
func (*MockInferenceModel) EXPECT ¶ added in v0.21.160
func (m *MockInferenceModel) EXPECT() *MockInferenceModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInferenceModel) Infer ¶ added in v0.21.160
func (m *MockInferenceModel) Infer(arg0 context.Context, arg1 llms.InferenceRequest) (*llms.InferenceResponse, error)
Infer mocks base method.
func (*MockInferenceModel) ValidateInference ¶ added in v0.21.160
func (m *MockInferenceModel) ValidateInference(arg0 llms.InferenceRequest) error
ValidateInference mocks base method.
type MockInferenceModelMockRecorder ¶ added in v0.21.160
type MockInferenceModelMockRecorder struct {
// contains filtered or unexported fields
}
MockInferenceModelMockRecorder is the mock recorder for MockInferenceModel.
func (*MockInferenceModelMockRecorder) Infer ¶ added in v0.21.160
func (mr *MockInferenceModelMockRecorder) Infer(arg0, arg1 any) *gomock.Call
Infer indicates an expected call of Infer.
func (*MockInferenceModelMockRecorder) ValidateInference ¶ added in v0.21.160
func (mr *MockInferenceModelMockRecorder) ValidateInference(arg0 any) *gomock.Call
ValidateInference indicates an expected call of ValidateInference.
type MockModel ¶
type MockModel struct {
// contains filtered or unexported fields
}
MockModel is a mock of Model interface.
func NewMockModel ¶
func NewMockModel(ctrl *gomock.Controller) *MockModel
NewMockModel creates a new mock instance.
func (*MockModel) EXPECT ¶
func (m *MockModel) EXPECT() *MockModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModel) GenerateContent ¶
func (m *MockModel) GenerateContent(ctx context.Context, messages []llms.Message, options ...llms.CallOption) (*llms.ContentResponse, error)
GenerateContent mocks base method.
func (*MockModel) GetProviderType ¶ added in v0.10.54
func (m *MockModel) GetProviderType() llms.ProviderType
GetProviderType mocks base method.
type MockModelLister ¶ added in v1.0.173
type MockModelLister struct {
// contains filtered or unexported fields
}
MockModelLister is a mock of ModelLister interface.
func NewMockModelLister ¶ added in v1.0.173
func NewMockModelLister(ctrl *gomock.Controller) *MockModelLister
NewMockModelLister creates a new mock instance.
func (*MockModelLister) EXPECT ¶ added in v1.0.173
func (m *MockModelLister) EXPECT() *MockModelListerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModelLister) ListModels ¶ added in v1.0.173
ListModels mocks base method.
type MockModelListerMockRecorder ¶ added in v1.0.173
type MockModelListerMockRecorder struct {
// contains filtered or unexported fields
}
MockModelListerMockRecorder is the mock recorder for MockModelLister.
func (*MockModelListerMockRecorder) ListModels ¶ added in v1.0.173
func (mr *MockModelListerMockRecorder) ListModels(ctx any) *gomock.Call
ListModels indicates an expected call of ListModels.
type MockModelMockRecorder ¶
type MockModelMockRecorder struct {
// contains filtered or unexported fields
}
MockModelMockRecorder is the mock recorder for MockModel.
func (*MockModelMockRecorder) GenerateContent ¶
func (mr *MockModelMockRecorder) GenerateContent(ctx, messages any, options ...any) *gomock.Call
GenerateContent indicates an expected call of GenerateContent.
func (*MockModelMockRecorder) GetName ¶ added in v0.10.61
func (mr *MockModelMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockModelMockRecorder) GetProviderType ¶ added in v0.10.54
func (mr *MockModelMockRecorder) GetProviderType() *gomock.Call
GetProviderType indicates an expected call of GetProviderType.