Commit Graph
2369 Commits
Author SHA1 Message Date
a47dc2b634 Apply suggestions from code review
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
2024-09-19 14:37:32 -07:00
Nuno Campos 95c1ca3adc Fix 2024-09-19 13:20:45 -07:00
Nuno Campos 5de9b35416 Finish 2024-09-19 13:01:54 -07:00
Nuno Campos 4f767cd2ca Fix 2024-09-19 11:46:21 -07:00
Nuno Campos cc318b1156 Fix 2024-09-19 11:43:30 -07:00
Nuno Campos 9a8cc75ea2 Fix some typing issues in langgraph lib 2024-09-19 11:38:41 -07:00
Nuno Campos b529365f5b Remove ignore for 3.9 2024-09-19 09:19:26 -07:00
Nuno Campos 95304d658a Fix 3.9 2024-09-19 08:51:15 -07:00
Nuno Campos 6c0339ca4b ci: Enable mypy checks for checkpoint-sqlite lib 2024-09-19 08:46:44 -07:00
Nuno Campos b8a8651c23 ci: Enable mypy checks for checkpoint-postgres lib 2024-09-19 08:40:31 -07:00
Nuno Campos c793a9e36d Use type var default 2024-09-19 08:28:59 -07:00
Nuno Campos 333c5f5501 Fix type issues in tests 2024-09-18 18:16:51 -07:00
Nuno Campos 4d26c3599f ci: Enable mypy checks for checkpoint lib 2024-09-18 18:12:11 -07:00
Andrew NguonlyandGitHub d4ba315ae2 Add section for LANGCHAIN_TRACING_SAMPLING_RATE to env vars page. (#1760) 2024-09-18 15:08:00 -07:00
Nuno CamposandGitHub 4ba803b415 Merge pull request #1751 from langchain-ai/nc/17sep/stream-messages
Add stream_mode=messages
2024-09-18 14:01:12 -07:00
Nuno Campos 9235178c88 Finish 2024-09-18 13:56:04 -07:00
22c78050dd docs: Clarify default_retry_on retry behavior for exceptions (#1754)
* docs: Clarify exceptions retried by default_retry_on in retry policy tutorial

- Added a remark in the tutorial explaining that the `default_retry_on` function retries on any exception except for the following:
  - ValueError
  - TypeError
  - ArithmeticError
  - ImportError
  - LookupError
  - NameError
  - SyntaxError
  - RuntimeError
  - ReferenceError
  - StopIteration
  - StopAsyncIteration
  - OSError

* http status codes

---------

Co-authored-by: Itay Etelis <itay.etelis@ibm.com>
Co-authored-by: isaac hershenson <ihershenson@hmc.edu>
2024-09-18 20:48:10 +00:00
Nuno CamposandGitHub babcf10c1c Merge pull request #1688 from langchain-ai/wfh/tracing_interops_norebase
Add tracing propagation test
2024-09-18 13:43:58 -07:00
William Fu-HinthornandNuno Campos 2d98024487 Assert invariants 2024-09-18 13:37:38 -07:00
William Fu-HinthornandNuno Campos f7d440ec5f Add tracing propagation test 2024-09-18 13:37:33 -07:00
Nuno Campos efb572f15b Add missing branch 2024-09-18 13:18:37 -07:00
William FHandGitHub b062b2462f [Docs] Add add message ref (#1758) 2024-09-18 13:13:39 -07:00
Nuno CamposandGitHub d46fd258bf Merge pull request #1753 from Etelis/bugfix-retry-nodes-exception-handling
[Bug Fix] retry_on handling and add support for lists in RetryPolicy
2024-09-18 13:01:38 -07:00
Nuno CamposandGitHub e40aabb1c1 Update retry.py 2024-09-18 10:36:40 -07:00
Nuno CamposandGitHub 0bfeb7f4e1 Update types.py 2024-09-18 10:24:28 -07:00
Nuno CamposandGitHub fd0b52f4ff Update retry.py 2024-09-18 10:23:52 -07:00
Nuno CamposandGitHub f4962479d8 Merge pull request #1757 from langchain-ai/nc/18sep/unit-test-cancelled
Add one more unit test for exception propagation
2024-09-18 09:01:31 -07:00
Nuno CamposandGitHub 94fa06e5f7 Merge pull request #1749 from langchain-ai/nc/17sep/stream-subgraph-sync
Stream output from subgraphs while in-progress for sync stream
2024-09-18 09:01:15 -07:00
Nuno Campos 680fa3c226 Add one more unit test for exception propagation
- we already have plenty of tests for this, but adding one more with a slight variation
2024-09-18 08:53:47 -07:00
Isaac FranciscoandGitHub 0498ca346b docs: remove warnings/update diagrams (#1746)
* remove warnings/udpate diagrams

* replace get_relevant_documents with invoke
2024-09-18 08:53:28 -07:00
Itay Etelis adf5cb0ff1 Fix retry_on handling in run_with_retry
- Correctly distinguish between exception classes, lists/tuples of exception classes, and callables.
- Add support for lists in `retry_on`, alongside tuples.
- Prevent exception classes from being incorrectly treated as callables.
- Raise a `TypeError` if `retry_on` is of an unsupported type.
2024-09-18 13:41:22 +03:00
Itay Etelis 6873229bbf Support lists in retry_on for RetryPolicy
Previously, `retry_on` in `RetryPolicy` accepted only exception classes, tuples of exception classes, or callables.
Update the `retry_on` type annotation to include `List[Type[Exception]]`

Changes:
- Updated `retry_on` in `RetryPolicy` to accept `List[Type[Exception]]`.
2024-09-18 13:39:04 +03:00
Nuno Campos 2a769fb39e Less fun 2024-09-17 17:51:18 -07:00
Nuno Campos c0d8493db5 Only look at chain runs which are nodes 2024-09-17 17:32:14 -07:00
Nuno Campos 01bb6cbd4d Add stream_mode=messages
- yields messages token-by-token from LLMs, and any messages returned from a node
2024-09-17 17:27:37 -07:00
Isaac FranciscoandGitHub 7d3389b6f1 docs: fix links (#1748)
* fix links

* branching link

* readme compatibility
2024-09-17 13:05:37 -07:00
Nuno Campos 3a2a4e44b2 Stream output from subgraphs while in-progress for sync stream
- previously implemented only for async stream
2024-09-17 12:50:29 -07:00
Eugene YurtsevandGitHub b11552a10a Update all URLs to langchain docunotebooks (#1745) 2024-09-17 15:01:22 -04:00
Nuno CamposandGitHub 36c757e758 Merge pull request #1740 from langchain-ai/nc/17sep/deprecation-warnings
Fix some deprecation warnings in tests
2024-09-17 11:57:22 -07:00
Nuno CamposandGitHub a520dc6106 Merge pull request #1744 from langchain-ai/nc/17sep/sync-benchmarks
Add sync benchmarks
2024-09-17 11:57:14 -07:00
Nuno Campos da901b01d8 Fix flaky test 2024-09-17 10:52:39 -07:00
Nuno CamposandGitHub f03dc2f006 Merge pull request #1743 from langchain-ai/nc/17sep/runner-fast-path
perf: Implement fast path in Runner for single-task steps
2024-09-17 10:44:35 -07:00
Nuno Campos 21d60b0d9c Add sync benchmarks 2024-09-17 10:38:49 -07:00
Jacob LeeandGitHub 47a68c16d5 feat(js-sdk): Support CJS (#1742)
* feat(js-sdk): Support CJS

* Bump version
2024-09-17 10:28:23 -07:00
Nuno Campos 9644525b59 Fix some deprecation warnings in tests 2024-09-17 10:19:28 -07:00
Nuno Campos 76ff7c3f1a perf: Implement fast path in Runner for single-task steps
- if the current step has a single task then we can execute it inline, instead of moving it to asyncio task / bg thread
2024-09-17 10:19:19 -07:00
Nuno CamposandGitHub c4d4d61a43 Merge pull request #1735 from langchain-ai/nc/16sep/stream-subgraph-in-progress
Stream subgraph output while it executes
2024-09-17 10:14:26 -07:00
Nuno Campos f59435a892 Add more comments 2024-09-17 09:31:48 -07:00
Nuno Campos bd2ecba622 Fix for py 3.9 2024-09-17 09:29:16 -07:00
Isaac FranciscoandGitHub bfd18f76dd docs: Tutorials up to date (#1734)
* edits

* add js code to web voyager
2024-09-17 08:11:41 -07:00