pub struct SelectionRule {
pub enabled: bool,
pub system_instruction: String,
pub catalog_prefix: String,
pub task_prefix: String,
pub task_suffix: String,
pub question: String,
pub stop_words: BTreeSet<String>,
pub question_prefix: String,
pub shortlist: usize,
pub top_k: usize,
}Expand description
Wire contract for a prompt that asks for a newline-separated list of names.
Fields§
§enabled: boolEnable substitution. When false, the LLM serves the original request.
system_instruction: StringExact trusted system instruction identifying the call site.
catalog_prefix: StringPrefix of the first user message, followed by a YAML map of names to descriptions. One level of groups is supported. Group and option names are joined with a dot.
task_prefix: StringText immediately before the task in the final user message.
task_suffix: StringText immediately after the task in the final user message.
question: StringInstruction for assessing one option against the task.
stop_words: BTreeSet<String>Omit these lowercase words from both the query and documents during shortlisting.
question_prefix: StringPrefix for numbered question IDs. Defaults to q.
shortlist: usizeMaximum number of options to score in one decision call.
top_k: usizeMaximum number of names returned to the caller.