mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-28 19:05:31 +02:00
fix sync /chat call to agents service
This commit is contained in:
parent
57693b36cc
commit
a59d8c3ed3
6 changed files with 29 additions and 31 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import traceback
|
||||
from copy import deepcopy
|
||||
from datetime import datetime
|
||||
import json
|
||||
|
|
@ -394,7 +395,6 @@ async def run_turn_streamed(
|
|||
yield ('done', {'state': final_state})
|
||||
|
||||
except Exception as e:
|
||||
import traceback
|
||||
print(traceback.format_exc())
|
||||
print(f"Error in stream processing: {str(e)}")
|
||||
yield ('error', {'error': str(e), 'state': final_state}) # Include final_state in error response
|
||||
Loading…
Add table
Add a link
Reference in a new issue