primitives

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 7 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 resources for the server. Should be initialized with NewPrimitiveManager(). groups is the source of truth for named collections; toolset views (manifests) are derived from the group on demand by the callers that render them.

func NewPrimitiveManager

func NewPrimitiveManager(
	sourcesMap map[string]sources.Source,
	authServicesMap map[string]auth.AuthService,
	embeddingModelsMap map[string]embeddingmodels.EmbeddingModel,
	toolsMap map[string]tools.Tool,
	promptsMap map[string]prompts.Prompt,
	groupsMap map[string]group.Group,

) *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) GetGroup added in v1.8.0

func (r *PrimitiveManager) GetGroup(groupName string) (group.Group, bool)

GetGroup returns the group of the given name.

func (*PrimitiveManager) GetGroupsMap added in v1.8.0

func (r *PrimitiveManager) GetGroupsMap() map[string]group.Group

func (*PrimitiveManager) GetPrompt

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

func (*PrimitiveManager) GetSource

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

func (*PrimitiveManager) GetTool

func (r *PrimitiveManager) GetTool(toolName string) (tools.Tool, 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, promptsMap map[string]prompts.Prompt, groupsMap map[string]group.Group)

Jump to

Keyboard shortcuts

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