-
Notifications
You must be signed in to change notification settings - Fork 57
Fix Import Inconsistencies and Enhance Validation #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Show which files would be reformatted - Display diff output with color coding - Helps diagnose CI formatting failures Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
This file was missing from git, causing import failures in CI. Locally it worked because the untracked file was present. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
|
@claude review this PR. |
|
Claude finished @kovtcharov's task —— View job PR Review: Fix Import Inconsistencies and Enhance ValidationOverall Assessment: Approved ✅ This is a well-structured PR that addresses a real user-facing issue (broken import documentation) and significantly improves the project's ability to detect future import regressions. Summary
Documentation Changes 🟢All 6 documentation files now use the canonical import pattern:
Files updated:
Code Changes 🟢1. New from .vlm_client import VLMClient
__all__ = ["create_client", "LLMClient", "VLMClient", "NotSupportedError"]Good addition - ensures 2. New from gaia.agents.blender.agent import BlenderAgent
__all__ = ["BlenderAgent"]Correct pattern - matches other agent packages. 3. Blender agent cleanup (
These are good Pylint fixes. 4. Internal import updates
5. Code style cleanup Testing Changes 🟢Import test expansion ( The import validation expanded from 4 to 31 tests:
The test structure also improved:
Minor Observations🟡 Non-issue: The Blender agent function renames ( 🟢 Good practice: The PR maintains parity between VerdictApprove - This PR:
The 7.5x increase in import test coverage (4 → 31) is a meaningful improvement for SDK stability. |
Summary
Fixes breaking change from commit 77df07b where documentation showed incorrect import paths after LLM client refactor. Expands import validation from 4 to 31 tests to prevent future issues.
Problem
After the LLM client refactor (Jan 15), documentation showed:
But the correct import is:
This remained undetected for 4 days, causing user confusion.
Changes
Documentation (6 files)
from gaia.llm import XpatternCode (5 files)
VLMClientexport tosrc/gaia/llm/__init__.pysrc/gaia/agents/blender/__init__.pyto properly export BlenderAgentTesting (1 file)
util/lint.ps1with 31 comprehensive import tests (up from 4)Impact
Test Results