Documentation
¶
Overview ¶
Package mcpmocks is a generated GoMock package.
Package mcpmocks is a generated GoMock package.
Index ¶
- type MockAgent
- func (m *MockAgent) EXPECT() *MockAgentMockRecorder
- func (m *MockAgent) ExecuteTools(ctx context.Context, toolCalls []providers.ChatCompletionMessageToolCall) ([]providers.Message, error)
- func (m *MockAgent) Run(ctx context.Context, request *providers.CreateChatCompletionRequest, ...) error
- func (m *MockAgent) RunWithStream(ctx context.Context, middlewareStreamCh chan []byte, c *gin.Context, ...) error
- func (m *MockAgent) SetModel(model *string)
- func (m *MockAgent) SetProvider(provider providers.IProvider)
- type MockAgentMockRecorder
- func (mr *MockAgentMockRecorder) ExecuteTools(ctx, toolCalls any) *gomock.Call
- func (mr *MockAgentMockRecorder) Run(ctx, request, response any) *gomock.Call
- func (mr *MockAgentMockRecorder) RunWithStream(ctx, middlewareStreamCh, c, body any) *gomock.Call
- func (mr *MockAgentMockRecorder) SetModel(model any) *gomock.Call
- func (mr *MockAgentMockRecorder) SetProvider(provider any) *gomock.Call
- type MockMCPClientInterface
- func (m *MockMCPClientInterface) BuildSSEFallbackURL(serverURL string) string
- func (m *MockMCPClientInterface) ConvertMCPToolsToChatCompletionTools(arg0 []mcp.Tool) []providers.ChatCompletionTool
- func (m *MockMCPClientInterface) EXPECT() *MockMCPClientInterfaceMockRecorder
- func (m *MockMCPClientInterface) ExecuteTool(ctx context.Context, request mcp.Request, serverURL string) (*mcp.CallToolResult, error)
- func (m *MockMCPClientInterface) GetAllChatCompletionTools() []providers.ChatCompletionTool
- func (m *MockMCPClientInterface) GetServerCapabilities() map[string]mcp.ServerCapabilities
- func (m *MockMCPClientInterface) GetServerForTool(toolName string) (string, error)
- func (m *MockMCPClientInterface) GetServerTools(serverURL string) ([]mcp.Tool, error)
- func (m *MockMCPClientInterface) GetServers() []string
- func (m *MockMCPClientInterface) InitializeAll(ctx context.Context) error
- func (m *MockMCPClientInterface) IsInitialized() bool
- type MockMCPClientInterfaceMockRecorder
- func (mr *MockMCPClientInterfaceMockRecorder) BuildSSEFallbackURL(serverURL any) *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) ConvertMCPToolsToChatCompletionTools(arg0 any) *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) ExecuteTool(ctx, request, serverURL any) *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) GetAllChatCompletionTools() *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) GetServerCapabilities() *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) GetServerForTool(toolName any) *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) GetServerTools(serverURL any) *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) GetServers() *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) InitializeAll(ctx any) *gomock.Call
- func (mr *MockMCPClientInterfaceMockRecorder) IsInitialized() *gomock.Call
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 ¶
func (m *MockAgent) Run(ctx context.Context, request *providers.CreateChatCompletionRequest, response *providers.CreateChatCompletionResponse) error
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) SetProvider ¶
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 ¶
func (m *MockMCPClientInterface) EXPECT() *MockMCPClientInterfaceMockRecorder
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 ¶
func (mr *MockMCPClientInterfaceMockRecorder) GetServers() *gomock.Call
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.