William FH and GitHub
acae5e23b0
chore(sdk-py): cron tz support ( #7108 )
2026-03-10 17:38:02 -07:00
Sydney Runkle and GitHub
46fed9d161
feat: type safe stream/invoke w/ proper output type coercion ( #6961 )
...
Adding type safe streaming + more robust pydantic + dataclass support on
graph outputs
* type safe streaming via #6931
* type safe invoke via
https://github.com/langchain-ai/langgraph/pull/6963
* actually thread through types via parametrization in
https://github.com/langchain-ai/langgraph/pull/7009
* deprecation of backwards compatible accessor via
https://github.com/langchain-ai/langgraph/pull/7011
full spec of changes:
https://github.com/langchain-ai/langgraph/issues/7008
proving out that required changes are minimal even when we update the
default to v2: https://github.com/langchain-ai/langchain/pull/35541
2026-03-09 17:52:36 +00:00
b89ef60b91
feat(sdk-py): add extract parameter to threads.search() ( #6880 )
...
## Summary
- Adds `extract` parameter to `threads.search()` in both async and sync
clients
- Adds `extracted` field to the `Thread` TypedDict response type
- The `extract` parameter accepts a `dict[str, str]` mapping aliases to
JSONB paths (e.g., `{"last_msg": "values.messages[-1]"}`)
- Depends on server-side support in
https://github.com/langchain-ai/langgraph-api/pull/2609
## Test plan
- [ ] Verify types are correct via lint/format (already passing)
- [ ] Integration test against server with extract feature enabled
Release Notes: Add `extract` parameter to `threads.search()` for
extracting nested values from thread data during search.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-23 20:29:59 -08:00
9babffa054
feat(sdk-py): add stream_mode, stream_subgraphs, stream_resumable, durability to crons ( #6876 )
...
## Summary
- Adds `stream_mode`, `stream_subgraphs`, `stream_resumable`, and
`durability` parameters to cron `create`, `create_for_thread`, and
`update` methods in both async and sync clients
- Adds corresponding fields to the `CronUpdate` TypedDict in `schema.py`
- Adds `checkpoint_during` deprecation warnings to cron create methods
(consistent with the runs client pattern)
These fields were added to the OpenAPI spec in langgraph-api but were
not yet reflected in the Python SDK.
## Test plan
- [x] `make format` passes
- [x] `make lint` passes
- [x] `make test` passes (69/69, including sync/async API parity test)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-19 11:10:07 -08:00
William FH and GitHub
095da17833
chore: state_updated_at sort by ( #6857 )
2026-02-18 10:41:23 -08:00
William FH and GitHub
eac6abb8ee
chore: update to add prune method ( #6804 )
2026-02-14 10:02:07 -08:00
1fb405bd55
feat(sdk-py): add update method for crons client ( #6742 )
...
# Description
- Update Python SDK to add patch method to cron client
- This method lets users modify cron attributes (except assistant ID and
thread ID)
---------
Co-authored-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2026-02-04 08:23:48 -08:00
Rafid Saad and GitHub
63bd852da9
feat(sdk-py): add support for enabling/disabling crons ( #6740 )
...
# Description
- Update Python SDK to support enabling/disabling crons
- Pass `enabled` to cron `create`, `create_for_thread`, and `search`
methods
2026-02-03 10:36:48 -08:00
454af21896
feat(sdk-py): cron.on_run_completed support ( #6662 )
...
**Description:** this PR adds cron.on_run_completed support to the SDK.
documentation https://github.com/langchain-ai/docs/pull/2147
js equivalent change
https://github.com/langchain-ai/langgraphjs/pull/1845
original langgraph-api change
https://github.com/langchain-ai/langgraph-api/pull/1731
**Issue:** LSD-172
---------
Signed-off-by: Connor Braa <cwlbraa@langchain.dev >
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-09 13:07:32 -08:00
efe78447b3
feat(sdk-py): emit id as part of stream events ( #6581 )
...
- **Description:** Provide the id of the event for routes that use SSE
streams. This will allow for more custom retry logic when streams
disconnect if needed.
- **Issue:** N/A
- **Dependencies:** N/A
- **Twitter handle:** N/A
---------
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com >
2025-12-12 17:16:48 -05:00
William FH and GitHub
55ed7d4b49
feat: Include pagination in assistants search response ( #6526 )
2025-12-01 20:18:26 -08:00
William FH and GitHub
f8c1a323cc
chore(sdk-py): Improve type-hinting of inputs ( #6480 )
2025-11-24 18:29:03 -08:00
Andrew Nguonly and GitHub
33fbd1bb9c
feat(sdk-py): Add name parameter to Assistants search API ( #6483 )
...
**Description:** The Agent Server API now supports searching for
assistants by name.
2025-11-24 10:58:54 -08:00
Sydney Runkle and GitHub
2d3121a17c
chore: drop Python 3.9 (and syntax) ( #6289 )
...
* `strict=False` is the default, pyupgrade to min version 3.10 adds this
to be explicit w/ behavior
2025-10-16 20:17:46 -04:00
Isaac Francisco and GitHub
1756ce1dd2
feat(sdk-py): add endpoint for thread streaming ( #6009 )
...
SDK support for:
https://github.com/langchain-ai/langgraph-api/pull/1217/
2025-08-28 16:12:04 +00:00
Isaac Francisco and GitHub
0b4638269b
feat(sdk-py): add durability flag ( #5963 )
2025-08-27 19:21:25 +00:00
William FH and GitHub
723d4641b0
chore(sdk-py): Update params type in SDK ( #5937 )
2025-08-18 17:53:20 +00:00
William FH and GitHub
0cd8745aad
feat(sdk-py): Select-statement ( #5933 )
2025-08-18 06:42:01 -07:00
Sydney Runkle and GitHub
9e3cb1f034
feat(sdk-py): sdk support for context API ( #5566 )
...
Adding support for the `context` arg to `invoke/stream` to the sdk. This
is paired with an update to the API as well that adds `context` support
to the `assistants` and `runs` endpoints.
Bumping version to v0.2.0 on the `v1` branch given this and the
interrupt schema changes.
2025-07-22 10:48:12 -04:00
Sydney Runkle and GitHub
d1f0799002
Merge branch 'main' into v1
2025-07-21 14:35:13 -04:00
Sydney Runkle and GitHub
819eae891e
feat(sdk-py): add interrupts to ThreadState ( #5603 )
2025-07-21 16:33:00 +00:00
Sydney Runkle and GitHub
03bec97767
feat(sdk-py): add interrupts to thread state ( #5580 )
2025-07-20 23:46:38 +00:00
Sydney Runkle and GitHub
d1710e2eac
change[langgraph]: clean up Interrupt interface for v1 ( #5405 )
2025-07-09 14:03:08 -04:00
lc-arjun and GitHub
16250fe038
chore: update api ref docs and fix schemas ( #5219 )
2025-06-26 17:41:03 -07:00
lc-arjun and GitHub
4a26ca5bc2
feat: crons sorting sdk ( #5197 )
...
* feat: crons sorting sdk
* update sync clients
* lock file
* lock file
* lock file
2025-06-26 11:27:44 -07:00
Nuno Campos
417103066b
Lint
2025-06-16 09:29:03 -07:00
Sydney Runkle and GitHub
5e7566f4a3
lint: use pep 604 union syntax and pep 585 generic syntax ( #4963 )
...
* new union syntax
* fix test
* second round of conversions by injecting future annotations
* format + add top level makefile
2025-06-04 21:50:16 -04:00
Tat Dat Duong
e0a4420b8e
feat(sdk-py): resumable streams
2025-05-22 00:03:41 +02:00
Sydney Runkle and GitHub
228a08b966
ci: migrate to uv! ( #4698 )
...
* Migrate to `uv`
* Format `pyproject.toml` files properly
* Remove upper bounds on dependencies, and bounds on dev dependencies
(we should be using latest)
* Move to hatch for packaing
In the future we should:
* Set up dependabot / automate lockfile updates and tests
* Add tests for min compatible versions (I'll do this right after merge)
* Use dynamic versioning
* Bump `pydantic` to v2.11.4 in the lockfile, we have some tests failing
2025-05-15 17:39:14 -07:00
William FH and GitHub
d6e20e6d09
Add missing 'running' RunStatus ( #4508 )
2025-05-02 05:36:58 +00:00
lc-arjun and GitHub
03c34bf2cf
feat: assistants sorting sdk spec ( #4484 )
2025-04-30 17:05:37 -04:00
William FH and GitHub
30f9bcd8de
Make docstring even less ambiguous ( #4308 )
2025-04-16 23:39:04 +00:00
6e54f74fa9
sdk-py: Add option to set description via client sdk ( #4147 )
...
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com >
2025-04-02 21:26:14 +00:00
Arjun Natarajan
098a199cb9
update assistant version class
2025-03-05 15:39:34 -05:00
William FH and GitHub
82c9d4b368
Update docstrings for command & send ( #3492 )
2025-02-19 05:28:45 -08:00
jacoblee93
6aef3e0117
Update Python types too
2024-12-30 10:29:01 -08:00
Nuno Campos
b4b3ac6f57
lib: Merge GraphCommand and Command
...
- Now we have only Command
- Command(goto=) combines the previous functionality of Command(send=) and Command(goto=)
2024-12-04 15:12:03 -08:00
Nuno Campos and GitHub
64b99c187a
Merge pull request #2544 from langchain-ai/brace/type-interrupts-py
...
fix(sdk-py): Add typing for interrupts
2024-12-02 20:52:19 -05:00
William FH and GitHub
ee8653d1c5
[SDK] Add SearchItem ( #2567 )
2024-11-27 22:50:52 -08:00
bracesproul
a1ec55abc5
fix(sdk-py): Add typing for interrupts
2024-11-26 11:40:47 -08:00
Nuno Campos
229a9e19a8
sdk-py: Add command arg for creating runs
2024-11-13 17:06:56 -08:00
Andrew Nguonly and GitHub
ecb584cbe0
sdk: Add action query param to cancel Run methods ( #2284 )
2024-11-01 13:32:49 -07:00
Nuno Campos and GitHub
46892855c5
Merge pull request #2242 from langchain-ai/nc/30oct/remote-subgraphs
...
fix: RemoteGraph should propagate subgraphs streaming
2024-10-30 14:23:45 -07:00
Nuno Campos
61abee4bd4
Lint
2024-10-30 13:59:31 -07:00
Vadym Barda and GitHub
4717632ce7
sdk-py: more docstring updates ( #2225 )
2024-10-30 01:22:29 +00:00
Tat Dat Duong
5c44dcef81
fix(sdk): add error thread state
2024-10-24 18:16:21 +02:00
Nuno Campos and GitHub
08a1ed38f1
Merge pull request #2092 from langchain-ai/an/11oct/remote-graph-interrupt
...
Update `stream()` and `astream()` methods in `RemoteGraph` to process `updates` event types
2024-10-23 13:48:43 -07:00
Nuno Campos
1121806ba4
Add if_not_exists
2024-10-23 13:23:49 -07:00
Nuno Campos
dc083c6563
Fix
2024-10-14 11:31:03 -07:00
Andrew Nguonly and GitHub
fd1a9e4da3
sdk-py: Add custom stream mode to StreamMode type ( #2051 )
...
### Summary
The LangGraph API supports `custom` stream mode type.
Reference:
https://github.com/langchain-ai/langgraph/blob/main/docs/docs/cloud/reference/api/openapi.json#L2403
2024-10-08 12:44:37 -07:00