langchain/libs/core/langchain_core/tracers
Nuno Campos e86fd946c8
In stream_event and stream_log handle closed streams (#16661)
if eg. the stream iterator is interrupted then adding more events to the
send_stream will raise an exception that we should catch (and handle
where appropriate)

<!-- Thank you for contributing to LangChain!

Please title your PR "<package>: <description>", where <package> is
whichever of langchain, community, core, experimental, etc. is being
modified.

Replace this entire comment with:
  - **Description:** a description of the change, 
  - **Issue:** the issue # it fixes if applicable,
  - **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR
gets announced, and you'd like a mention, we'll gladly shout you out!

Please make sure your PR is passing linting and testing before
submitting. Run `make format`, `make lint` and `make test` from the root
of the package you've modified to check this locally.

See contribution guidelines for more information on how to write/run
tests, lint, etc: https://python.langchain.com/docs/contributing/

If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.

If no one reviews your PR within a few days, please @-mention one of
@baskaryan, @eyurtsev, @hwchase17.
 -->
2024-01-27 08:09:29 -08: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 BUG: more core fixes (#13665) 2023-11-21 15:15:48 -08:00
langchain_v1.py core[patch]: deprecate v1 tracer (#15608) 2024-01-05 19:25:19 -05:00
langchain.py core[minor]: RFC Add astream_events to Runnables (#16172) 2024-01-18 21:27:01 -05:00
log_stream.py In stream_event and stream_log handle closed streams (#16661) 2024-01-27 08:09:29 -08:00
root_listeners.py docstrings core update (#14871) 2023-12-18 17:13:35 -08:00
run_collector.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00
schemas.py core[patch]: deprecate v1 tracer (#15608) 2024-01-05 19:25:19 -05:00
stdout.py REFACTOR: Refactor langchain_core (#13627) 2023-11-21 08:35:29 -08:00