Skip to content

Conversation

Mic52M
Copy link

@Mic52M Mic52M commented May 25, 2025

Pull Request: Fix requirements and broken import (closes #4)

Summary

This PR resolves issue [#4](#4) by addressing a missing dependency and removing an outdated import reference.


Changes made

  • Added autogen>=0.1.12 to requirements.txt
  • Removed broken import of context_handling from tools/caldera_tools.py
  • Re-implemented the truncate_str_to_tokens function using the tiktoken library
  • Patched sys.path in caldera_tools.py to allow execution from the project root (so utils.constants is found)

Testing

The modified file tools/caldera_tools.py was executed with:

python tools/caldera_tools.py

No import errors were encountered after the patch.


Let me know if any further adjustments are needed. Happy to iterate on the PR!

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.

requirements error
1 participant