feat: add SmolAgents integration with Hindsight memory tools#658
Merged
nicoloboschi merged 4 commits intomainfrom Apr 29, 2026
Merged
feat: add SmolAgents integration with Hindsight memory tools#658nicoloboschi merged 4 commits intomainfrom
nicoloboschi merged 4 commits intomainfrom
Conversation
b8057b3 to
1fb827b
Compare
Adds hindsight-integrations/smolagents with retain, recall, and reflect tools for HuggingFace SmolAgents. - hindsight_smolagents/: config, errors, and tools (retain/recall/reflect, plus memory_instructions helper for prompt-time injection) - 81 unit tests (all passing) - Docs page at hindsight-docs/docs-integrations/smolagents.md - Icon at hindsight-docs/static/img/icons/smolagents.png - Entry in integrations.json so it appears on the listing page - CI workflow job test-smolagents-integration - Wired into scripts/release-integration.sh VALID_INTEGRATIONS Replaces the earlier draft commits (originally opened March 23) with a clean single commit rebased on latest main, dropping unrelated package-lock.json changes that had been bundled in by mistake.
build-docs CI requires every integration page to have both 'title' and 'description' in its frontmatter. Without them, check-integration-seo.mjs fails the docusaurus build.
- Add smolagents to the INTEGRATIONS table in generate_changelog.py so the release script can cut a tag (release-integration.sh already had it after the rebase, but the changelog generator needs its own entry). - Add a sidebar link in hindsight-docs/sidebars.ts so the docs page is reachable from navigation, matching the agentcore pattern. - examples/interactive_test.py: import-order + drop f-prefix on a no-placeholder f-string (ruff F541, I001). - ruff format adjustments in tools.py.
074f17a to
fff3134
Compare
Collaborator
|
Force-pushed a rebase + review fixes (was 074f17a, now fff3134). Rebased onto current Fixes applied (commit
Verified locally: Things I left for you to decide (not blocking, but worth a thought):
|
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
hindsight-smolagentspackage underhindsight-integrations/smolagents/Toolsubclasses:HindsightRetainTool,HindsightRecallTool,HindsightReflectToolcreate_hindsight_tools()factory andmemory_instructions()helper for system prompt injectionDesign notes
bank_idis baked in at construction time (SmolAgents has noRunContextequivalent)forward()methods call the Hindsight Python client directlyhindsight-agnoTest plan
cd hindsight-integrations/smolagents && uv run pytest tests/ -v— all 81 tests passuv run ruff check . && uv run ruff format --check .— lint clean./scripts/release-integration.sh smolagentsrecognizes the integration name