fix: preserve CrewAI tool history across turns#266
Open
darvell-thenvoi wants to merge 2 commits into
Open
Conversation
Collaborator
Author
|
Rechecked current head. No new code changes were needed; the PR remains scoped to CrewAI history/tool replay handling and its converter/conformance coverage. Validation:
|
1 similar comment
Collaborator
Author
|
Rechecked current head. No new code changes were needed; the PR remains scoped to CrewAI history/tool replay handling and its converter/conformance coverage. Validation:
|
6d2b2a9 to
1c8724c
Compare
added 2 commits
May 26, 2026 19:22
Keep CrewAI tool events in converted history and replay the full room transcript on each kickoff so multi-step peer workflows retain more execution context.
Prepend the Thenvoi platform prompt before custom CrewAI backstory text so the adapter's routing and tool-use rules land earlier in the backstory block.
1c8724c to
e6abfa3
Compare
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
Test plan
env -u VIRTUAL_ENV uv run python -m pytest tests/converters/test_crewai.py tests/adapters/test_crewai_adapter.py -venv -u VIRTUAL_ENV uv run python -m pytest tests/framework_conformance/test_converter_conformance.py -v -k crewaienv -u VIRTUAL_ENV uv run ruff check src/thenvoi/converters/crewai.py src/thenvoi/adapters/crewai.py tests/converters/test_crewai.py tests/adapters/test_crewai_adapter.py tests/framework_configs/converters.py tests/framework_conformance/test_converter_conformance.pyenv -u VIRTUAL_ENV uv run ruff format --check src/thenvoi/converters/crewai.py src/thenvoi/adapters/crewai.py tests/converters/test_crewai.py tests/adapters/test_crewai_adapter.py tests/framework_configs/converters.py tests/framework_conformance/test_converter_conformance.pyenv -u VIRTUAL_ENV uv run pyrefly check src/thenvoi/converters/crewai.py src/thenvoi/adapters/crewai.py