Skip to content

Commit

Permalink
[SDK] Add auth types
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Dec 14, 2024
1 parent 89eb938 commit 2713082
Show file tree
Hide file tree
Showing 5 changed files with 1,563 additions and 169 deletions.
3 changes: 2 additions & 1 deletion libs/sdk-py/langgraph_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from langgraph_sdk.auth import Auth

Check notice on line 1 in libs/sdk-py/langgraph_sdk/__init__.py

View workflow job for this annotation

GitHub Actions / benchmark

Benchmark results

......................................... fanout_to_subgraph_10x: Mean +- std dev: 61.5 ms +- 3.5 ms ......................................... fanout_to_subgraph_10x_sync: Mean +- std dev: 52.7 ms +- 0.9 ms ......................................... fanout_to_subgraph_10x_checkpoint: Mean +- std dev: 74.3 ms +- 1.3 ms ......................................... fanout_to_subgraph_10x_checkpoint_sync: Mean +- std dev: 96.9 ms +- 1.3 ms ......................................... fanout_to_subgraph_100x: Mean +- std dev: 605 ms +- 23 ms ......................................... fanout_to_subgraph_100x_sync: Mean +- std dev: 520 ms +- 7 ms ......................................... fanout_to_subgraph_100x_checkpoint: Mean +- std dev: 752 ms +- 15 ms ......................................... fanout_to_subgraph_100x_checkpoint_sync: Mean +- std dev: 970 ms +- 18 ms ......................................... react_agent_10x: Mean +- std dev: 31.0 ms +- 0.5 ms ......................................... react_agent_10x_sync: Mean +- std dev: 23.2 ms +- 0.3 ms ......................................... react_agent_10x_checkpoint: Mean +- std dev: 38.2 ms +- 0.7 ms ......................................... react_agent_10x_checkpoint_sync: Mean +- std dev: 37.3 ms +- 0.5 ms ......................................... react_agent_100x: Mean +- std dev: 342 ms +- 4 ms ......................................... react_agent_100x_sync: Mean +- std dev: 276 ms +- 3 ms ......................................... react_agent_100x_checkpoint: Mean +- std dev: 832 ms +- 9 ms ......................................... react_agent_100x_checkpoint_sync: Mean +- std dev: 824 ms +- 6 ms ......................................... wide_state_25x300: Mean +- std dev: 22.9 ms +- 0.5 ms ......................................... wide_state_25x300_sync: Mean +- std dev: 14.8 ms +- 0.2 ms ......................................... wide_state_25x300_checkpoint: Mean +- std dev: 272 ms +- 12 ms ......................................... wide_state_25x300_checkpoint_sync: Mean +- std dev: 271 ms +- 12 ms ......................................... wide_state_15x600: Mean +- std dev: 26.8 ms +- 0.5 ms ......................................... wide_state_15x600_sync: Mean +- std dev: 17.1 ms +- 0.1 ms ......................................... wide_state_15x600_checkpoint: Mean +- std dev: 470 ms +- 15 ms ......................................... wide_state_15x600_checkpoint_sync: Mean +- std dev: 468 ms +- 12 ms ......................................... wide_state_9x1200: Mean +- std dev: 26.8 ms +- 0.5 ms ......................................... wide_state_9x1200_sync: Mean +- std dev: 17.2 ms +- 0.2 ms ......................................... wide_state_9x1200_checkpoint: Mean +- std dev: 306 ms +- 12 ms ......................................... wide_state_9x1200_checkpoint_sync: Mean +- std dev: 308 ms +- 15 ms

Check notice on line 1 in libs/sdk-py/langgraph_sdk/__init__.py

View workflow job for this annotation

GitHub Actions / benchmark

Comparison against main

+-----------------------------------------+---------+-----------------------+ | Benchmark | main | changes | +=========================================+=========+=======================+ | wide_state_25x300_checkpoint | 283 ms | 272 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_checkpoint | 317 ms | 306 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint | 487 ms | 470 ms: 1.04x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint | 769 ms | 752 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_checkpoint_sync | 475 ms | 468 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x | 615 ms | 605 ms: 1.02x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300_checkpoint_sync | 274 ms | 271 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint_sync | 835 ms | 824 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint | 75.1 ms | 74.3 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_checkpoint | 840 ms | 832 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_15x600_sync | 17.3 ms | 17.1 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_25x300 | 23.0 ms | 22.9 ms: 1.01x faster | +-----------------------------------------+---------+-----------------------+ | wide_state_9x1200_sync | 17.2 ms | 17.2 ms: 1.00x faster | +-----------------------------------------+---------+-----------------------+ | react_agent_100x_sync | 275 ms | 276 ms: 1.00x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_checkpoint_sync | 37.0 ms | 37.3 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_sync | 52.2 ms | 52.7 ms: 1.01x slower | +-----------------------------------------+---------+-----------------------+ | react_agent_10x_sync | 22.9 ms | 23.2 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_10x_checkpoint_sync | 95.2 ms | 96.9 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_sync | 511 ms | 520 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | fanout_to_subgraph_100x_checkpoint_sync | 950 ms | 970 ms: 1.02x slower | +-----------------------------------------+---------+-----------------------+ | Geometric mean | (ref) | 1.00x faster | +-----------------------------------------+---------+-----------------------+ Benchmark hidden because not significant (8): wide_state_15x600, wide_state_9x1200, react_agent_100x, wide_state_25x300_sync, wide_state_9x1200_checkpoint_sync, react_agent_10x_checkpoint, fanout_to_subgraph_10x, react_agent_10x
from langgraph_sdk.client import get_client, get_sync_client

try:
Expand All @@ -7,4 +8,4 @@
except metadata.PackageNotFoundError:
__version__ = "unknown"

__all__ = ["get_client", "get_sync_client"]
__all__ = ["Auth", "get_client", "get_sync_client"]
Loading

0 comments on commit 2713082

Please sign in to comment.