Documentation
¶
Index ¶
- type SSEClient
- func (c *SSEClient) ApplyResourceTemplate(ctx context.Context, template types.ResourceTemplate) (*types.ResourceTemplateResult, error)
- func (c *SSEClient) Close() error
- func (c *SSEClient) ExecuteTool(ctx context.Context, call types.ToolCall) (*types.ToolResult, error)
- func (c *SSEClient) GetResourceTemplates(ctx context.Context) ([]types.Resource, error)
- func (c *SSEClient) Initialize(ctx context.Context) error
- func (c *SSEClient) ListResources(ctx context.Context) ([]types.Resource, error)
- func (c *SSEClient) ListTools(ctx context.Context) ([]types.Tool, error)
- func (c *SSEClient) NewSession(reader io.Reader, writer io.Writer) (*client.Session, error)
- func (c *SSEClient) SendBatchRequest(ctx context.Context, methods []string, params []interface{}) ([]types.Response, error)
- func (c *SSEClient) SendNotification(ctx context.Context, method string, params interface{}) error
- func (c *SSEClient) SendRequest(ctx context.Context, method string, params interface{}) (*types.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSEClient ¶
type SSEClient struct { client.BaseClient // contains filtered or unexported fields }
SSEClient implements the Client interface using Server-Sent Events
func NewSSEClient ¶
NewSSEClient creates a new SSE client
func (*SSEClient) ApplyResourceTemplate ¶
func (c *SSEClient) ApplyResourceTemplate(ctx context.Context, template types.ResourceTemplate) (*types.ResourceTemplateResult, error)
ApplyResourceTemplate implements the Client interface
func (*SSEClient) ExecuteTool ¶
func (c *SSEClient) ExecuteTool(ctx context.Context, call types.ToolCall) (*types.ToolResult, error)
ExecuteTool implements the Client interface
func (*SSEClient) GetResourceTemplates ¶
GetResourceTemplates implements the Client interface
func (*SSEClient) Initialize ¶
Initialize sends the initialization request to the server
func (*SSEClient) ListResources ¶
ListResources implements the Client interface
func (*SSEClient) NewSession ¶
NewSession creates a new session with this client
func (*SSEClient) SendBatchRequest ¶
func (c *SSEClient) SendBatchRequest(ctx context.Context, methods []string, params []interface{}) ([]types.Response, error)
SendBatchRequest implements the Client interface
func (*SSEClient) SendNotification ¶
SendNotification implements the Client interface
Click to show internal directories.
Click to hide internal directories.