langchain/libs/core/langchain_core/tracers
Eugene Yurtsev 93472ee9e6
core[patch]: Replace memory stream implementation used by LogStreamCallbackHandler (#17185)
This PR replaces the memory stream implementation used by the 
LogStreamCallbackHandler.

This implementation resolves an issue in which streamed logs and
streamed events originating from sync code would arrive only after the
entire sync code would finish execution (rather than arriving in real
time as they're generated).

One example is if trying to stream tokens from an llm within a tool. If
the tool was an async tool, but the llm was invoked via stream (sync
variant) rather than astream (async variant), then the tokens would fail
to stream in real time and would all arrived bunched up after the tool
invocation completed.
2024-02-12 21:57:38 -05:00
..
__init__.py core[patch], langchain[patch]: fix required deps (#14373) 2023-12-07 14:24:58 -08:00
base.py core[minor]: RFC Add astream_events to Runnables (#16172) 2024-01-18 21:27:01 -05:00
context.py core[patch]: deprecate v1 tracer (#15608) 2024-01-05 19:25:19 -05:00
evaluation.py core[patch]: docstring update (#16813) 2024-02-09 12:47:41 -08:00
langchain_v1.py core[patch]: docstring update (#16813) 2024-02-09 12:47:41 -08:00
langchain.py Support serialization when inputs/outputs contain generators (#17338) 2024-02-09 16:24:54 -08:00
log_stream.py core[patch]: Replace memory stream implementation used by LogStreamCallbackHandler (#17185) 2024-02-12 21:57:38 -05:00
memory_stream.py core[patch]: Replace memory stream implementation used by LogStreamCallbackHandler (#17185) 2024-02-12 21:57:38 -05:00
root_listeners.py core[patch]: docstring update (#16813) 2024-02-09 12:47:41 -08:00
run_collector.py core[patch]: docstring update (#16813) 2024-02-09 12:47:41 -08:00
schemas.py core[patch]: deprecate v1 tracer (#15608) 2024-01-05 19:25:19 -05:00
stdout.py