fix: error handling in agent stream (#5703)

This commit is contained in:
cthomas
2025-10-23 14:12:05 -07:00
committed by Caren Thomas
parent 899f70661c
commit e418d7c5bd

View File

@@ -225,7 +225,7 @@ class LettaAgentV3(LettaAgentV2):
)
except Exception as e:
self.logger.warning("Error during agent stream", e)
self.logger.warning(f"Error during agent stream: {e}", exc_info=True)
if first_chunk:
raise # only raise if first chunk has not been streamed yet