-
Notifications
You must be signed in to change notification settings - Fork 900
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
Swap situation
& system_template
| Other misc fixes
#996
Swap situation
& system_template
| Other misc fixes
#996
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 23de839 in 21 seconds
More details
- Looked at
613
lines of code in8
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. agents-api/agents_api/queries/chat/gather_messages.py:43
- Draft comment:
The change from synchronous to asynchronous function calls forget_history
,get_session
, and document search functions improves performance in an async environment. Ensure all related functions are properly awaited. - Reason this comment was not posted:
Comment did not seem useful.
2. agents-api/agents_api/common/protocol/sessions.py:120
- Draft comment:
The addition ofself.users[0].model_dump() if len(self.users) > 0 else None
ensures theuser
key is always present, preventing potential KeyErrors. This is a good practice. - Reason this comment was not posted:
Confidence changes required:50%
The addition ofself.users[0].model_dump() if len(self.users) > 0 else None
ensures that theuser
key is always present in the dictionary, which is a good practice to avoid potential KeyErrors.
3. agents-api/agents_api/queries/chat/prepare_chat_context.py:14
- Draft comment:
The change to usesqlglot
for parsing SQL queries improves readability and management of SQL code. This is a positive change. - Reason this comment was not posted:
Confidence changes required:50%
The change from a string to a parsed SQL query usingsqlglot
is a significant improvement for SQL query management and readability. This should be noted as a positive change.
4. typespec/common/constants.tsp:41
- Draft comment:
The removal of thetools
section from the default system template might affect functionality if tools are expected in the session context. Verify if this change aligns with the intended functionality. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_J6R3eZWZnF5UKnTo
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
CI Failure Feedback 🧐(Checks updated until commit 9e82981)
✨ 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 |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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 9e82981 in 10 seconds
More details
- Looked at
38
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. agents-api/agents_api/queries/chat/prepare_chat_context.py:16
- Draft comment:
Consider usingsqlglot
to parse and format the SQL query for better validation and readability. - Reason this comment was not posted:
Confidence changes required:50%
The SQL query inprepare_chat_context.py
is not being parsed bysqlglot
anymore, which might affect SQL validation and formatting.
Workflow ID: wflow_d6gDIgVHtnHIM9h6
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Type
Enhancement
Description
Swapped
situation
andsystem_template
fields in session models:situation
nullable and optionalsystem_template
fieldEnhanced system template structure:
Improved chat functionality:
Enhanced error handling and edge cases:
Changes walkthrough 📝
Sessions.py
Refactor session models and system template structure
agents-api/agents_api/autogen/Sessions.py
situation
andsystem_template
fields in session modelssituation
nullable and optionalsessions.py
Enhance chat environment with user data
agents-api/agents_api/common/protocol/sessions.py
chat.py
Update system message rendering logic
agents-api/agents_api/routers/sessions/chat.py
situation
constants.tsp
Revise system template structure
typespec/common/constants.tsp
models.tsp
Update session model specifications
typespec/sessions/models.tsp
gather_messages.py
Fix async operations and improve query handling
agents-api/agents_api/queries/chat/gather_messages.py
Important
Enhances session models by swapping
situation
andsystem_template
, improves chat functionality, and fixes async operations.situation
andsystem_template
fields inSessions.py
.situation
nullable and optional.constants.tsp
.sessions.py
.chat.py
to usesystem_template
.gather_messages.py
.prepare_chat_context.py
.This description was created by for 9e82981. It will automatically update as commits are pushed.