Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Truncate messages #294

Merged
merged 4 commits into from
Apr 25, 2024
Merged

feat: Truncate messages #294

merged 4 commits into from
Apr 25, 2024

Conversation

whiterabbit1983
Copy link
Contributor

@whiterabbit1983 whiterabbit1983 commented Apr 24, 2024

🚀 This description was created by Ellipsis for commit 59471d4

Summary:

This PR introduces a message truncation feature in the BaseSession class, an InputTooBigError exception, and corresponding tests.

Key points:

  • Added a truncate method in the BaseSession class in /agents-api/agents_api/routers/sessions/session.py.
  • Introduced InputTooBigError in /agents-api/agents_api/routers/sessions/exceptions.py.
  • Included tests for the truncation feature in test_messages_truncation.py.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested.

  • Reviewed the entire pull request up to c0a9076
  • Looked at 460 lines of code in 8 files
  • Took 1 minute and 6 seconds to review
More info
  • Skipped 1 files when reviewing.
  • Skipped posting 0 additional comments because they didn't meet confidence threshold of 50%.

Workflow ID: wflow_t4jriLSZ8HMSJ3cW


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. We'll respond in a few minutes. Learn more here.

agents-api/agents_api/routers/sessions/exceptions.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me!

  • Performed an incremental review on 59471d4
  • Looked at 488 lines of code in 7 files
  • Took 1 minute and 44 seconds to review
More info
  • Skipped 1 files when reviewing.
  • Skipped posting 0 additional comments because they didn't meet confidence threshold of 50%.

Workflow ID: wflow_Zba7eA2dT6Z2WIvg


Not what you expected? You can customize the content of the reviews using rules. Learn more here.

creatorrr and others added 2 commits April 25, 2024 18:06
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
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.

None yet

2 participants