-
Notifications
You must be signed in to change notification settings - Fork 904
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
fix(agents-api): Fix sessions updated_at
precision issue
#1012
Conversation
There was a problem hiding this 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! Reviewed everything up to f8514a2 in 12 seconds
More details
- Looked at
60
lines of code in4
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/models/chat/prepare_chat_context.py:40
- Draft comment:
Consider encapsulating theupdated_at
division logic into a utility function to promote reusability and reduce redundancy across the codebase. - Reason this comment was not posted:
Confidence changes required:50%
The PR addresses a precision issue with theupdated_at
field by dividing it by 1,000,000. This change is consistent across multiple files, ensuring uniformity. However, the division operation is repeated in several places, which could lead to maintenance challenges if the logic needs to change in the future. It would be better to encapsulate this logic in a utility function to promote reusability and reduce redundancy.
Workflow ID: wflow_19pVALV7SyxTLG5m
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
CI Failure Feedback 🧐(Checks updated until commit edfcdf2)
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
There was a problem hiding this 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! Incremental review on de88a33 in 22 seconds
More details
- Looked at
87
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/activities/execute_system.py:145
- Draft comment:
Missing return statement for the asynchronous handler. Addreturn await handler()
to ensure the result is returned. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_rfxETzEx7CYt01OD
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Type
Bug fix
Description
Fix precision issue for
updated_at
field in session data.Normalize
updated_at
field by dividing by 1,000,000.Apply precision fix across multiple session-related models.
Ensure consistent handling of
updated_at
in transformations.Changes walkthrough 📝
prepare_chat_context.py
Normalize `updated_at` field in chat context
agents-api/agents_api/models/chat/prepare_chat_context.py
updated_at
field in session data.updated_at
by 1,000,000 during transformation.get_session.py
Normalize `updated_at` field in get_session
agents-api/agents_api/models/session/get_session.py
updated_at
field.updated_at
by 1,000,000 during session retrieval.prepare_session_data.py
Normalize `updated_at` field in prepare_session_data
agents-api/agents_api/models/session/prepare_session_data.py
updated_at
field in session data.updated_at
by 1,000,000 during transformation.update_session.py
Normalize `updated_at` field in update_session
agents-api/agents_api/models/session/update_session.py
updated_at
field in session updates.updated_at
by 1,000,000 during transformation.Important
Fix
updated_at
precision issue in session handling by dividing timestamp by 1,000,000 across multiple functions.updated_at
precision by dividing by 1,000,000 inprepare_chat_context.py
,get_session.py
,prepare_session_data.py
, andupdate_session.py
.prepare_chat_context
: Adjustsupdated_at
inmake_session
call.get_session
: Applies transformation toupdated_at
inwrap_in_class
.prepare_session_data
: Modifiesupdated_at
inmake_session
call.update_session
: Adjustsupdated_at
in transformation lambda.execute_system.py
to handle session operations.This description was created by for de88a33. It will automatically update as commits are pushed.