init
This commit is contained in:
61
src/laya_router/questions.py
Normal file
61
src/laya_router/questions.py
Normal 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?"
|
||||
),
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user