Documentation
¶
Overview ¶
Package mockassitants is a generated GoMock package.
Index ¶
- type MockCallback
- func (m *MockCallback) EXPECT() *MockCallbackMockRecorder
- func (m *MockCallback) OnAssistantEnd(ctx context.Context, agent assistants.IAssistant, input string, ...)
- func (m *MockCallback) OnAssistantError(cyx context.Context, agent assistants.IAssistant, input string, err error)
- func (m *MockCallback) OnAssistantStart(ctx context.Context, agent assistants.IAssistant, input string)
- func (m *MockCallback) OnToolEnd(arg0 context.Context, arg1 tools.ITool, arg2, arg3 string)
- func (m *MockCallback) OnToolError(arg0 context.Context, arg1 tools.ITool, arg2 string, arg3 error)
- func (m *MockCallback) OnToolStart(arg0 context.Context, arg1 tools.ITool, arg2 string)
- type MockCallbackMockRecorder
- func (mr *MockCallbackMockRecorder) OnAssistantEnd(ctx, agent, input, resp any) *gomock.Call
- func (mr *MockCallbackMockRecorder) OnAssistantError(cyx, agent, input, err any) *gomock.Call
- func (mr *MockCallbackMockRecorder) OnAssistantStart(ctx, agent, input any) *gomock.Call
- func (mr *MockCallbackMockRecorder) OnToolEnd(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockCallbackMockRecorder) OnToolError(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockCallbackMockRecorder) OnToolStart(arg0, arg1, arg2 any) *gomock.Call
- type MockHasCallback
- type MockHasCallbackMockRecorder
- type MockIAssistant
- func (m *MockIAssistant) Call(ctx context.Context, input string, promptInputs map[string]any) (*llms.ContentResponse, error)
- func (m *MockIAssistant) Description() string
- func (m *MockIAssistant) EXPECT() *MockIAssistantMockRecorder
- func (m *MockIAssistant) FormatPrompt(values map[string]any) (llms.PromptValue, error)
- func (m *MockIAssistant) GetPromptInputVariables() []string
- func (m *MockIAssistant) Name() string
- type MockIAssistantMockRecorder
- func (mr *MockIAssistantMockRecorder) Call(ctx, input, promptInputs any) *gomock.Call
- func (mr *MockIAssistantMockRecorder) Description() *gomock.Call
- func (mr *MockIAssistantMockRecorder) FormatPrompt(values any) *gomock.Call
- func (mr *MockIAssistantMockRecorder) GetPromptInputVariables() *gomock.Call
- func (mr *MockIAssistantMockRecorder) Name() *gomock.Call
- type MockTypeableAssistant
- func (m *MockTypeableAssistant[O]) Call(ctx context.Context, input string, promptInputs map[string]any) (*llms.ContentResponse, error)
- func (m *MockTypeableAssistant[O]) Description() string
- func (m *MockTypeableAssistant[O]) EXPECT() *MockTypeableAssistantMockRecorder[O]
- func (m *MockTypeableAssistant[O]) FormatPrompt(values map[string]any) (llms.PromptValue, error)
- func (m *MockTypeableAssistant[O]) GetCallback() assistants.Callback
- func (m *MockTypeableAssistant[O]) GetPromptInputVariables() []string
- func (m *MockTypeableAssistant[O]) Name() string
- func (m *MockTypeableAssistant[O]) Run(ctx context.Context, input string, promptInputs map[string]any, ...) (*llms.ContentResponse, error)
- type MockTypeableAssistantMockRecorder
- func (mr *MockTypeableAssistantMockRecorder[O]) Call(ctx, input, promptInputs any) *gomock.Call
- func (mr *MockTypeableAssistantMockRecorder[O]) Description() *gomock.Call
- func (mr *MockTypeableAssistantMockRecorder[O]) FormatPrompt(values any) *gomock.Call
- func (mr *MockTypeableAssistantMockRecorder[O]) GetCallback() *gomock.Call
- func (mr *MockTypeableAssistantMockRecorder[O]) GetPromptInputVariables() *gomock.Call
- func (mr *MockTypeableAssistantMockRecorder[O]) Name() *gomock.Call
- func (mr *MockTypeableAssistantMockRecorder[O]) Run(ctx, input, promptInputs, optionalOutputType any) *gomock.Call
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 ¶
func (m *MockCallback) EXPECT() *MockCallbackMockRecorder
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) OnToolError ¶
OnToolError mocks base method.
func (*MockCallback) OnToolStart ¶
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 ¶
func (m *MockHasCallback) EXPECT() *MockHasCallbackMockRecorder
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 ¶
func (m *MockIAssistant) EXPECT() *MockIAssistantMockRecorder
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.
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 ¶
func (mr *MockIAssistantMockRecorder) Name() *gomock.Call
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 ¶
func (m *MockTypeableAssistant[O]) EXPECT() *MockTypeableAssistantMockRecorder[O]
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.
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 ¶
func (mr *MockTypeableAssistantMockRecorder[O]) Name() *gomock.Call
Name indicates an expected call of Name.