mcpmocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mcpmocks is a generated GoMock package.

Package mcpmocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAgent

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

MockAgent is a mock of Agent interface.

func NewMockAgent

func NewMockAgent(ctrl *gomock.Controller) *MockAgent

NewMockAgent creates a new mock instance.

func (*MockAgent) EXPECT

func (m *MockAgent) EXPECT() *MockAgentMockRecorder

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

func (*MockAgent) ExecuteTools

func (m *MockAgent) ExecuteTools(ctx context.Context, toolCalls []providers.ChatCompletionMessageToolCall) ([]providers.Message, error)

ExecuteTools mocks base method.

func (*MockAgent) Run

Run mocks base method.

func (*MockAgent) RunWithStream

func (m *MockAgent) RunWithStream(ctx context.Context, middlewareStreamCh chan []byte, c *gin.Context, body *providers.CreateChatCompletionRequest) error

RunWithStream mocks base method.

func (*MockAgent) SetModel

func (m *MockAgent) SetModel(model *string)

SetModel mocks base method.

func (*MockAgent) SetProvider

func (m *MockAgent) SetProvider(provider providers.IProvider)

SetProvider mocks base method.

type MockAgentMockRecorder

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

MockAgentMockRecorder is the mock recorder for MockAgent.

func (*MockAgentMockRecorder) ExecuteTools

func (mr *MockAgentMockRecorder) ExecuteTools(ctx, toolCalls any) *gomock.Call

ExecuteTools indicates an expected call of ExecuteTools.

func (*MockAgentMockRecorder) Run

func (mr *MockAgentMockRecorder) Run(ctx, request, response any) *gomock.Call

Run indicates an expected call of Run.

func (*MockAgentMockRecorder) RunWithStream

func (mr *MockAgentMockRecorder) RunWithStream(ctx, middlewareStreamCh, c, body any) *gomock.Call

RunWithStream indicates an expected call of RunWithStream.

func (*MockAgentMockRecorder) SetModel

func (mr *MockAgentMockRecorder) SetModel(model any) *gomock.Call

SetModel indicates an expected call of SetModel.

func (*MockAgentMockRecorder) SetProvider

func (mr *MockAgentMockRecorder) SetProvider(provider any) *gomock.Call

SetProvider indicates an expected call of SetProvider.

type MockMCPClientInterface

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

MockMCPClientInterface is a mock of MCPClientInterface interface.

func NewMockMCPClientInterface

func NewMockMCPClientInterface(ctrl *gomock.Controller) *MockMCPClientInterface

NewMockMCPClientInterface creates a new mock instance.

func (*MockMCPClientInterface) BuildSSEFallbackURL

func (m *MockMCPClientInterface) BuildSSEFallbackURL(serverURL string) string

BuildSSEFallbackURL mocks base method.

func (*MockMCPClientInterface) ConvertMCPToolsToChatCompletionTools

func (m *MockMCPClientInterface) ConvertMCPToolsToChatCompletionTools(arg0 []mcp.Tool) []providers.ChatCompletionTool

ConvertMCPToolsToChatCompletionTools mocks base method.

func (*MockMCPClientInterface) EXPECT

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

func (*MockMCPClientInterface) ExecuteTool

func (m *MockMCPClientInterface) ExecuteTool(ctx context.Context, request mcp.Request, serverURL string) (*mcp.CallToolResult, error)

ExecuteTool mocks base method.

func (*MockMCPClientInterface) GetAllChatCompletionTools

func (m *MockMCPClientInterface) GetAllChatCompletionTools() []providers.ChatCompletionTool

GetAllChatCompletionTools mocks base method.

func (*MockMCPClientInterface) GetServerCapabilities

func (m *MockMCPClientInterface) GetServerCapabilities() map[string]mcp.ServerCapabilities

GetServerCapabilities mocks base method.

func (*MockMCPClientInterface) GetServerForTool added in v0.14.0

func (m *MockMCPClientInterface) GetServerForTool(toolName string) (string, error)

GetServerForTool mocks base method.

func (*MockMCPClientInterface) GetServerTools

func (m *MockMCPClientInterface) GetServerTools(serverURL string) ([]mcp.Tool, error)

GetServerTools mocks base method.

func (*MockMCPClientInterface) GetServers

func (m *MockMCPClientInterface) GetServers() []string

GetServers mocks base method.

func (*MockMCPClientInterface) InitializeAll

func (m *MockMCPClientInterface) InitializeAll(ctx context.Context) error

InitializeAll mocks base method.

func (*MockMCPClientInterface) IsInitialized

func (m *MockMCPClientInterface) IsInitialized() bool

IsInitialized mocks base method.

type MockMCPClientInterfaceMockRecorder

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

MockMCPClientInterfaceMockRecorder is the mock recorder for MockMCPClientInterface.

func (*MockMCPClientInterfaceMockRecorder) BuildSSEFallbackURL

func (mr *MockMCPClientInterfaceMockRecorder) BuildSSEFallbackURL(serverURL any) *gomock.Call

BuildSSEFallbackURL indicates an expected call of BuildSSEFallbackURL.

func (*MockMCPClientInterfaceMockRecorder) ConvertMCPToolsToChatCompletionTools

func (mr *MockMCPClientInterfaceMockRecorder) ConvertMCPToolsToChatCompletionTools(arg0 any) *gomock.Call

ConvertMCPToolsToChatCompletionTools indicates an expected call of ConvertMCPToolsToChatCompletionTools.

func (*MockMCPClientInterfaceMockRecorder) ExecuteTool

func (mr *MockMCPClientInterfaceMockRecorder) ExecuteTool(ctx, request, serverURL any) *gomock.Call

ExecuteTool indicates an expected call of ExecuteTool.

func (*MockMCPClientInterfaceMockRecorder) GetAllChatCompletionTools

func (mr *MockMCPClientInterfaceMockRecorder) GetAllChatCompletionTools() *gomock.Call

GetAllChatCompletionTools indicates an expected call of GetAllChatCompletionTools.

func (*MockMCPClientInterfaceMockRecorder) GetServerCapabilities

func (mr *MockMCPClientInterfaceMockRecorder) GetServerCapabilities() *gomock.Call

GetServerCapabilities indicates an expected call of GetServerCapabilities.

func (*MockMCPClientInterfaceMockRecorder) GetServerForTool added in v0.14.0

func (mr *MockMCPClientInterfaceMockRecorder) GetServerForTool(toolName any) *gomock.Call

GetServerForTool indicates an expected call of GetServerForTool.

func (*MockMCPClientInterfaceMockRecorder) GetServerTools

func (mr *MockMCPClientInterfaceMockRecorder) GetServerTools(serverURL any) *gomock.Call

GetServerTools indicates an expected call of GetServerTools.

func (*MockMCPClientInterfaceMockRecorder) GetServers

GetServers indicates an expected call of GetServers.

func (*MockMCPClientInterfaceMockRecorder) InitializeAll

func (mr *MockMCPClientInterfaceMockRecorder) InitializeAll(ctx any) *gomock.Call

InitializeAll indicates an expected call of InitializeAll.

func (*MockMCPClientInterfaceMockRecorder) IsInitialized

func (mr *MockMCPClientInterfaceMockRecorder) IsInitialized() *gomock.Call

IsInitialized indicates an expected call of IsInitialized.

Jump to

Keyboard shortcuts

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