implementer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Notifier         transport.Notifier
	Logger           logger.Logger
	Client           client.Operations
	ClientInitialize *schema.InitializeRequestParams
	Subscription     *collection.SyncMap[string, bool]
}

func New

func New(notifier transport.Notifier, logger logger.Logger, client client.Operations) *Base

func (*Base) CallTool

func (f *Base) CallTool(ctx context.Context, request *schema.CallToolRequest) (*schema.CallToolResult, *jsonrpc.Error)

func (*Base) Complete

func (f *Base) Complete(ctx context.Context, request *schema.CompleteRequest) (*schema.CompleteResult, *jsonrpc.Error)

func (*Base) GetPrompt

func (f *Base) GetPrompt(ctx context.Context, request *schema.GetPromptRequest) (*schema.GetPromptResult, *jsonrpc.Error)

func (*Base) Implements

func (f *Base) Implements(method string) bool

func (*Base) Initialize

func (f *Base) Initialize(ctx context.Context, init *schema.InitializeRequestParams, result schema.InitializeResult)

func (*Base) ListPrompts

func (f *Base) ListPrompts(ctx context.Context, request *schema.ListPromptsRequest) (*schema.ListPromptsResult, *jsonrpc.Error)

func (*Base) ListResources

func (f *Base) ListResources(ctx context.Context, request *schema.ListResourcesRequest) (*schema.ListResourcesResult, *jsonrpc.Error)

func (*Base) ListTools

func (f *Base) ListTools(ctx context.Context, request *schema.ListToolsRequest) (*schema.ListToolsResult, *jsonrpc.Error)

func (*Base) OnNotification

func (f *Base) OnNotification(ctx context.Context, notification *jsonrpc.Notification)

func (*Base) ReadResource

func (f *Base) ReadResource(ctx context.Context, request *schema.ReadResourceRequest) (*schema.ReadResourceResult, *jsonrpc.Error)

func (*Base) Subscribe

func (f *Base) Subscribe(ctx context.Context, request *schema.SubscribeRequest) (*schema.SubscribeResult, *jsonrpc.Error)

func (*Base) Unsubscribe

func (f *Base) Unsubscribe(ctx context.Context, request *schema.UnsubscribeRequest) (*schema.UnsubscribeResult, *jsonrpc.Error)

Jump to

Keyboard shortcuts

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