Skip to content

feat(test): Adding cross runtime tests suite for PocketPaw, LangChain, CrewAI#232

Open
Akshat-Raj wants to merge 8 commits intoqbtrix:mainfrom
Akshat-Raj:main
Open

feat(test): Adding cross runtime tests suite for PocketPaw, LangChain, CrewAI#232
Akshat-Raj wants to merge 8 commits intoqbtrix:mainfrom
Akshat-Raj:main

Conversation

@Akshat-Raj
Copy link
Copy Markdown

@Akshat-Raj Akshat-Raj commented May 5, 2026

What does this PR do?

This PR adds a test suite for cross runtime integration for PocketPaw, LangChain, CrewAI.

Fixes #228

How to test

uv run --python 3.12 --with pytest-asyncio pytest tests/cross_runtime/ -v

Checklist

  • Tests pass locally (uv run pytest tests/)
  • Lint passes (uv run ruff check . && uv run ruff format --check .)
  • No secrets or credentials in the diff
  • PR title follows Conventional Commits (feat:, fix:, docs:, etc.)

@Akshat-Raj Akshat-Raj marked this pull request as ready for review May 6, 2026 07:51
Copilot AI review requested due to automatic review settings May 6, 2026 07:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new tests/cross_runtime/ test suite intended to validate .soul export/import round-trips when integrating with other agent runtimes (PocketPaw, LangChain, CrewAI), aligned with Issue #228.

Changes:

  • Introduces three new async pytest tests for PocketPaw/LangChain/CrewAI integration scenarios.
  • Adds documentation for running the cross-runtime suite and a pytest marker registration for cross_runtime.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
tests/cross_runtime/test_pocketpaw.py Adds a round-trip export/awaken test and asserts core/semantic/episodic persistence.
tests/cross_runtime/test_langchain.py Adds a LangChain-skipped integration smoke test that wraps the system prompt in a SystemMessage.
tests/cross_runtime/test_crewai.py Adds a CrewAI-skipped integration smoke test that injects the system prompt into an Agent backstory.
tests/cross_runtime/readme.md Documents the new suite, optional dependencies, and Python version notes.
tests/cross_runtime/conftest.py Registers the cross_runtime pytest marker.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/cross_runtime/test_pocketpaw.py
Comment thread tests/cross_runtime/test_pocketpaw.py
Comment thread tests/cross_runtime/test_langchain.py Outdated
Comment thread tests/cross_runtime/test_langchain.py Outdated
Comment on lines +21 to +25
destination_file = str(tmp_path / "langchain_exported.soul")

await soul.export(destination_file)
recovered_soul = await Soul.awaken(destination_file)
assert "LangChain Agent" in recovered_soul.to_system_prompt() No newline at end of file
Comment thread tests/cross_runtime/test_crewai.py
Comment thread tests/cross_runtime/readme.md Outdated
Comment thread tests/cross_runtime/test_crewai.py Outdated
Comment thread tests/cross_runtime/test_pocketpaw.py Outdated
Comment thread tests/cross_runtime/test_pocketpaw.py Outdated
Comment thread tests/cross_runtime/test_crewai.py Outdated
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.

feat(test): cross-runtime test suite — PocketPaw, LangChain, CrewAI

2 participants