mockllms

package
v1.0.178 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mockllms is a generated GoMock package.

Package mockllms is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInferenceModel) Infer added in v0.21.160

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) GetName added in v0.10.61

func (m *MockModel) GetName() string

GetName 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockModelLister) ListModels added in v1.0.173

func (m *MockModelLister) ListModels(ctx context.Context) ([]llms.ModelInfo, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL