julep icon indicating copy to clipboard operation
julep copied to clipboard

Add session participants routes

Open creatorrr opened this issue 6 months ago • 3 comments
trafficstars

User description

Summary

  • support listing session agents and users
  • expose new routes to list session participants
  • add TypeSpec endpoints for agents and users of a session

Testing

  • ruff check .
  • ruff format .

PR Type

Enhancement


Description

  • Add endpoints to list agents and users in a session

    • New API routes for /sessions/{session_id}/agents and /sessions/{session_id}/users
    • SQL queries to fetch session agents and users
  • Update TypeSpec to document new session participant endpoints


Changes walkthrough 📝

Relevant files
Enhancement
6 files
__init__.py
Export new session agent and user query functions               
+4/-0     
get_session_agents.py
Add SQL query to fetch session agents                                       
+51/-0   
get_session_users.py
Add SQL query to fetch session users                                         
+46/-0   
__init__.py
Export new session agent and user routers                               
+2/-0     
get_session_agents.py
Add API endpoint to list session agents                                   
+27/-0   
get_session_users.py
Add API endpoint to list session users                                     
+25/-0   
Documentation
1 files
endpoints.tsp
Add TypeSpec endpoints for session agents and users           
+17/-1   

Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.

  • [!IMPORTANT] Add SQL queries and API endpoints to list session agents and users, updating TypeSpec endpoints accordingly.

    • New Functionality:
      • Add get_session_agents and get_session_users functions in queries/sessions to fetch agents and users for a session.
      • Introduce API endpoints in routers/sessions to list agents (get_session_agents) and users (get_session_users) for a session.
    • TypeSpec Updates:
      • Update endpoints.tsp to include listAgents and listUsers endpoints for sessions.
    • Misc:
      • Update imports in queries/sessions/__init__.py and routers/sessions/__init__.py to include new functions.

    This description was created by Ellipsis for 588ba49a998271b47cba264b9076822494445ac0. You can customize this summary. It will automatically update as commits are pushed.

    creatorrr avatar May 20 '25 16:05 creatorrr