Skip to content

fix(sdk): route backend arg + export run() + surface installed tags (issue #156 H1-H3)#159

Merged
himanshu231204 merged 1 commit into
mainfrom
fix/156-h1-h3
Jul 19, 2026
Merged

fix(sdk): route backend arg + export run() + surface installed tags (issue #156 H1-H3)#159
himanshu231204 merged 1 commit into
mainfrom
fix/156-h1-h3

Conversation

@himanshu231204

Copy link
Copy Markdown
Member

Summary

Fixes issue #156 items H1, H2, and H3 for the 0.1.1 release.

H1 — backend argument was ignored

The SDK load/install/install_category/update/remove/verify functions took a backend argument but never used it (dead if backend is not None: branch). Now each routes to a Manager(backend=backend) when a backend is supplied, so the argument is honored.

H2 — run() missing from the SDK

ModelManager.run() and the CLI run command existed, but modeldock.run was absent from the public API and __all__. Added run() to src/modeldock/__init__.py and exported it, matching the documented API surface.

H3 — info() installed-tags

info() now surfaces installed tags for both catalog models and installed-but-uncatalogued models (the latter via the B1 fallback from PR #158). Added a test confirming installed_tags are reported for an installed model.

Tests

  • tests/unit/test_sdk_api.py: SDK run() works and is exported; Manager(backend=...) sets the active backend; info() surfaces installed tags.

Verification

Unit 113 passed, integration (excl. slow pull) 3 passed, e2e 16 passed. ruff, ruff format, mypy --strict clean. Verified live against Ollama: md.run('mistral:latest', prompt=...) streams tokens; md.load('mistral:latest', backend='ollama') routes correctly.

…issue #156 H1-H3)

H1: SDK load/install/install_category/update/remove/verify now route the backend argument to a Manager for that backend instead of ignoring it.

H2: Added modeldock.run() to the public SDK surface and __all__, matching the CLI run command and ModelManager.run().

H3: info() now surfaces installed tags for both catalog and installed-but-uncatalogued models (the latter via the B1 fallback); added a test confirming installed_tags are reported.

Co-Authored-By: Claude <noreply@anthropic.com>
@himanshu231204
himanshu231204 merged commit f0c848c into main Jul 19, 2026
29 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @himanshu231204!

Your pull request has been successfully merged into main. 🚀

Thank you for contributing to OpenAgentHQ and helping improve the project.

We truly appreciate your contribution and hope to see you back with more amazing PRs!

Happy Open Sourcing! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant