adaptor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	ModeSelector() ModeSelector
	MessageCatalog() MessageCatalog
}

type ApplicationDefinition

type ApplicationDefinition interface {
	Name() string
	Title() string
	Instructions() string
	Tools(loggerFactory definition.LoggerFactory) []tools.Tool
}

type ApplicationFactory

type ApplicationFactory interface {
	New(definition ApplicationDefinition) Application
}

func NewFactory

func NewFactory() ApplicationFactory

type LoggerFactory

type LoggerFactory interface {
	NewMCPSessionLogger(session *mcp.ServerSession) (entities.Logger, messages.Error)
	GetGlobalLogger() (entities.Logger, messages.Error)
}

type MessageCatalog

type MessageCatalog interface {
	GetFromGeneralError(err error) (string, bool)
	Get(key messages.MessageKey) string
}

type ModeSelector

type ModeSelector interface {
	StartAndWaitForCompletion(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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