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
vbarda
a52f397db8
Merge branch 'main' into vb/add-sync-client
2024-09-06 15:28:24 -04:00
Nuno Campos
770132dd79
sdk-py: Add values to get/list threads
2024-08-30 14:23:10 -07:00
Nuno Campos
8c2fefcb28
sdk-py: Add values to Thread schema
2024-08-27 08:42:55 -07:00
Nuno Campos
03785c7d83
sdk: Add on_completion param
2024-08-24 21:34:35 -07:00
Nuno Campos
19b382335f
sdk: Add on_disconnect arg to create/wait streaming run
2024-08-22 17:03:11 -07:00
vbarda
422ed92aef
sdk-py: add sync client
2024-08-20 15:42:43 -04:00
Nuno Campos
85454b6371
sdk: Use ASGI transport when called inside langgraph-api
2024-08-03 11:17:34 -07:00
Nuno Campos
15ded2c17b
Mark all schemas as optional in js and py sdk typings
2024-08-01 09:43:46 -07:00
Vadym Barda and GitHub
647c5737f0
sdk-py: add if_exists to threads.create ( #1009 )
2024-07-15 12:15:43 -04:00
Isaac Francisco and GitHub
1fe13cb009
sdk-py: added Cron search functionality ( #804 )
...
* first draft
* minor fix
* second draft
* reformat
* rename
* remove f-string
* fmt
* fmt
* fmt
* fmt
* fmt
* typing
* fmt
* fmt
* fmt
* pagination
* fmt
* fmt
* schema
* fmt
* fmt
2024-06-28 16:23:15 -07:00
Nuno Campos and GitHub
8d103667c8
sdk: Add support to filter threads by status ( #842 )
2024-06-26 14:44:27 -07:00
vbarda
4cdb64884d
merge latest libs
2024-06-18 11:17:48 -04:00
vbarda
1a06d500d4
libs: add cli, sdk-py, sdk-js and move core langgraph
2024-06-17 20:37:25 -04:00