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
Andrew Nguonly and GitHub
82c316b3f7
sdk-py: Update return type annotation for Thread.update_state() methods. ( #2050 )
...
### Summary
The response body of the endpoint `POST /threads/{thread_id}/state`
looks like this:
```
{
"checkpoint": {
"thread_id": "e2496803-ecd5-4e0c-a779-3226296181c2",
"checkpoint_ns": "",
"checkpoint_id": "1ef4a9b8-e6fb-67b1-8001-abd5184439d1",
"checkpoint_map": {}
}
}
```
2024-10-08 12:04:26 -07:00
William FH and GitHub
7ede237508
[Docs] Add SDK ref docs for the Store client ( #1974 )
2024-10-02 19:16:36 +00:00
Nuno Campos and GitHub
b1a4243055
Implement new Store interface ( #1834 )
2024-09-29 17:06:42 -07:00
Nuno Campos
dfa874aaf6
sdk: Add subgraphs method
2024-09-24 11:02:50 -07:00
vbarda
81c10a5f8e
Merge branch 'main' into vb/add-sync-client
2024-09-23 16:56:12 -04:00
Nuno Campos
41537c583a
sdk: Add support for resuming from checkpoint
2024-09-20 17:20:04 -07:00
Nuno Campos
e3d2f233a7
sdk: Update thread state methods for subgraphs
2024-09-20 16:52:41 -07:00
Isaac Francisco and GitHub
8b95adb1bd
sdk-py: add versioning for assistants ( #1665 )
...
* add get_versions to python sdk
* fml
* add change_version to sdk
* add assistant name to create
* document assistant name
* change method
* version in payload
* fml
* add js methods and types
* name -> assistant_name
* export onconflictbehavior
* add assistant name to create
* add metadata/limit/offset to sdk
* add assistant_name to update
* assistantversion schema
* export assistnatversion
* add metadata/limit/offset to sdk
* assistantversion schema
* fmt
* fmt
* change version -> set version
* fmt
* assistant_name -> name
* naming
2024-09-20 16:48:19 -07:00