This pull request removes the check run status from the assistant manager and adds an event handler class to manage the assistant's responses.
Summary
Removed the try-except block that was checking the run status of the assistant in the run_assistant method of the AssistantManager class.
Added a new EventHandler class that inherits from AssistantEventHandler from the openai library. This class overrides the on_text_created and on_text_delta methods and adds new methods on_tool_call_created and on_tool_call_delta to handle the assistant's responses.
The run_assistant method of the AssistantManager class now uses the new EventHandler class to handle the assistant's responses.
Changes were made in the assistant_manager.py file.
Fixes #10.
π Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request removes the check run status from the assistant manager and adds an event handler class to manage the assistant's responses.
Summary
run_assistant
method of theAssistantManager
class.EventHandler
class that inherits fromAssistantEventHandler
from theopenai
library. This class overrides theon_text_created
andon_text_delta
methods and adds new methodson_tool_call_created
andon_tool_call_delta
to handle the assistant's responses.run_assistant
method of theAssistantManager
class now uses the newEventHandler
class to handle the assistant's responses.assistant_manager.py
file.Fixes #10.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: