primitives

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrimitiveManager

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

PrimitiveManager contains available primitives for the server. Should be initialized with NewPrimitiveManager().

func NewPrimitiveManager

func NewPrimitiveManager(
	sourcesMap map[string]sources.Source,
	authServicesMap map[string]auth.AuthService,
	embeddingModelsMap map[string]embeddingmodels.EmbeddingModel,
	toolsMap map[string]tools.Tool, toolsetsMap map[string]tools.Toolset,
	promptsMap map[string]prompts.Prompt, promptsetsMap map[string]prompts.Promptset,

) *PrimitiveManager

func (*PrimitiveManager) GetAuthService

func (r *PrimitiveManager) GetAuthService(authServiceName string) (auth.AuthService, bool)

func (*PrimitiveManager) GetAuthServiceMap

func (r *PrimitiveManager) GetAuthServiceMap() map[string]auth.AuthService

func (*PrimitiveManager) GetEmbeddingModel

func (r *PrimitiveManager) GetEmbeddingModel(embeddingModelName string) (embeddingmodels.EmbeddingModel, bool)

func (*PrimitiveManager) GetEmbeddingModelMap

func (r *PrimitiveManager) GetEmbeddingModelMap() map[string]embeddingmodels.EmbeddingModel

func (*PrimitiveManager) GetPrompt

func (r *PrimitiveManager) GetPrompt(promptName string) (prompts.Prompt, bool)

func (*PrimitiveManager) GetPromptsMap

func (r *PrimitiveManager) GetPromptsMap() map[string]prompts.Prompt

func (*PrimitiveManager) GetPromptset

func (r *PrimitiveManager) GetPromptset(promptsetName string) (prompts.Promptset, bool)

func (*PrimitiveManager) GetSource

func (r *PrimitiveManager) GetSource(sourceName string) (sources.Source, bool)

func (*PrimitiveManager) GetSourcesMap

func (r *PrimitiveManager) GetSourcesMap() map[string]sources.Source

func (*PrimitiveManager) GetTool

func (r *PrimitiveManager) GetTool(toolName string) (tools.Tool, bool)

func (*PrimitiveManager) GetToolsMap

func (r *PrimitiveManager) GetToolsMap() map[string]tools.Tool

func (*PrimitiveManager) GetToolset

func (r *PrimitiveManager) GetToolset(toolsetName string) (tools.Toolset, bool)

func (*PrimitiveManager) SetPrimitives

func (r *PrimitiveManager) SetPrimitives(sourcesMap map[string]sources.Source, authServicesMap map[string]auth.AuthService, embeddingModelsMap map[string]embeddingmodels.EmbeddingModel, toolsMap map[string]tools.Tool, toolsetsMap map[string]tools.Toolset, promptsMap map[string]prompts.Prompt, promptsetsMap map[string]prompts.Promptset)

Jump to

Keyboard shortcuts

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