mockassitants

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mockassitants is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCallback

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

MockCallback is a mock of Callback interface.

func NewMockCallback

func NewMockCallback(ctrl *gomock.Controller) *MockCallback

NewMockCallback creates a new mock instance.

func (*MockCallback) EXPECT

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

func (*MockCallback) OnAssistantEnd

func (m *MockCallback) OnAssistantEnd(ctx context.Context, agent assistants.IAssistant, input string, resp *llms.ContentResponse)

OnAssistantEnd mocks base method.

func (*MockCallback) OnAssistantError

func (m *MockCallback) OnAssistantError(cyx context.Context, agent assistants.IAssistant, input string, err error)

OnAssistantError mocks base method.

func (*MockCallback) OnAssistantStart

func (m *MockCallback) OnAssistantStart(ctx context.Context, agent assistants.IAssistant, input string)

OnAssistantStart mocks base method.

func (*MockCallback) OnToolEnd

func (m *MockCallback) OnToolEnd(arg0 context.Context, arg1 tools.ITool, arg2, arg3 string)

OnToolEnd mocks base method.

func (*MockCallback) OnToolError

func (m *MockCallback) OnToolError(arg0 context.Context, arg1 tools.ITool, arg2 string, arg3 error)

OnToolError mocks base method.

func (*MockCallback) OnToolStart

func (m *MockCallback) OnToolStart(arg0 context.Context, arg1 tools.ITool, arg2 string)

OnToolStart mocks base method.

type MockCallbackMockRecorder

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

MockCallbackMockRecorder is the mock recorder for MockCallback.

func (*MockCallbackMockRecorder) OnAssistantEnd

func (mr *MockCallbackMockRecorder) OnAssistantEnd(ctx, agent, input, resp any) *gomock.Call

OnAssistantEnd indicates an expected call of OnAssistantEnd.

func (*MockCallbackMockRecorder) OnAssistantError

func (mr *MockCallbackMockRecorder) OnAssistantError(cyx, agent, input, err any) *gomock.Call

OnAssistantError indicates an expected call of OnAssistantError.

func (*MockCallbackMockRecorder) OnAssistantStart

func (mr *MockCallbackMockRecorder) OnAssistantStart(ctx, agent, input any) *gomock.Call

OnAssistantStart indicates an expected call of OnAssistantStart.

func (*MockCallbackMockRecorder) OnToolEnd

func (mr *MockCallbackMockRecorder) OnToolEnd(arg0, arg1, arg2, arg3 any) *gomock.Call

OnToolEnd indicates an expected call of OnToolEnd.

func (*MockCallbackMockRecorder) OnToolError

func (mr *MockCallbackMockRecorder) OnToolError(arg0, arg1, arg2, arg3 any) *gomock.Call

OnToolError indicates an expected call of OnToolError.

func (*MockCallbackMockRecorder) OnToolStart

func (mr *MockCallbackMockRecorder) OnToolStart(arg0, arg1, arg2 any) *gomock.Call

OnToolStart indicates an expected call of OnToolStart.

type MockHasCallback

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

MockHasCallback is a mock of HasCallback interface.

func NewMockHasCallback

func NewMockHasCallback(ctrl *gomock.Controller) *MockHasCallback

NewMockHasCallback creates a new mock instance.

func (*MockHasCallback) EXPECT

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

func (*MockHasCallback) GetCallback

func (m *MockHasCallback) GetCallback() assistants.Callback

GetCallback mocks base method.

type MockHasCallbackMockRecorder

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

MockHasCallbackMockRecorder is the mock recorder for MockHasCallback.

func (*MockHasCallbackMockRecorder) GetCallback

func (mr *MockHasCallbackMockRecorder) GetCallback() *gomock.Call

GetCallback indicates an expected call of GetCallback.

type MockIAssistant

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

MockIAssistant is a mock of IAssistant interface.

func NewMockIAssistant

func NewMockIAssistant(ctrl *gomock.Controller) *MockIAssistant

NewMockIAssistant creates a new mock instance.

func (*MockIAssistant) Call

func (m *MockIAssistant) Call(ctx context.Context, input string, promptInputs map[string]any) (*llms.ContentResponse, error)

Call mocks base method.

func (*MockIAssistant) Description

func (m *MockIAssistant) Description() string

Description mocks base method.

func (*MockIAssistant) EXPECT

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

func (*MockIAssistant) FormatPrompt

func (m *MockIAssistant) FormatPrompt(values map[string]any) (llms.PromptValue, error)

FormatPrompt mocks base method.

func (*MockIAssistant) GetPromptInputVariables

func (m *MockIAssistant) GetPromptInputVariables() []string

