Documentation
¶
Index ¶
- type ResourceManager
- func (r *ResourceManager) GetAuthService(authServiceName string) (auth.AuthService, bool)
- func (r *ResourceManager) GetAuthServiceMap() map[string]auth.AuthService
- func (r *ResourceManager) GetEmbeddingModel(embeddingModelName string) (embeddingmodels.EmbeddingModel, bool)
- func (r *ResourceManager) GetEmbeddingModelMap() map[string]embeddingmodels.EmbeddingModel
- func (r *ResourceManager) GetPrompt(promptName string) (prompts.Prompt, bool)
- func (r *ResourceManager) GetPromptsMap() map[string]prompts.Prompt
- func (r *ResourceManager) GetPromptset(promptsetName string) (prompts.Promptset, bool)
- func (r *ResourceManager) GetSource(sourceName string) (sources.Source, bool)
- func (r *ResourceManager) GetTool(toolName string) (tools.Tool, bool)
- func (r *ResourceManager) GetToolsMap() map[string]tools.Tool
- func (r *ResourceManager) GetToolset(toolsetName string) (tools.Toolset, bool)
- func (r *ResourceManager) SetResources(sourcesMap map[string]sources.Source, ...)
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)
Click to show internal directories.
Click to hide internal directories.