Versions in this module Expand all Collapse all v0 v0.0.25 Aug 4, 2025 Changes in this version + const EffortHigh + const EffortLow + const EffortMedium + const EffortMin + var BOX_END = "╰──" + var BOX_START = "╭──" + var COLOR_SECONDARY = ansi.ColorFunc(ansi.LightBlack) + var EVALUATOR_RULES_COMPLIANCE_ID = "output_rules_compliance" + func AddCommandLineFlags(cmd *cobra.Command) + func ApplyEffortConfiguration(options *PromptPexOptions, effort string) + func ComputePromptHash(p *prompt.File) (string, error) + func ExtractJSON(content string) string + func IsUnassistedResponse(text string) bool + func MergeStringMaps(maps ...map[string]string) map[string]string + func NewGenerateCommand(cfg *command.Config) *cobra.Command + func ParseFlags(cmd *cobra.Command, options *PromptPexOptions) error + func ParseRules(text string) []string + func RenderMessagesToString(messages []prompt.Message) string + func SplitLines(text string) []string + func StringSliceContains(slice []string, value string) bool + func Unbracket(text string) string + func Unfence(text string) string + func Unxml(text string) string + type EffortConfiguration struct + MaxRules int + RulesPerGen int + TestsPerRule int + func GetEffortConfiguration(effort string) *EffortConfiguration + type PromptPexContext struct + InputSpec *string + Intent *string + InverseRules []string + Options *PromptPexOptions + Prompt *prompt.File + PromptHash string + Rules []string + RunID string + Tests []PromptPexTest + type PromptPexModelAliases struct + Eval string + Groundtruth string + Rules string + Tests string + type PromptPexOptions struct + Effort string + InputSpecMaxTokens int + Instructions *PromptPexPrompts + IntentMaxTokens int + MaxRules int + Models *PromptPexModelAliases + Prompt string + RulesPerGen int + TestsPerRule int + Verbose bool + func GetDefaultOptions() *PromptPexOptions + type PromptPexPrompts struct + InputSpec string + Intent string + InverseOutputRules string + OutputRules string + Tests string + type PromptPexTest struct + Expected string + Input string + Predicted string + Reasoning string + Scenario string