Documentation
¶
Index ¶
- func BuildPrompt(articleIDs []string, temperature int) string
- func DefaultArticleIDs() []string
- func HardwiredArticleIDs() []string
- func MergeWithHardwired(selected []string) []string
- type Article
- type AutoSelectHeuristic
- type Group
- type LLMHelperConfig
- type MasterList
- type MultiSelectConfig
- type SelectionUI
- type Treaty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrompt ¶
BuildPrompt assembles the compliance system prompt block from the given article IDs and TCL temperature (1–10).
func DefaultArticleIDs ¶
func DefaultArticleIDs() []string
DefaultArticleIDs returns the IDs of all defaultSelected articles.
func HardwiredArticleIDs ¶
func HardwiredArticleIDs() []string
HardwiredArticleIDs returns the IDs of all hardwired articles.
func MergeWithHardwired ¶
MergeWithHardwired takes a user's article selection and ensures all hardwired articles are present. Order is preserved: user selections first, then any hardwired articles not already in the list.
Types ¶
type AutoSelectHeuristic ¶
type LLMHelperConfig ¶
type LLMHelperConfig struct {
PromptTemplate string `json:"promptTemplate"`
AutoSelectHeuristics []AutoSelectHeuristic `json:"autoSelectHeuristics"`
}
type MasterList ¶
type MasterList struct {
Version string `json:"version"`
Treaties []Treaty `json:"treaties"`
Articles []Group `json:"articles"`
SelectionUI SelectionUI `json:"selectionUi"`
}
type MultiSelectConfig ¶
type MultiSelectConfig struct {
TreatyFieldID string `json:"treatyFieldId"`
ArticleFieldID string `json:"articleFieldId"`
AllowArticleFilterByTreaty bool `json:"allowArticleFilterByTreaty"`
ShowHardwiredBadge bool `json:"showHardwiredBadge"`
DisallowDeselectHardwired bool `json:"disallowDeselectHardwired"`
}
type SelectionUI ¶
type SelectionUI struct {
MultiSelect MultiSelectConfig `json:"multiSelect"`
LLMHelper LLMHelperConfig `json:"llmHelper"`
}
type Treaty ¶
type Treaty struct {
ID string `json:"id"`
Label string `json:"label"`
Citation string `json:"citation"`
Jurisdiction string `json:"jurisdiction"`
Required bool `json:"required"`
CanDeselect bool `json:"canDeselect"`
DefaultSelected bool `json:"defaultSelected"`
SourceURL string `json:"sourceUrl"`
}
Click to show internal directories.
Click to hide internal directories.