Documentation
¶
Overview ¶
Package config is the singular place where configuration is loaded and parsed.
Index ¶
Constants ¶
View Source
const (
DefaultConfig = ""
)
View Source
const ServicePrefix = "PR"
ServicePrefix - imagery producer specific env vars have this prefix
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Log Log `required:"true"`
Github Github `required:"true"`
LLM LLM `required:"true"`
Input InputConfig `required:"true"`
}
Config contains all config parameters for the service
type InputConfig ¶
type InputConfig struct {
KnowledgeSources []KnowledgeSource `mapstructure:"knowledgeSources"`
PromptWorkflows []PromptWorkflow `mapstructure:"promptWorkflows"`
}
type KnowledgeSource ¶
type KnowledgeSource struct {
Name string `mapstructure:"name"`
Type KnowledgeSourceType `mapstructure:"type"`
Value string `mapstructure:"value"`
}
type KnowledgeSourceType ¶
type KnowledgeSourceType string
const ( KnowledgeSourceTypeFile KnowledgeSourceType = "file" KnowledgeSourceTypeURL KnowledgeSourceType = "url" KnowledgeSourceTypeAPI KnowledgeSourceType = "api" KnowledgeSourceTypeText KnowledgeSourceType = "text" )
type PromptWorkflow ¶
type PromptWorkflow struct {
Name string `mapstructure:"name"`
Steps []PromptWorkflowStep `mapstructure:"steps"`
}
type PromptWorkflowStep ¶
Click to show internal directories.
Click to hide internal directories.