The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix stream events/log with some kinds of non addable output (#17205)
Nuno Campos19ff81e74f51
diff --git a/libs/core/langchain_core/tracers/log_stream.py b/libs/core/langchain_core/tracers/log_stream.pyindex c6b8da943a..db56626451 100644--- a/libs/core/langchain_core/tracers/log_stream.py+++ b/libs/core/langchain_core/tracers/log_stream.py@@ -572,6 +572,7 @@ async def _astream_log_implementation(try:final_output = final_output + chunk # type: ignoreexcept TypeError:+ prev_final_output = Nonefinal_output = chunkpatches: List[Dict[str, Any]] = []if with_streamed_output_list: