Skip to content

Add CrewAI integration helpers#19

Open
SaiSandeepKantareddy wants to merge 3 commits into
sochdb:mainfrom
SaiSandeepKantareddy:pr/crewai-integration-python
Open

Add CrewAI integration helpers#19
SaiSandeepKantareddy wants to merge 3 commits into
sochdb:mainfrom
SaiSandeepKantareddy:pr/crewai-integration-python

Conversation

@SaiSandeepKantareddy
Copy link
Copy Markdown
Contributor

@SaiSandeepKantareddy SaiSandeepKantareddy commented May 19, 2026

Summary

  • add optional CrewAI integration helpers to the Python SDK
  • add a backend-agnostic SochDB knowledge store that works with embedded collections or gRPC collections
  • expose CrewAI search and remember tools backed by SochDB
  • add both embedded and hosted remote CrewAI examples, plus README and examples index updates
  • add a remote preflight mode so teams can validate the hosted SochDB path before wiring LLM credentials

Included

  • SochDBKnowledgeStore
  • SochDBSearchTool and SochDBRememberTool
  • create_crewai_tools(...) helper
  • optional crewai extra in pyproject.toml
  • examples/28_crewai_knowledge_tools.py
  • examples/29_crewai_remote_tools.py
  • tests/test_crewai_integration.py
  • README and examples/README updates

Notes

  • CrewAI remains an optional dependency
  • the integration supports both embedded collections and gRPC collections
  • examples/29_crewai_remote_tools.py supports SOCHDB_CREWAI_SKIP_KICKOFF=1 for remote storage/search preflight without LLM credentials

Validation

  • python3 -m py_compile examples/28_crewai_knowledge_tools.py examples/29_crewai_remote_tools.py tests/test_crewai_integration.py
  • git diff --check
  • pytest collection for the CrewAI test still depends on grpc being installed in the local environment

@SaiSandeepKantareddy
Copy link
Copy Markdown
Contributor Author

Verified the new remote CrewAI path from an isolated venv.\n\nExample added: examples/29_crewai_remote_tools.py\n\nUseful commands:\n\nbash\n# Remote SochDB preflight without LLM credentials\nSOCHDB_CREWAI_SKIP_KICKOFF=1 python -u examples/29_crewai_remote_tools.py\n\n# Full CrewAI kickoff once OPENAI_API_KEY is configured\nOPENAI_API_KEY=... python -u examples/29_crewai_remote_tools.py\n\n\nWhat I verified in the isolated env:\n- hosted gRPC collection creation worked\n- document insert worked\n- remote search worked\n- the preflight example returned grounded hits from the hosted store\n\nSo the remote SochDB side is confirmed working; the only extra requirement for the full CrewAI kickoff is model-provider credentials.

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