Few-shot intent-classification prompt
prompt-template:few-shot-classification
PromptTemplateextensions/prompt-engineering/prompt-templates.yaml·Open in Graph → {
"id": "prompt-template:few-shot-classification",
"_kind": "PromptTemplate",
"_file": "extensions/prompt-engineering/prompt-templates.yaml",
"_cluster": "extensions",
"attributes": {
"displayName": "Few-shot intent-classification prompt",
"templateKind": "few-shot",
"body": "Classify the following user query into one of: {{labels}}.\nExamples:\n{{\nQuery: {{this.query}}\nLabel: {{this.label}}\n{{/each}}\nQuery: {{query}}\nLabel:\n",
"variables": [
"labels",
"examples",
"query"
],
"examples": [
{
"input": "reset my password",
"output": "account"
},
{
"input": "what's the weather?",
"output": "smalltalk"
}
],
"notes": "Few-shot template for intent classification; examples are inlined per\ninvocation. Replaces the proposed FewShotExampleSet NodeKind (collapsed\nper catalog update reviewer).\n"
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-version:claude-code@1.x",
"to": "prompt-template:few-shot-classification",
"kind": "governs_template",
"attributes": {}
},
{
"from": "skill:react-tdd",
"to": "prompt-template:few-shot-classification",
"kind": "uses_template",
"attributes": {}
}
]
}