services

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitializeService

type InitializeService interface {
	Initialize(ctx context.Context, params protocol.InitializeParams) (protocol.InitializeResult, error)
}

InitializeService handles initialization operations

type PromptService

type PromptService interface {
	ListPrompts(ctx context.Context, cursor string) ([]protocol.Prompt, string, error)
	GetPrompt(ctx context.Context, name string, arguments map[string]string) (*protocol.PromptMessage, error)
}

PromptService handles prompt-related operations

type ResourceService

type ResourceService interface {
	ListResources(ctx context.Context, cursor string) ([]protocol.Resource, string, error)
	ReadResource(ctx context.Context, uri string) (*protocol.ResourceContent, error)
}

ResourceService handles resource-related operations

type ToolService

type ToolService interface {
	ListTools(ctx context.Context, cursor string) ([]protocol.Tool, string, error)
	CallTool(ctx context.Context, name string, arguments map[string]interface{}) (interface{}, error)
}

ToolService handles tool-related operations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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