Documentation
¶
Index ¶
- type Definition
- type DependenciesProvider
- type DependenciesProviderResources
- type Features
- type HandlerForToolWithStructuredContentOutput
- type HandlerForToolWithUnstructuredContentOutput
- type MATLABFeature
- type Parameter
- type Parameters
- type Server
- type Tool
- type ToolWithStructuredContentOutput
- type ToolWithUnstructuredContentOutput
- type ToolsProvider
- type ToolsProviderResources
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 (r DependenciesProviderResources) Config() config.Config
func (DependenciesProviderResources) Logger ¶ added in v0.5.1
func (r DependenciesProviderResources) Logger() logger.Logger
type Features ¶ added in v0.5.1
type Features struct {
MATLAB MATLABFeature
}
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 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]
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
Click to show internal directories.
Click to hide internal directories.