Commit Graph
5040 Commits
Author SHA1 Message Date
Nuno Campos 52852cb226 Update langchain-core 2024-05-06 12:20:20 -07:00
Nuno Campos 48865daf02 Fix checkpoint lineage for updates/resumes 2024-05-06 11:53:20 -07:00
Nuno Campos 251bd9744d Fix lineage of maual state updates 2024-05-06 11:53:20 -07:00
Nuno Campos 48df2d1084 Add assert 2024-05-06 11:53:20 -07:00
Nuno Campos 611ecdb1cd Checkpoint inputs before starting the first step for easier error recovery
- this enables easier retrying, for any error just do .invoke(None, config) no matter which step the error happened on
2024-05-06 11:53:20 -07:00
Nuno Campos f160f82912 Add checkpoint metadata fields
- source: input, update or loop
- step: int
- make step counter continue from previous last step
2024-05-06 11:52:49 -07:00
Nuno Campos 3ff3def62b Remove option to only checkpoint at end of run
- Now that checkpoint at end of each step adds no latency there is not point to keep this
- This will make it easier to add future features
2024-05-06 11:52:49 -07:00
Nuno Campos f304908102 Add metadata to checkpoints
- not yet used in this PR
2024-05-06 11:52:49 -07:00
dependabot[bot]andGitHub 3f9faf1910 Bump jinja2 from 3.1.3 to 3.1.4
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 18:33:18 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d79b483a67 Bump tqdm from 4.66.2 to 4.66.3 (#385)
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.2 to 4.66.3.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.66.2...v4.66.3)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 11:31:55 -07:00
Erick FriisandGitHub 97a6f8ecb8 Merge pull request #400 from langchain-ai/erick/pinecone-example
pinecone example
2024-05-06 10:37:56 -07:00
Erick Friis 79660451bb pinecone example 2024-05-06 10:33:51 -07:00
William FHandGitHub e0770d68b3 Update notebooks to use bind_tools (#394) 2024-05-04 01:30:52 -07:00
William FHandGitHub 21b8cbfd33 Deprecate Chat agent executor & Function Calling Executor in Docs (#392) 2024-05-04 00:17:54 -07:00
William FHandGitHub 119bbe6bae Fixup dup pip (#389) 2024-05-03 15:49:51 -07:00
William FHandGitHub b7ec64df8d [Notebooks Pt 1/N] Fixup some Tool Calling + Import formatting + prebuilt usage (#388) 2024-05-03 15:48:10 -07:00
Nuno Campos 04fe48f661 Add (failing) test for drawing cyclic edge
- fix waiting for new release of langchain-core
2024-05-03 15:17:20 -07:00
Nuno CamposandGitHub a307fc9fc4 Merge pull request #384 from langchain-ai/wfh/markdown_link_relaaaaax
Markdown Link Check only on changed files
2024-05-03 12:41:02 -07:00
William Fu-Hinthorn 5d5ee80b08 ok maybe ok onschedule 2024-05-03 12:37:45 -07:00
William Fu-Hinthorn c18ef9160d Relax link check 2024-05-03 12:36:19 -07:00
Nuno Campos 7b03ce021c 0.0.44 2024-05-03 12:33:25 -07:00
Nuno Campos 446543d973 Fix RunnableCallable wrapper when sync func with config arg is invoked async 2024-05-03 12:33:12 -07:00
Nuno Campos 33961eb2f0 0.0.43 2024-05-03 12:03:19 -07:00
Nuno CamposandGitHub 4b15a307f8 Merge pull request #382 from langchain-ai/nc/26apr/fix-aiosqlite
Use a lock to fix aiosqlite checkpointer running setup multiple times if called in parallel
2024-05-03 12:01:15 -07:00
Nuno Campos 574614eab9 Fix aiosqlite checkpointer running setup multiple times if called in parallel
Use a lock instead
2024-05-03 11:40:23 -07:00
William FHandGitHub b185efe365 Check if conn is alive (#381) 2024-05-03 11:38:18 -07:00
Nuno Campos d6091f5fa4 0.0.42 2024-05-03 11:06:42 -07:00
Nuno CamposandGitHub 01860d6a73 Merge pull request #380 from langchain-ai/nc/3may/state-graph-prefer-pydantic-io-schema
StateGraph: use state schema as input/output schema if already a pydantic model
2024-05-03 11:03:49 -07:00
Nuno Campos 0e30723684 Lint 2024-05-03 11:01:34 -07:00
Nuno CamposandGitHub 3ae17e9dd1 Merge pull request #379 from langchain-ai/nc/3may/checkpoint-end-of-step-costfree
Make end-of-step chckpointing costfree
2024-05-03 11:00:56 -07:00
Nuno CamposandGitHub 47d057557c Merge pull request #378 from langchain-ai/nc/3may/state-history-pagination
Implement cursor pagination for get_state_history (time travel endpoint)
2024-05-03 11:00:24 -07:00
Nuno Campos 2ab84d1562 StateGraph: use state schema as input/output schema if already a pydantic model 2024-05-03 10:59:00 -07:00
Nuno Campos 45149d2dc5 Make end-of-step chckpointing costfree
- instead of waiting for checkpoint put before proceeding, submit to executor / event loop and await all at the end
2024-05-03 10:54:32 -07:00
Nuno Campos 42d3215e34 Implement cursor pagination for get_state_history (time travel endpoint)
- interface in base checkpointer
- implement in sqlite, aiosqlite, memory
- implement in Pregel.get_state_history()
2024-05-03 10:34:11 -07:00
Nuno Campos d732385b7c 0.0.41 2024-05-03 10:09:04 -07:00
Nuno CamposandGitHub bdea491801 Merge pull request #377 from langchain-ai/nc/3may/config-schema
Optional 2nd arg to StateGraph with config schema
2024-05-03 10:08:05 -07:00
Nuno Campos 467f42d799 Optional 2nd arg to StateGraph with config schema 2024-05-03 10:05:14 -07:00
Nuno CamposandGitHub 740011efa6 Merge pull request #376 from langchain-ai/harrison/configuration-branch
add how-to notebook for configuration
2024-05-03 10:01:19 -07:00
Harrison Chase 301d71ec34 cr 2024-05-02 18:57:06 -07:00
William FHandGitHub 8a38226078 Customer Support Bot Tutorial (Flight Assistant) (#375) 2024-05-02 16:53:18 -07:00
Nuno CamposandGitHub 8ec1d2e3e9 Merge pull request #363 from langchain-ai/harrison/add-args
Harrison/add args
2024-05-02 15:49:21 -07:00
Nuno Campos 27efba27c0 Update tests 2024-05-02 09:31:22 -07:00
Nuno Campos d723a1e752 Add name to debug payload 2024-05-02 09:26:32 -07:00
Harrison Chase dea85d236c Merge branch 'master' into harrison/add-args 2024-05-01 08:26:00 -07:00
Harrison Chase 97f3d66c0e cr 2024-05-01 08:17:21 -07:00
Nuno Campos b2020c1972 0.0.40 2024-04-30 16:55:44 -07:00
Nuno CamposandGitHub 7d3133b239 Merge pull request #370 from langchain-ai/nc/30apr/stream-mode-debug
Implement stream_mode=debug
2024-04-30 16:54:37 -07:00
Nuno Campos 5e322a6550 Implement stream_mode=debug
- outputs 3 types of payloads
-- task: node about to be executed
-- task_result: result of node execution
-- checkpoint: state values at end of superstep
2024-04-30 16:15:38 -07:00
Nuno CamposandGitHub 49c95cefcf Merge pull request #369 from langchain-ai/nc/30apr/test-async-cancellation
Add tests for async cancellation
2024-04-30 14:37:56 -07:00
Nuno CamposandGitHub 14a256919d Merge pull request #368 from langchain-ai/dqbd/pregel-serializable
feat(pregel): mark graph as serializable
2024-04-30 13:58:02 -07:00