This commit is contained in:
richarjiang
2026-09-24 10:04:41 +08:00
commit eae4df7d51
24 changed files with 2212 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
"""Routing questions sent to Laya in one forward pass.
``choice`` is used for task level because Laya's ordinal ``score`` primitive is
the weakest of the three. Bump ``QUESTIONS_VERSION`` when the wording changes
so logged decisions stay interpretable.
"""
from __future__ import annotations
QUESTIONS_VERSION = "1"
QUESTIONS: dict = {
"task_level": {
"type": "choice",
"instructions": (
"Classify the complexity of this software engineering request."
),
"criteria": {
"simple": (
"Small isolated task. Explanation, lookup, tiny code change, "
"simple syntax fix, or obvious bug."
),
"normal": (
"Normal engineering task. Requires reading several files, "
"implementing a feature, debugging, refactoring, or several steps."
),
"complex": (
"Complex engineering task. Architecture design, difficult debugging, "
"cross-module change, unfamiliar system, performance investigation, "
"large refactor, or substantial reasoning."
),
},
},
"needs_plan": {
"type": "noul",
"instructions": (
"Should the coding agent make a plan before implementing this request?"
),
},
"needs_repo": {
"type": "noul",
"instructions": (
"Does this request require inspecting multiple files or understanding "
"the existing repository before answering?"
),
},
"needs_web": {
"type": "noul",
"instructions": (
"Does this request likely require current external documentation, "
"library documentation, APIs, or web research?"
),
},
"needs_deep_reasoning": {
"type": "noul",
"instructions": (
"Does this software engineering request require substantial reasoning, "
"architecture analysis, difficult debugging, or evaluating tradeoffs?"
),
},
}