defaults

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultInitializeService

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

func NewInitializeService

func NewInitializeService(serverName string, serverVersion string) *DefaultInitializeService

func (*DefaultInitializeService) Initialize

type DefaultPromptService

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

func NewPromptService

func NewPromptService(registry *pkg.ProviderRegistry, logger zerolog.Logger) *DefaultPromptService

func (*DefaultPromptService) GetPrompt

func (s *DefaultPromptService) GetPrompt(ctx context.Context, name string, arguments map[string]string) (*protocol.PromptMessage, error)

func (*DefaultPromptService) ListPrompts

func (s *DefaultPromptService) ListPrompts(ctx context.Context, cursor string) ([]protocol.Prompt, string, error)

type DefaultResourceService

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

func NewResourceService

func NewResourceService(registry *pkg.ProviderRegistry, logger zerolog.Logger) *DefaultResourceService

func (*DefaultResourceService) ListResources

func (s *DefaultResourceService) ListResources(ctx context.Context, cursor string) ([]protocol.Resource, string, error)

func (*DefaultResourceService) ReadResource

type DefaultToolService

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

func NewToolService

func NewToolService(registry *pkg.ProviderRegistry, logger zerolog.Logger) *DefaultToolService

func (*DefaultToolService) CallTool

func (s *DefaultToolService) CallTool(ctx context.Context, name string, arguments map[string]interface{}) (interface{}, error)

func (*DefaultToolService) ListTools

func (s *DefaultToolService) ListTools(ctx context.Context, cursor string) ([]protocol.Tool, string, error)

Jump to

Keyboard shortcuts

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