Commit Graph

109 Commits

Author SHA1 Message Date
Hunter Lovell 9102d526c8 fix(langgraph): propagate tracer metadata defaults from configurable (#2315)
## Summary

This updates Pregel callback manager initialization to pass
`tracerInheritableMetadata` defaults derived from `config.configurable`,
and narrows `ensureLangGraphConfig` metadata mirroring to the
allowlisted LangGraph identifiers used in stream/runtime metadata.

## Changes

### `@langchain/langgraph` (`libs/langgraph-core`)

- Updated Pregel callback manager setup to configure core callbacks with
`tracerInheritableMetadata` based on configurable primitive values,
excluding internal and secret-like keys.
- Hoisted tracing default logic into `_getTracingMetadataDefaults` and
`_excludeAsMetadata` for parity with the Python implementation shape.
- Restricted `ensureLangGraphConfig` configurable-to-metadata
propagation to the identifier allowlist:
  - `thread_id`
  - `checkpoint_id`
  - `checkpoint_ns`
  - `task_id`
  - `run_id`
  - `assistant_id`
  - `graph_id`
- Updated config tests to assert the narrowed metadata propagation
behavior.
2026-04-15 18:48:41 -07:00
Christian Bromann 2b62610710 feat(sdk): support for headless tools (#2281) 2026-04-03 22:07:54 -07:00
dependabot[bot] 271f9750f0 chore(deps): bump the langchain group across 1 directory with 7 updates (#2270)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-01 23:59:19 -07:00
Hunter Lovell 1e1ecbbcf8 feat: merge v1 (#1733)
Co-authored-by: Tat Dat Duong <david@duong.cz>
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Nuno Campos <nuno@langchain.dev>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-17 16:34:43 -07:00
Tim Harper 9ddfafc501 fix(docs): remove incorrect comment (#1719) 2025-10-09 18:05:46 +02:00
David Duong b5b2196f67 fix(docs): quick docs update for Zod 4 changes (#1594) 2025-08-29 14:59:29 +00:00
Kostas Minaidis ed4ce9ef5b Quick typo fix: objets -> objects (#1497) 2025-08-06 02:13:21 +02:00
leopardracer bf8b1e48cb Fix Typos in Documentation and Example Notebooks (#1280) 2025-06-18 02:27:28 +02:00
David Duong 4ad95745c8 release(langgraph): 0.3.0 (#1250) 2025-06-03 00:35:34 +02:00
David Duong 43d1f326a8 fix(docs): typos (#1167) 2025-05-30 18:01:05 +02:00
Tat Dat Duong ca21d29970 fix(docs): remove await for streamEvents
Closes Docs issue: `await agent.streamEvents()` is complained by TypeScript because it's not `Promise` #1086
2025-05-19 16:39:37 +02:00
Tat Dat Duong 685fd15802 fix(docs): update typo in define-state
Closes Typo "convince" under "How to define graph state" documentation section #1113
2025-05-19 16:35:45 +02:00
omahs 24dc11188d fix(docs) typos 2025-05-09 16:39:00 +02:00
Mustafa 54104cc48b remove content duplicate of "the same the same" in docs (#1102) 2025-04-16 13:55:50 +00:00
Jacob Lee 4961f8299f docs: Fix structured output docs sidebar + links (#1056) 2025-03-27 09:35:13 -07:00
Tat Dat Duong f6c2fa6a6e Use WeakSet to allow patching from multiple Zod instances, rely on .default() instead, remove buggy input, outputconstructor arg 2025-03-25 20:43:57 +01:00
Tat Dat Duong 5d343cefe7 Add quick mention 2025-03-25 14:51:13 +01:00
nick-w-nick 8ac68856ff fix(docs): Add section to demonstrate saving a graph diagram locally (#906) 2025-03-25 11:05:07 +00:00
Rafał Szulejko ce6d6ea087 Updated dead link in time-travel docs (#971) 2025-03-13 21:44:38 +00:00
Jacob Lee 3fd8151151 docs: Add missing glossary section, recursion limit guide, caveats to interrupt() function, fix broken links (#990) 2025-03-13 10:32:10 -07:00
Ben Burns 3ca110c8b5 fix(docs): remove another debugging line - more minor tweaks (#963) 2025-03-06 10:26:02 +00:00
Ben Burns 3b25a7bc95 fix(docs): format & remove debugging line from semantic search doc (#959) 2025-03-06 09:01:55 +00:00
Ben Burns 6192a37495 fix(docs): fix semantic search howto doc 2025-03-06 21:38:09 +13:00
Ben Burns 4d4a102123 fix(docs): fix doc build error (#957) 2025-03-06 16:03:12 +13:00
Ben Burns 3bb244d335 chore(docs): update docs for getCurrentTaskInput (#956) 2025-03-06 02:46:31 +00:00
Jacob Lee cedb33094f docs: Optimize notebook (#820) 2025-01-29 08:05:23 -08:00
Vadym Barda 6c80e18371 docs: update concepts/howto for Command (#800)
Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2025-01-28 20:16:10 -08:00
Ben Burns 894994a28d feat(langgraph): functional API (#793)
Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
2025-01-29 13:56:02 +13:00
Jacob Lee d97a008909 docs: Update docs for functional API (#809) 2025-01-27 20:48:22 -08:00
isaac hershenson 86a566b046 draft 2025-01-22 09:15:04 -08:00
Jacob Lee 7979aacbf0 fix(langgraph): Make streamMode updates yield a final interrupt event, values yield final values (#773) 2025-01-04 22:15:23 -08:00
Jacob Lee e1ddb6fc91 docs: Document the nostream tag for stream mode messages (#769) 2024-12-30 23:22:52 +00:00
Brace Sproul d19858a04a fix(docs): Update HITL and add interrupt docs (#738) 2024-12-13 11:57:07 -08:00
Jacob Lee 403cd51dfd feat(langgraph): Adds error page for unreachable nodes (#741) 2024-12-12 16:26:03 -08:00
Jacob Lee 3ef8ace0f0 feat(langgraph): Allow tools to return Commands and update graph state (#740) 2024-12-12 15:42:34 -08:00
Jacob Lee dd7b9e8d5f docs: Adds multi agent network docs (#728) 2024-12-10 17:34:37 +00:00
Jacob Lee fd2f6dfd63 docs: Add command docs (#725) 2024-12-10 02:47:53 -08:00
Jacob Lee bbde3ed7d8 docs: Adds semantic search docs (#715) 2024-12-06 10:57:18 +00:00
Jacob Lee dd719dfd73 feat(prebuilt): Adds stateModifier param to createReactAgent (#714) 2024-12-05 18:46:49 -08:00
Jacob Lee aacafa1744 docs: Add breadcrumbs (#670)
Co-authored-by: vbarda <vadym@langchain.dev>
2024-11-19 14:39:46 +00:00
Jacob Lee 7d9f5d991c docs: Adds compatibility section to streaming docs (#669) 2024-11-11 17:10:05 -08:00
Jacob Lee 742eee028e docs: Fix header and sidebar on stream tokens page (#662) 2024-11-07 07:49:55 -08:00
Jacob Lee 0fd8a277d6 docs: Fix headers and sidebar in custom streaming page (#661) 2024-11-07 07:48:31 -08:00
Jacob Lee 3e3fa130b2 feat(langgraph): Adds custom streaming mode (#653) 2024-11-02 02:35:16 -07:00
Jacob Lee 60d26fb250 feat: Move error reference pages (#607) 2024-10-16 21:17:52 -07:00
Jacob Lee 8f6b6cd14c feat(langgraph): Add base error class, improve error messages (#601) 2024-10-16 20:05:47 -07:00
Jacob Lee be1c87cd97 docs: Fix style and links (#606) 2024-10-16 09:55:19 -07:00
Jacob Lee 014d4d08e8 docs: Port subgraph how-tos from Python (#604) 2024-10-15 20:23:59 -07:00
Jacob Lee d3c8204026 docs: Typo fixes (#587) 2024-10-13 08:29:40 -07:00
Jacob Lee 57051397b7 docs: Fix typo (#586) 2024-10-12 19:50:13 +00:00