server

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 Definition

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

	Features Features

	Parameters []Parameter

	DependenciesProvider DependenciesProvider[Dependencies]

	ToolsProvider ToolsProvider[Dependencies]
}

type DependenciesProvider added in v0.5.1

type DependenciesProvider[Dependencies any] = publictypes.DependenciesProvider[Dependencies]

type DependenciesProviderResources added in v0.5.1

type DependenciesProviderResources = publictypes.DependenciesProviderResources

type Features added in v0.5.1

type Features = publictypes.Features

type HandlerForToolWithStructuredContentOutput

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

type HandlerForToolWithUnstructuredContentOutput

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

type MATLABFeature added in v0.5.1

type MATLABFeature = publictypes.MATLABFeature

type Parameter added in v0.5.1

type Parameter = publictypes.Parameter

type Server

type Server = publictypes.Server

func New

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

type Tool

type Tool = publictypes.Tool

func NewToolWithStructuredContentOutput

func NewToolWithStructuredContentOutput[ToolInput, ToolOutput any](definition pkgtools.Definition, handler HandlerForToolWithStructuredContentOutput[ToolInput, ToolOutput]) Tool

func NewToolWithUnstructuredContentOutput

func NewToolWithUnstructuredContentOutput[ToolInput any](definition pkgtools.Definition, handler HandlerForToolWithUnstructuredContentOutput[ToolInput]) Tool

type ToolsProvider added in v0.5.1

type ToolsProvider[Dependencies any] = publictypes.ToolsProvider[Dependencies]

type ToolsProviderResources added in v0.5.1

type ToolsProviderResources[Dependencies any] = publictypes.ToolsProviderResources[Dependencies]

Jump to

Keyboard shortcuts

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