Vision support via images / pdfs etc that can be passed on to other models as part of analysis, additional context etc.

Image processing pipeline added
OpenAI GPT-4.1 support
Chat tool prompt enhancement
Lint and code quality improvements
This commit is contained in:
Fahad
2025-06-16 13:14:53 +04:00
parent d498e9854b
commit 97fa6781cf
26 changed files with 1328 additions and 52 deletions

View File

@@ -41,6 +41,10 @@ class CodeReviewRequest(ToolRequest):
...,
description="User's summary of what the code does, expected behavior, constraints, and review objectives",
)
images: Optional[list[str]] = Field(
None,
description="Optional images of architecture diagrams, UI mockups, design documents, or visual references for code review context",
)
review_type: str = Field("full", description="Type of review: full|security|performance|quick")
focus_on: Optional[str] = Field(
None,
@@ -94,6 +98,11 @@ class CodeReviewTool(BaseTool):
"type": "string",
"description": "User's summary of what the code does, expected behavior, constraints, and review objectives",
},
"images": {
"type": "array",
"items": {"type": "string"},
"description": "Optional images of architecture diagrams, UI mockups, design documents, or visual references for code review context",
},
"review_type": {
"type": "string",
"enum": ["full", "security", "performance", "quick"],