fix: reduced token usage, removed parameters from schema that CLIs never seem to use
This commit is contained in:
@@ -53,7 +53,6 @@ CODEREVIEW_WORKFLOW_FIELD_DESCRIPTIONS = {
|
||||
"relevant_context": "Functions or methods central to findings (e.g. 'Class.method' or 'function_name').",
|
||||
"issues_found": "Issues with severity (critical/high/medium/low) and descriptions.",
|
||||
"review_validation_type": "Set 'external' (default) for expert follow-up or 'internal' for local-only review.",
|
||||
"backtrack_from_step": "If revising earlier analysis, note the step number to revisit.",
|
||||
"images": "Optional diagram or screenshot paths that clarify review context.",
|
||||
"review_type": "Review focus: full, security, performance, or quick.",
|
||||
"focus_on": "Optional note on areas to emphasise (e.g. 'threading', 'auth flow').",
|
||||
@@ -91,11 +90,6 @@ class CodeReviewRequest(WorkflowRequest):
|
||||
"external", description=CODEREVIEW_WORKFLOW_FIELD_DESCRIPTIONS.get("review_validation_type", "")
|
||||
)
|
||||
|
||||
# Optional backtracking field
|
||||
backtrack_from_step: Optional[int] = Field(
|
||||
None, description=CODEREVIEW_WORKFLOW_FIELD_DESCRIPTIONS["backtrack_from_step"]
|
||||
)
|
||||
|
||||
# Optional images for visual context
|
||||
images: Optional[list[str]] = Field(default=None, description=CODEREVIEW_WORKFLOW_FIELD_DESCRIPTIONS["images"])
|
||||
|
||||
@@ -206,11 +200,6 @@ class CodeReviewTool(WorkflowTool):
|
||||
"default": "external",
|
||||
"description": CODEREVIEW_WORKFLOW_FIELD_DESCRIPTIONS.get("review_validation_type", ""),
|
||||
},
|
||||
"backtrack_from_step": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"description": CODEREVIEW_WORKFLOW_FIELD_DESCRIPTIONS["backtrack_from_step"],
|
||||
},
|
||||
"issues_found": {
|
||||
"type": "array",
|
||||
"items": {"type": "object"},
|
||||
|
||||
Reference in New Issue
Block a user