resources

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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 ResourceManager

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

ResourceManager contains available resources for the server. Should be initialized with NewResourceManager().

func NewResourceManager

func NewResourceManager(
	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,

) *ResourceManager

func (*ResourceManager) GetAuthService

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

func (*ResourceManager) GetAuthServiceMap

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

func (*ResourceManager) GetEmbeddingModel added in v0.25.0

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

func (*ResourceManager) GetEmbeddingModelMap added in v0.25.0

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

func (*ResourceManager) GetPrompt

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

func (*ResourceManager) GetPromptsMap

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

func (*ResourceManager) GetPromptset

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

func (*ResourceManager) GetSource

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

func (*ResourceManager) GetTool

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

func (*ResourceManager) GetToolsMap

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

func (*ResourceManager) GetToolset

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

func (*ResourceManager) SetResources

func (r *ResourceManager) SetResources(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