Documentation
¶
Index ¶
- type PrimitiveManager
- func (r *PrimitiveManager) GetAuthService(authServiceName string) (auth.AuthService, bool)
- func (r *PrimitiveManager) GetAuthServiceMap() map[string]auth.AuthService
- func (r *PrimitiveManager) GetEmbeddingModel(embeddingModelName string) (embeddingmodels.EmbeddingModel, bool)
- func (r *PrimitiveManager) GetEmbeddingModelMap() map[string]embeddingmodels.EmbeddingModel
- func (r *PrimitiveManager) GetGroup(groupName string) (group.Group, bool)
- func (r *PrimitiveManager) GetGroupsMap() map[string]group.Group
- func (r *PrimitiveManager) GetPrompt(promptName string) (prompts.Prompt, bool)
- func (r *PrimitiveManager) GetSource(sourceName string) (sources.Source, bool)
- func (r *PrimitiveManager) GetTool(toolName string) (tools.Tool, bool)
- func (r *PrimitiveManager) SetPrimitives(sourcesMap map[string]sources.Source, ...)
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)
Click to show internal directories.
Click to hide internal directories.