Add public API exports to link_predictor module#252
Open
datatools-agent-2026 wants to merge 1 commit into
Open
Add public API exports to link_predictor module#252datatools-agent-2026 wants to merge 1 commit into
datatools-agent-2026 wants to merge 1 commit into
Conversation
Export LinkPredictor, LinkPredictionSaver, and NoLinksFoundError from predictor; export PredictedLink and LinkPredictionResult from models. Add module docstring and __all__ for explicit public API. Add regression tests verifying package-level imports work correctly. Fixes Intugle#127
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Adds public API exports to
src/intugle/link_predictor/__init__.pyso users can import the main link predictor classes directly from the package:instead of verbose submodule imports.
Changes
LinkPredictor,LinkPredictionSaver, andNoLinksFoundErrorfrompredictorPredictedLinkandLinkPredictionResultfrommodels__all__for an explicit public APItests/link_predictor/test_public_api.pyTesting
python -c "from intugle.link_predictor import LinkPredictor; print('OK')"— passespytest tests/link_predictor/test_public_api.py— 2/2 passedruff check src/intugle/link_predictor/__init__.py— passespytest tests/link_predictor/— 16/23 passed (7 integration tests require LLM/API credentials)Fixes #127