server

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition[Dependencies any] struct {
	Name         string
	Title        string
	Instructions string

	Features Features

	Parameters Parameters

	DependenciesProvider DependenciesProvider[Dependencies]

	ToolsProvider ToolsProvider[Dependencies]
}

type DependenciesProvider added in v0.5.1

type DependenciesProvider[Dependencies any] func(dependenciesProviderResources DependenciesProviderResources) (Dependencies, i18n.Error)

type DependenciesProviderResources added in v0.5.1

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

func (DependenciesProviderResources) Config added in v0.5.1

func (DependenciesProviderResources) Logger added in v0.5.1

type Features added in v0.5.1

type Features struct {
	MATLAB MATLABFeature
}

type HandlerForToolWithStructuredContentOutput

type HandlerForToolWithStructuredContentOutput[ToolInput, ToolOutput any] func(ctx context.Context, request tools.CallRequest, inputs ToolInput) (ToolOutput, i18n.Error)

type HandlerForToolWithUnstructuredContentOutput

type HandlerForToolWithUnstructuredContentOutput[ToolInput any] func(ctx context.Context, request tools.CallRequest, inputs ToolInput) (tools.RichContent, i18n.Error)

type MATLABFeature added in v0.5.1

type MATLABFeature struct {
	Enabled bool
}

type Parameter added in v0.5.1

type Parameter interface {
	GetID() string
	GetFlagName() string
	GetHiddenFlag() bool
	GetEnvVarName() string
	GetDescription() string
	GetDefaultValue() any

	GetActive() bool
	GetRecordToLog() bool
}

type Parameters added in v0.5.1

type Parameters []Parameter

func (Parameters) ToInternal added in v0.5.1

func (p Parameters) ToInternal() []entities.Parameter

type Server

type Server[Dependencies any] struct {
	// contains filtered or unexported fields
}

func New

func New[Dependencies any](thisDefinition Definition[Dependencies]) *Server[Dependencies]

func (*Server[Dependencies]) StartAndWaitForCompletion

func (s *Server[Dependencies]) StartAndWaitForCompletion(ctx context.Context) int

type Tool

type Tool interface {
	// contains filtered or unexported methods
}

type ToolWithStructuredContentOutput

type ToolWithStructuredContentOutput[ToolInput, ToolOutput any] struct {
	// contains filtered or unexported fields
}

func NewToolWithStructuredContentOutput

func NewToolWithStructuredContentOutput[ToolInput, ToolOutput any](definition tools.Definition, handler HandlerForToolWithStructuredContentOutput[ToolInput, ToolOutput]) *ToolWithStructuredContentOutput[ToolInput, ToolOutput]

type ToolWithUnstructuredContentOutput

type ToolWithUnstructuredContentOutput[ToolInput any] struct {
	// contains filtered or unexported fields
}

func NewToolWithUnstructuredContentOutput

func NewToolWithUnstructuredContentOutput[ToolInput any](definition tools.Definition, handler HandlerForToolWithUnstructuredContentOutput[ToolInput]) *ToolWithUnstructuredContentOutput[ToolInput]

type ToolsProvider added in v0.5.1

type ToolsProvider[Dependencies any] func(toolsProviderResources ToolsProviderResources[Dependencies]) []Tool

type ToolsProviderResources added in v0.5.1

type ToolsProviderResources[Dependencies any] struct {
	// contains filtered or unexported fields
}

func (ToolsProviderResources[Dependencies]) Dependencies added in v0.5.1

func (r ToolsProviderResources[Dependencies]) Dependencies() Dependencies

func (ToolsProviderResources[Dependencies]) Logger added in v0.5.1

func (r ToolsProviderResources[Dependencies]) Logger() logger.Logger

Jump to

Keyboard shortcuts

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