LCORE-470: Fix agent initialization in streaming_query#349
LCORE-470: Fix agent initialization in streaming_query#349tisnik merged 1 commit intolightspeed-core:mainfrom
Conversation
…processing requests.
WalkthroughAn explicit asynchronous call to Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Endpoint
participant AsyncAgent
Client->>Endpoint: Send streaming query request
Endpoint->>AsyncAgent: Instantiate AsyncAgent
Endpoint->>AsyncAgent: await initialize()
Endpoint->>AsyncAgent: Further logic (reuse, assign conversation ID, etc.)
AsyncAgent-->>Endpoint: Ready for processing
Endpoint-->>Client: Continue response flow
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5-10 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
possibly related to #317 |
| enable_session_persistence=True, | ||
| ) | ||
|
|
||
| await agent.initialize() |
Description
Fixed the bug about requiring the agent to be initialized in streaming_query.
Type of change
Related Tickets & Documents
Checklist before requesting a review
Testing
Summary by CodeRabbit