feat: Complete VS Code models integration package #908
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Complete VS Code models integration for Graphiti, adding native VS Code language model and embedding support as an optional dependency package
graphiti-core[vscodemodels]
.Type of Change
Objective
For new features and performance improvements:
This PR adds native VS Code models integration to Graphiti, enabling users to leverage VS Code's built-in AI capabilities without requiring external API keys or services. The integration follows the established pattern of other LLM providers (anthropic, google-genai, etc.) and provides:
This addresses the need for developers working within VS Code to use Graphiti without setting up external LLM services, making the framework more accessible for local development and experimentation.
Testing
examples/vscode_models/validate_integration.py
)examples/vscode_models/basic_usage.py
)Breaking Changes
No breaking changes - this is a purely additive feature that doesn't modify existing functionality.
Checklist
Related Issues
Closes #907
Implementation Details
New Files Added:
graphiti_core/llm_client/vscode_client.py
- VS Code LLM client with native integrationgraphiti_core/embedder/vscode_embedder.py
- VS Code embedder with fallback supportexamples/vscode_models/basic_usage.py
- Complete usage exampleexamples/vscode_models/validate_integration.py
- Integration validation testsexamples/vscode_models/README.md
- Comprehensive usage guideModified Files:
pyproject.toml
- Addedvscodemodels = []
optional dependencyREADME.md
- Added "Using Graphiti with VS Code Models" sectionmcp_server/README.md
- Added VS Code configuration documentationgraphiti_core/llm_client/__init__.py
- Added VSCodeClient exportgraphiti_core/embedder/__init__.py
- Added VSCodeEmbedder exportsKey Features:
Installation:
pip install "graphiti-core[vscodemodels]"