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) GetPrompt(promptName string) (prompts.Prompt, bool)
- func (r *PrimitiveManager) GetPromptsMap() map[string]prompts.Prompt
- func (r *PrimitiveManager) GetPromptset(promptsetName string) (prompts.Promptset, bool)
- func (r *PrimitiveManager) GetSource(sourceName string) (sources.Source, bool)
- func (r *PrimitiveManager) GetSourcesMap() map[string]sources.Source
- func (r *PrimitiveManager) GetTool(toolName string) (tools.Tool, bool)
- func (r *PrimitiveManager) GetToolsMap() map[string]tools.Tool
- func (r *PrimitiveManager) GetToolset(toolsetName string) (tools.Toolset, 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 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)
Click to show internal directories.
Click to hide internal directories.