mockllms

package
v0.7.42 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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 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) Call

func (m *MockModel) Call(ctx context.Context, prompt string, options ...llms.CallOption) (string, error)

Call mocks base method.

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.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)

GenerateContent mocks base method.

type MockModelMockRecorder

type MockModelMockRecorder struct {
	// contains filtered or unexported fields
}

MockModelMockRecorder is the mock recorder for MockModel.

func (*MockModelMockRecorder) Call

func (mr *MockModelMockRecorder) Call(ctx, prompt any, options ...any) *gomock.Call

Call indicates an expected call of Call.

func (*MockModelMockRecorder) GenerateContent

func (mr *MockModelMockRecorder) GenerateContent(ctx, messages any, options ...any) *gomock.Call

GenerateContent indicates an expected call of GenerateContent.

Jump to

Keyboard shortcuts

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