-
Notifications
You must be signed in to change notification settings - Fork 24
DEV-692: Utility Endpoint to get_context #114
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
base: main
Are you sure you want to change the base?
Conversation
Co-Authored-By: Vineeth Voruganti <[email protected]>
Co-Authored-By: Vineeth Voruganti <[email protected]>
Co-Authored-By: Vineeth Voruganti <[email protected]>
…xistence Co-Authored-By: Vineeth Voruganti <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Note Free review on us!CodeRabbit is offering free reviews until Wed May 28 2025 to showcase some of the refinements we've made. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
DEV-692: Utility Endpoint to
get_context
This PR implements a new utility endpoint at
/apps/{app_id}/users/{user_id}/sessions/{session_id}/context
that returns the latest summary metamessage and messages that occurred after that summary.Changes
SessionContextResponse
schema insrc/schemas.py
src/routers/sessions.py
Implementation Details
history.get_messages_since_latest_summary()
to get both the latest summary and messageshistory.SummaryType.SHORT
for the summary typeTesting
Link to Devin run: https://app.devin.ai/sessions/62d5ec1747cb4b1fb089ed64d32e9f8d
Requested by: Vineeth Voruganti ([email protected])