GetPromptInputVariables mocks base method.

func (*MockIAssistant) Name

func (m *MockIAssistant) Name() string

Name mocks base method.

type MockIAssistantMockRecorder

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

MockIAssistantMockRecorder is the mock recorder for MockIAssistant.

func (*MockIAssistantMockRecorder) Call

func (mr *MockIAssistantMockRecorder) Call(ctx, input, promptInputs any) *gomock.Call

Call indicates an expected call of Call.

func (*MockIAssistantMockRecorder) Description

func (mr *MockIAssistantMockRecorder) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockIAssistantMockRecorder) FormatPrompt

func (mr *MockIAssistantMockRecorder) FormatPrompt(values any) *gomock.Call

FormatPrompt indicates an expected call of FormatPrompt.

func (*MockIAssistantMockRecorder) GetPromptInputVariables

func (mr *MockIAssistantMockRecorder) GetPromptInputVariables() *gomock.Call

GetPromptInputVariables indicates an expected call of GetPromptInputVariables.

func (*MockIAssistantMockRecorder) Name

Name indicates an expected call of Name.

type MockTypeableAssistant

type MockTypeableAssistant[O chatmodel.ContentProvider] struct {
	// contains filtered or unexported fields
}

MockTypeableAssistant is a mock of TypeableAssistant interface.

func NewMockTypeableAssistant

func NewMockTypeableAssistant[O chatmodel.ContentProvider](ctrl *gomock.Controller) *MockTypeableAssistant[O]

NewMockTypeableAssistant creates a new mock instance.

func (*MockTypeableAssistant[O]) Call

func (m *MockTypeableAssistant[O]) Call(ctx context.Context, input string, promptInputs map[string]any) (*llms.ContentResponse, error)

Call mocks base method.

func (*MockTypeableAssistant[O]) Description

func (m *MockTypeableAssistant[O]) Description() string

Description mocks base method.

func (*MockTypeableAssistant[O]) EXPECT

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

func (*MockTypeableAssistant[O]) FormatPrompt

func (m *MockTypeableAssistant[O]) FormatPrompt(values map[string]any) (llms.PromptValue, error)

FormatPrompt mocks base method.

func (*MockTypeableAssistant[O]) GetCallback

func (m *MockTypeableAssistant[O]) GetCallback() assistants.Callback

GetCallback mocks base method.

func (*MockTypeableAssistant[O]) GetPromptInputVariables

func (m *MockTypeableAssistant[O]) GetPromptInputVariables() []string

GetPromptInputVariables mocks base method.

func (*MockTypeableAssistant[O]) Name

func (m *MockTypeableAssistant[O]) Name() string

Name mocks base method.

func (*MockTypeableAssistant[O]) Run

func (m *MockTypeableAssistant[O]) Run(ctx context.Context, input string, promptInputs map[string]any, optionalOutputType *O) (*llms.ContentResponse, error)

Run mocks base method.

type MockTypeableAssistantMockRecorder

type MockTypeableAssistantMockRecorder[O chatmodel.ContentProvider] struct {
	// contains filtered or unexported fields
}

MockTypeableAssistantMockRecorder is the mock recorder for MockTypeableAssistant.

func (*MockTypeableAssistantMockRecorder[O]) Call

func (mr *MockTypeableAssistantMockRecorder[O]) Call(ctx, input, promptInputs any) *gomock.Call

Call indicates an expected call of Call.

func (*MockTypeableAssistantMockRecorder[O]) Description

func (mr *MockTypeableAssistantMockRecorder[O]) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockTypeableAssistantMockRecorder[O]) FormatPrompt

func (mr *MockTypeableAssistantMockRecorder[O]) FormatPrompt(values any) *gomock.Call

FormatPrompt indicates an expected call of FormatPrompt.

func (*MockTypeableAssistantMockRecorder[O]) GetCallback

func (mr *MockTypeableAssistantMockRecorder[O]) GetCallback() *gomock.Call

GetCallback indicates an expected call of GetCallback.

func (*MockTypeableAssistantMockRecorder[O]) GetPromptInputVariables

func (mr *MockTypeableAssistantMockRecorder[O]) GetPromptInputVariables() *gomock.Call

GetPromptInputVariables indicates an expected call of GetPromptInputVariables.

func (*MockTypeableAssistantMockRecorder[O]) Name

Name indicates an expected call of Name.

func (*MockTypeableAssistantMockRecorder[O]) Run

func (mr *MockTypeableAssistantMockRecorder[O]) Run(ctx, input, promptInputs, optionalOutputType any) *gomock.Call

Run indicates an expected call of Run.

Jump to

Keyboard shortcuts

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