Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package model is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChatModel

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

MockChatModel is a mock of ChatModel interface.

func NewMockChatModel

func NewMockChatModel(ctrl *gomock.Controller) *MockChatModel

NewMockChatModel creates a new mock instance.

func (*MockChatModel) BindTools

func (m *MockChatModel) BindTools(tools []*schema.ToolInfo) error

BindTools mocks base method.

func (*MockChatModel) EXPECT

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

func (*MockChatModel) Generate

func (m *MockChatModel) Generate(ctx context.Context, input []*schema.Message, opts ...model.Option) (*schema.Message, error)

Generate mocks base method.

func (*MockChatModel) Stream

func (m *MockChatModel) Stream(ctx context.Context, input []*schema.Message, opts ...model.Option) (*schema.StreamReader[*schema.Message], error)

Stream mocks base method.

type MockChatModelMockRecorder

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

MockChatModelMockRecorder is the mock recorder for MockChatModel.

func (*MockChatModelMockRecorder) BindTools

func (mr *MockChatModelMockRecorder) BindTools(tools any) *gomock.Call

BindTools indicates an expected call of BindTools.

func (*MockChatModelMockRecorder) Generate

func (mr *MockChatModelMockRecorder) Generate(ctx, input any, opts ...any) *gomock.Call

Generate indicates an expected call of Generate.

func (*MockChatModelMockRecorder) Stream

func (mr *MockChatModelMockRecorder) Stream(ctx, input any, opts ...any) *gomock.Call

Stream indicates an expected call of Stream.

Jump to

Keyboard shortcuts

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