Fix deprecation warning: Replace get_events with search_events (#9188)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Xingyao Wang
2025-06-17 12:54:29 -04:00
committed by GitHub
parent 65071550b6
commit 567af43a71
5 changed files with 10 additions and 10 deletions

View File

@@ -95,7 +95,7 @@ async def auto_generate_title(
# Find the first user message
first_user_message = None
for event in event_stream.get_events():
for event in event_stream.search_events():
if (
event.source == EventSource.USER
and isinstance(event, MessageAction)