William FH and GitHub
1c403f34c8
Allow blocking in dev ( #4109 )
cli==0.1.82
2025-04-01 05:52:25 -07:00
William Fu-Hinthorn
9bd78ed483
Allow blocking in dev
...
Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2025-04-01 05:45:47 -07:00
Nuno Campos and GitHub
a77db7d73d
Avoid creating checkpoint unless we're saving it ( #4106 )
...
- When checkpointing is disabled don't call create_checkpoint in
PregelLoop
- In local_read apply writes directly to copies of updated channels
- Add BaseChannel.copy() method to create channel copies with less
overhead
2025-03-31 19:13:36 -07:00
Nuno Campos
e85b7e6cd9
Lint
2025-03-31 18:46:51 -07:00
Nuno Campos
94fa46f9fa
Avoid creating checkpoint unless we're saving it
...
- When checkpointing is disabled don't call create_checkpoint in PregelLoop
- In local_read apply writes directly to copies of updated channels
- Add BaseChannel.copy() method to create channel copies with less overhead
2025-03-31 18:37:13 -07:00
Nuno Campos and GitHub
e50110ba91
Avoid raise-catch strategy in BaseChannel.checkpoint() ( #4105 )
...
- This mirrors the work done earlier on BaseChannel.get()
- Comparing to a sentinel value is significantly faster than raising and
catching an exception
2025-03-31 18:10:15 -07:00
Nuno Campos
fd64ada9de
Avoid raise-catch strategy in BaseChannel.checkpoint()
...
- This mirrors the work done earlier on BaseChannel.get()
- Comparing to a sentinel value is significantly faster than raising and catching an exception
2025-03-31 17:48:19 -07:00
Nuno Campos and GitHub
b15ec09c3b
Add fast path to serialize None values ( #4103 )
...
- If the value to serialize is None we can use encode it in the string
type, and skip msgpack encoding
- Use None value for edge/branch channels in StateGraph
2025-03-31 17:42:26 -07:00
Nuno Campos
5e9e7b79fe
Lint
2025-03-31 17:36:00 -07:00
Nuno Campos
c49a077789
Lint
2025-03-31 17:24:26 -07:00
Nuno Campos
881b07cf7f
Lint
2025-03-31 16:36:16 -07:00
Nuno Campos
0425d4e65d
Update
2025-03-31 16:29:07 -07:00
Nuno Campos
118016a21c
Add fast path to serialize None values
2025-03-31 16:15:56 -07:00
Nuno Campos and GitHub
bda3c3add9
Lazily create atomic counters in pregel scratchpad ( #4101 )
...
- many times these aren't actually used, so makes sense to delay
creation until needed
2025-03-31 15:44:00 -07:00
Nuno Campos
067b99c789
Lazily create atomic counters in pregel scratchpad
...
- many times these aren't actually used, so makes sense to delay creation until needed
2025-03-31 15:19:53 -07:00
Nuno Campos and GitHub
673cc5ad1a
Reduce perf impact of pregel scratchpad creation ( #4098 )
...
- make scratchpad class frozen now that its members are never reassigned
- replace next(gen expr) with for-loop to avoid allocating generator
objects
2025-03-31 15:13:38 -07:00
Nuno Campos
e9e9a96a0d
Reduce perf impact of pregel scratchpad creation
...
- make scratchpad class frozen now that its members are never reassigned
- replace next(gen expr) with for-loop to avoid allocating generator objects
2025-03-31 14:50:10 -07:00
Andrew Nguonly and GitHub
cf7136297e
docs: Add docs for more environment variables ( #4080 )
2025-03-28 15:40:16 -07:00
David Duong and GitHub
e5aae80e3a
feat(cli): add support for gen ui config ( #4079 )
cli==0.1.81
2025-03-28 23:14:56 +01:00
Tat Dat Duong
f629f68ec3
feat(cli): add support for gen ui config
2025-03-28 23:05:04 +01:00
Andrew Nguonly and GitHub
575de221fe
docs: Update Cloud SaaS and CLI documentation pages ( #4077 )
...
### Summary
1. Update API spec.
2. Clarify how to specify `requirements.txt` in `dependencies` list.
3. Clarify deletion policy for database.
4. Clarify resource allocation for `Production` type deployments.
5. Update supported Python versions.
2025-03-28 14:21:24 -07:00
David Duong and GitHub
d2fc5f0a0f
feat(sdk-js): run optimistic values mutator before any network request ( #4070 )
2025-03-28 21:57:33 +01:00
Tat Dat Duong
8e4b8b11ff
Add docs about optimistic updates
2025-03-28 21:52:37 +01:00
Tat Dat Duong
2808a7859a
Bump to 0.0.62
2025-03-28 21:39:44 +01:00
Tat Dat Duong
fb3c61ea4f
feat(sdk-js): run optimistic values mutator before any network request
2025-03-28 21:39:35 +01:00
David Duong and GitHub
69cecd872c
release(sdk-js): 0.0.61 ( #4069 )
2025-03-28 15:24:38 +01:00
Tat Dat Duong
9abc1c8174
release(sdk-js): 0.0.61
2025-03-28 15:23:25 +01:00
David Duong and GitHub
de90ced29d
fix(sdk-js): do not await for client.runs.stream, as it is already async generator ( #4068 )
2025-03-28 15:22:20 +01:00
Tat Dat Duong
b8b973fc0c
fix(sdk-js): do not await for client.runs.stream, as it is already async generator
2025-03-28 15:15:54 +01:00
David Duong and GitHub
89e3709a2a
feat(docs): cloning traces locally ( #4057 )
2025-03-28 14:41:00 +01:00
Arjun Natarajan
a7f012a19c
fix link
2025-03-28 09:37:05 -04:00
Arjun Natarajan
9b05ab6453
mkdocs yaml
2025-03-28 09:27:30 -04:00
David Duong and GitHub
5401d2ea81
feat(sdk-js): add option to manually provide implementation for shared modules ( #4042 )
2025-03-28 14:04:09 +01:00
Nuno Campos and GitHub
4401612aa6
Reduce the number of channels created for each node by 50% ( #4064 )
...
- Used to be 2 channels per node, it is now one per node, which is the
minimum
- Now both hard edges, conditional edges, entrypoint and conditional
entrypoint all use the same channel to trigger a node
2025-03-27 18:05:04 -07:00
Nuno Campos
49bb08a3f9
Update prebuilt test
2025-03-27 17:58:29 -07:00
Nuno Campos
4f2e9b838f
Reduce the number of channels created for each node by 50%
...
- Used to be 2 channels per node, it is now one per node, which is the minimum
- Now both hard edges, conditional edges, entrypoint and conditional entrypoint all use the same channel to trigger a node
2025-03-27 17:47:34 -07:00
Nuno Campos
d30da72f6e
Reduce the number of channels created for each node by 50%
...
- Used to be 2 channels per node, it is now one per node, which is the minimum
- Now both hard edges, conditional edges, entrypoint and conditional entrypoint all use the same channel to trigger a node
2025-03-27 17:47:11 -07:00
William FH and GitHub
7f079adfee
Update auth user type ( #4062 )
sdk==0.1.60
2025-03-27 16:09:54 -07:00
William Fu-Hinthorn
4c74af606f
Update auth user type
2025-03-27 16:03:11 -07:00
Eugene Yurtsev and GitHub
900824089b
docs: disable link checking on push and workflow dispatch ( #4061 )
2025-03-27 17:33:36 -04:00
Nuno Campos and GitHub
522caa643f
In Python 3.12 or above, use asyncio eager task factory ( #4055 )
...
- This is a performance improvement when calling async functions that do
not use await, as they are run immediately and never scheduled in the
loop
2025-03-27 13:36:04 -07:00
Nuno Campos
ef71656f05
Fix
2025-03-27 13:14:39 -07:00
Tat Dat Duong
3ba7c7fbed
Do not throw error if window is undefined due to Next
2025-03-27 21:03:54 +01:00
Tat Dat Duong
5cdab86d48
Fix object assignment
2025-03-27 20:58:39 +01:00
Nuno Campos and GitHub
f5fe7e5195
Remove internal frames from stack traces ( #4054 )
...
- For exceptions raised in user code (ie. nodes or edges) remove
internal frames from the stack trace
2025-03-27 12:41:54 -07:00
Arjun Natarajan
2b728410e9
spell check
2025-03-27 14:47:27 -04:00
Arjun Natarajan
30221da4a8
docs for cloning traces locally
2025-03-27 14:38:20 -04:00
Nuno Campos
1c5a354a7d
In Python 3.12 or above, use asyncio eager task factory
...
- This is a performance improvement when calling async functions that do not use await, as they are run immediately and never scheduled in the loop
2025-03-27 11:00:37 -07:00
Nuno Campos
bfd271e00e
Remove internal frames from stack traces
...
- For exceptions raised in user code (ie. nodes or edges) remove internal frames from the stack trace
2025-03-27 10:58:13 -07:00
Vadym Barda and GitHub
9647b1e55f
langgraph: use correct type for node destination annotations ( #4053 )
...
Fixes https://github.com/langchain-ai/langgraph/issues/4051
2025-03-27 16:57:39 +00:00