Documentation
¶
Index ¶
- type ChatEvent
- type ChatManager
- type ConfirmEvent
- type ErrorEvent
- type Event
- type EventBase
- type McpClient
- func (m *McpClient) Call(ctx context.Context, toolName string, args interface{}) (*mcp.CallToolResult, error)
- func (m *McpClient) Close()
- func (m *McpClient) Connect(ctx context.Context, name string, args ...string) error
- func (m *McpClient) ConnectLocal(ctx context.Context, server *mcp.Server) error
- func (m *McpClient) Init()
- func (m *McpClient) Tools(ctx context.Context) ([]McpTool, error)
- type McpTool
- type MessageEvent
- type Status
- type ToolEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatEvent ¶
type ChatEvent struct {
EventBase[*openai.ChatCompletion]
// contains filtered or unexported fields
}
func (*ChatEvent) GetResult ¶
func (c *ChatEvent) GetResult() *openai.ChatCompletion
type ChatManager ¶
type ChatManager struct {
// contains filtered or unexported fields
}
func (*ChatManager) Setup ¶
func (cm *ChatManager) Setup()
type ConfirmEvent ¶
func (*ConfirmEvent) Cancel ¶
func (c *ConfirmEvent) Cancel(ctx context.Context)
func (*ConfirmEvent) Consume ¶
func (c *ConfirmEvent) Consume(ctx context.Context)
func (*ConfirmEvent) GetError ¶
func (c *ConfirmEvent) GetError() error
func (*ConfirmEvent) GetResult ¶
func (c *ConfirmEvent) GetResult() struct{}
type ErrorEvent ¶
func (*ErrorEvent) Cancel ¶
func (e *ErrorEvent) Cancel(ctx context.Context)
func (*ErrorEvent) Consume ¶
func (e *ErrorEvent) Consume(ctx context.Context)
func (*ErrorEvent) GetError ¶
func (e *ErrorEvent) GetError() error
func (*ErrorEvent) GetResult ¶
func (e *ErrorEvent) GetResult() error
type McpClient ¶
type McpClient struct {
// contains filtered or unexported fields
}
func (*McpClient) ConnectLocal ¶
type MessageEvent ¶
type MessageEvent struct {
EventBase[*openai.ChatCompletion]
}
func (*MessageEvent) Cancel ¶
func (m *MessageEvent) Cancel(ctx context.Context)
func (*MessageEvent) Consume ¶
func (m *MessageEvent) Consume(ctx context.Context)
func (*MessageEvent) GetError ¶
func (m *MessageEvent) GetError() error
func (*MessageEvent) GetResult ¶
func (m *MessageEvent) GetResult() *openai.ChatCompletion
type ToolEvent ¶
type ToolEvent struct {
EventBase[*mcp.CallToolResult]
// contains filtered or unexported fields
}
func (*ToolEvent) GetResult ¶
func (t *ToolEvent) GetResult() *mcp.CallToolResult
Click to show internal directories.
Click to hide internal directories.