Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddCommands ¶
func GetICLContent ¶
GetICLContent returns the In-Context Learning content. If userPath is provided, it reads from that file. Otherwise, it returns the embedded golden rules.
func ValidatePolicySyntax ¶
ValidatePolicySyntax checks if the generated Datalog code is valid using the Mangle engine.
Types ¶
type GeneratedPolicy ¶
type GeneratedPolicy struct {
// DatalogContent contains the raw .dl code.
DatalogContent string `json:"datalog_content"`
// Explanation provides a human-readable summary of the logic.
Explanation string `json:"explanation"`
}
GeneratedPolicy represents the structured response from the LLM.
func GenerateWithFeedback ¶
func GenerateWithFeedback(ctx context.Context, gen core.TextGenerator, userReq string, domainVocab []string, schema *inductor.SchemaHint, iclContent string) (*GeneratedPolicy, error)
GenerateWithFeedback orchestrates the Teacher-Student protocol.
Click to show internal directories.
Click to hide internal directories.