langgraph-api 0.0.1__tar.gz → 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of langgraph-api might be problematic. Click here for more details.

Files changed (85) hide show
  1. langgraph_api-0.0.2/PKG-INFO +130 -0
  2. langgraph_api-0.0.2/README.md +101 -0
  3. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/cli.py +1 -3
  4. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/pyproject.toml +3 -1
  5. langgraph_api-0.0.1/PKG-INFO +0 -26
  6. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/LICENSE +0 -0
  7. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/__init__.py +0 -0
  8. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/api/__init__.py +0 -0
  9. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/api/assistants.py +0 -0
  10. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/api/meta.py +0 -0
  11. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/api/openapi.py +0 -0
  12. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/api/runs.py +0 -0
  13. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/api/store.py +0 -0
  14. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/api/threads.py +0 -0
  15. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/asyncio.py +0 -0
  16. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/auth/__init__.py +0 -0
  17. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/auth/langsmith/__init__.py +0 -0
  18. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/auth/langsmith/backend.py +0 -0
  19. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/auth/langsmith/client.py +0 -0
  20. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/auth/middleware.py +0 -0
  21. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/auth/noop.py +0 -0
  22. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/config.py +0 -0
  23. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/cron_scheduler.py +0 -0
  24. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/errors.py +0 -0
  25. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/graph.py +0 -0
  26. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/http.py +0 -0
  27. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/http_logger.py +0 -0
  28. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/.gitignore +0 -0
  29. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/build.mts +0 -0
  30. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/client.mts +0 -0
  31. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/global.d.ts +0 -0
  32. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/package.json +0 -0
  33. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/remote.py +0 -0
  34. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/server_sent_events.py +0 -0
  35. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/graph.mts +0 -0
  36. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/hooks.mjs +0 -0
  37. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/parser/parser.mts +0 -0
  38. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/parser/parser.worker.mjs +0 -0
  39. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/schema/types.mts +0 -0
  40. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/schema/types.template.mts +0 -0
  41. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/utils/importMap.mts +0 -0
  42. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/utils/pythonSchemas.mts +0 -0
  43. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/src/utils/serde.mts +0 -0
  44. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/api.test.mts +0 -0
  45. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/compose-postgres.yml +0 -0
  46. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/graphs/.gitignore +0 -0
  47. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/graphs/agent.mts +0 -0
  48. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/graphs/error.mts +0 -0
  49. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/graphs/langgraph.json +0 -0
  50. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/graphs/nested.mts +0 -0
  51. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/graphs/package.json +0 -0
  52. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/graphs/weather.mts +0 -0
  53. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/graphs/yarn.lock +0 -0
  54. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/parser.test.mts +0 -0
  55. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/tests/utils.mts +0 -0
  56. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/js/yarn.lock +0 -0
  57. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/lifespan.py +0 -0
  58. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/logging.py +0 -0
  59. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/metadata.py +0 -0
  60. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/models/__init__.py +0 -0
  61. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/models/run.py +0 -0
  62. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/patch.py +0 -0
  63. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/queue.py +0 -0
  64. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/route.py +0 -0
  65. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/schema.py +0 -0
  66. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/serde.py +0 -0
  67. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/server.py +0 -0
  68. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/sse.py +0 -0
  69. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/state.py +0 -0
  70. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/stream.py +0 -0
  71. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/utils.py +0 -0
  72. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_api/validation.py +0 -0
  73. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_license/__init__.py +0 -0
  74. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_license/middleware.py +0 -0
  75. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_license/validation.py +0 -0
  76. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_storage/__init__.py +0 -0
  77. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_storage/checkpoint.py +0 -0
  78. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_storage/database.py +0 -0
  79. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_storage/ops.py +0 -0
  80. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_storage/queue.py +0 -0
  81. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_storage/retry.py +0 -0
  82. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_storage/store.py +0 -0
  83. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/langgraph_storage/ttl_dict.py +0 -0
  84. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/logging.json +0 -0
  85. {langgraph_api-0.0.1 → langgraph_api-0.0.2}/openapi.json +0 -0
@@ -0,0 +1,130 @@
1
+ Metadata-Version: 2.1
2
+ Name: langgraph-api
3
+ Version: 0.0.2
4
+ Summary:
5
+ License: Elastic-2.0
6
+ Author: Nuno Campos
7
+ Author-email: nuno@langchain.dev
8
+ Requires-Python: >=3.11.0,<4.0
9
+ Classifier: License :: Other/Proprietary License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Requires-Dist: cryptography (>=43.0.3,<44.0.0)
14
+ Requires-Dist: httpx (>=0.27.0)
15
+ Requires-Dist: jsonschema-rs (>=0.25.0,<0.26.0)
16
+ Requires-Dist: langchain-core (>=0.2.38,<0.4.0)
17
+ Requires-Dist: langgraph (>=0.2.52)
18
+ Requires-Dist: langgraph-checkpoint (>=2.0.5,<3.0)
19
+ Requires-Dist: langsmith (>=0.1.63,<0.2.0)
20
+ Requires-Dist: orjson (>=3.10.1)
21
+ Requires-Dist: pyjwt (>=2.9.0,<3.0.0)
22
+ Requires-Dist: sse-starlette (>=2.1.0,<3.0.0)
23
+ Requires-Dist: starlette (>=0.38.6)
24
+ Requires-Dist: structlog (>=24.4.0,<25.0.0)
25
+ Requires-Dist: tenacity (>=8.3.0,<9.0.0)
26
+ Requires-Dist: uvicorn (>=0.26.0)
27
+ Requires-Dist: watchfiles (>=0.13)
28
+ Description-Content-Type: text/markdown
29
+
30
+ # LangGraph API
31
+
32
+ This package implements the LangGraph API for rapid development and testing. Build and iterate on LangGraph agents with a tight feedback loop. The sesrver is backed by a predominently in-memory data store that is persisted to local disk when the server is restarted.
33
+
34
+ For production use, see the various [deployment options](https://langchain-ai.github.io/langgraph/concepts/deployment_options/) for the LangGraph API, which are backed by a production-grade database.
35
+
36
+ ## Installation
37
+
38
+ Install the `langgraph-cli` package with the `inmem` extra. Your CLI version must be no lower than `0.1.55`.
39
+
40
+ ```bash
41
+ pip install -U langgraph-cli[inmem]
42
+ ```
43
+
44
+ ## Quickstart
45
+
46
+ 1. (Optional) Clone a starter template:
47
+
48
+ ```bash
49
+ langgraph new --template new-langgraph-project-python ./my-project
50
+ cd my-project
51
+ ```
52
+
53
+ (Recommended) Use a virtual environment and install dependencies:
54
+
55
+ ```bash
56
+ python -m venv .venv
57
+ source .venv/bin/activate
58
+ python -m pip install .
59
+ ```
60
+
61
+ 2. Start the development server:
62
+
63
+ ```shell
64
+ langgraph dev --config ./langgraph.json
65
+ ```
66
+
67
+ 3. The server will launch, opening a browser window with the graph UI. Interact with your graph or make code edits; the server automatically reloads on changes.
68
+
69
+ ## Usage
70
+
71
+ Start the development server:
72
+
73
+ ```bash
74
+ langgraph dev
75
+ ```
76
+
77
+ Your agent's state (threads, runs, assistants) persists in memory while the server is running - perfect for development and testing. Each run's state is tracked and can be inspected, making it easy to debug and improve your agent's behavior.
78
+
79
+ ## How-To
80
+
81
+ #### Attaching a debugger
82
+ Debug mode lets you attach your IDE's debugger to the LangGraph API server to set breakpoints and step through your code line-by-line.
83
+
84
+ 1. Install debugpy:
85
+
86
+ ```bash
87
+ pip install debugpy
88
+ ```
89
+
90
+ 2. Start the server in debug mode:
91
+
92
+ ```bash
93
+ langgraph dev --debug-port 5678
94
+ ```
95
+
96
+ 3. Configure your IDE:
97
+
98
+ - **VS Code**: Add this launch configuration:
99
+ ```json
100
+ {
101
+ "name": "Attach to LangGraph",
102
+ "type": "debugpy",
103
+ "request": "attach",
104
+ "connect": {
105
+ "host": "0.0.0.0",
106
+ "port": 5678
107
+ },
108
+ }
109
+ ```
110
+ - **PyCharm**: Use "Attach to Process" and select the langgraph process
111
+
112
+ 4. Set breakpoints in your graph code and start debugging.
113
+
114
+ ## CLI options
115
+
116
+ ```bash
117
+ langgraph dev [OPTIONS]
118
+ Options:
119
+ --debug-port INTEGER Enable remote debugging on specified port
120
+ --no-browser Skip opening browser on startup
121
+ --n-jobs-per-worker INTEGER Maximum concurrent jobs per worker process
122
+ --config PATH Custom configuration file path
123
+ --no-reload Disable code hot reloading
124
+ --port INTEGER HTTP server port (default: 8000)
125
+ --host TEXT HTTP server host (default: localhost)
126
+ ```
127
+
128
+ ## License
129
+
130
+ This project is licensed under the Elastic License 2.0 - see the [LICENSE](./LICENSE) file for details.
@@ -0,0 +1,101 @@
1
+ # LangGraph API
2
+
3
+ This package implements the LangGraph API for rapid development and testing. Build and iterate on LangGraph agents with a tight feedback loop. The sesrver is backed by a predominently in-memory data store that is persisted to local disk when the server is restarted.
4
+
5
+ For production use, see the various [deployment options](https://langchain-ai.github.io/langgraph/concepts/deployment_options/) for the LangGraph API, which are backed by a production-grade database.
6
+
7
+ ## Installation
8
+
9
+ Install the `langgraph-cli` package with the `inmem` extra. Your CLI version must be no lower than `0.1.55`.
10
+
11
+ ```bash
12
+ pip install -U langgraph-cli[inmem]
13
+ ```
14
+
15
+ ## Quickstart
16
+
17
+ 1. (Optional) Clone a starter template:
18
+
19
+ ```bash
20
+ langgraph new --template new-langgraph-project-python ./my-project
21
+ cd my-project
22
+ ```
23
+
24
+ (Recommended) Use a virtual environment and install dependencies:
25
+
26
+ ```bash
27
+ python -m venv .venv
28
+ source .venv/bin/activate
29
+ python -m pip install .
30
+ ```
31
+
32
+ 2. Start the development server:
33
+
34
+ ```shell
35
+ langgraph dev --config ./langgraph.json
36
+ ```
37
+
38
+ 3. The server will launch, opening a browser window with the graph UI. Interact with your graph or make code edits; the server automatically reloads on changes.
39
+
40
+ ## Usage
41
+
42
+ Start the development server:
43
+
44
+ ```bash
45
+ langgraph dev
46
+ ```
47
+
48
+ Your agent's state (threads, runs, assistants) persists in memory while the server is running - perfect for development and testing. Each run's state is tracked and can be inspected, making it easy to debug and improve your agent's behavior.
49
+
50
+ ## How-To
51
+
52
+ #### Attaching a debugger
53
+ Debug mode lets you attach your IDE's debugger to the LangGraph API server to set breakpoints and step through your code line-by-line.
54
+
55
+ 1. Install debugpy:
56
+
57
+ ```bash
58
+ pip install debugpy
59
+ ```
60
+
61
+ 2. Start the server in debug mode:
62
+
63
+ ```bash
64
+ langgraph dev --debug-port 5678
65
+ ```
66
+
67
+ 3. Configure your IDE:
68
+
69
+ - **VS Code**: Add this launch configuration:
70
+ ```json
71
+ {
72
+ "name": "Attach to LangGraph",
73
+ "type": "debugpy",
74
+ "request": "attach",
75
+ "connect": {
76
+ "host": "0.0.0.0",
77
+ "port": 5678
78
+ },
79
+ }
80
+ ```
81
+ - **PyCharm**: Use "Attach to Process" and select the langgraph process
82
+
83
+ 4. Set breakpoints in your graph code and start debugging.
84
+
85
+ ## CLI options
86
+
87
+ ```bash
88
+ langgraph dev [OPTIONS]
89
+ Options:
90
+ --debug-port INTEGER Enable remote debugging on specified port
91
+ --no-browser Skip opening browser on startup
92
+ --n-jobs-per-worker INTEGER Maximum concurrent jobs per worker process
93
+ --config PATH Custom configuration file path
94
+ --no-reload Disable code hot reloading
95
+ --port INTEGER HTTP server port (default: 8000)
96
+ --host TEXT HTTP server host (default: localhost)
97
+ ```
98
+
99
+ ## License
100
+
101
+ This project is licensed under the Elastic License 2.0 - see the [LICENSE](./LICENSE) file for details.
@@ -144,9 +144,7 @@ For production use, please use LangGraph Cloud.
144
144
  "version": 1,
145
145
  "incremental": False,
146
146
  "disable_existing_loggers": False,
147
- "formatters": {
148
- "simple": {"class": "langgraph_api.logging.Formatter"}
149
- },
147
+ "formatters": {"simple": {"class": "langgraph_api.logging.Formatter"}},
150
148
  "handlers": {
151
149
  "console": {
152
150
  "class": "logging.StreamHandler",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "langgraph-api"
3
- version = "0.0.1"
3
+ version = "0.0.2"
4
4
  description = ""
5
5
  authors = [
6
6
  "Nuno Campos <nuno@langchain.dev>",
@@ -12,6 +12,7 @@ packages = [
12
12
  { include = "langgraph_storage" },
13
13
  { include = "langgraph_license" },
14
14
  ]
15
+ readme = "README.md"
15
16
  include = ["LICENSE", "openapi.json", "logging.json"]
16
17
 
17
18
  [tool.poetry.scripts]
@@ -23,6 +24,7 @@ sse-starlette = "^2.1.0"
23
24
  starlette = ">=0.38.6"
24
25
  watchfiles = ">=0.13"
25
26
  langgraph = ">=0.2.52"
27
+ langgraph-checkpoint = ">=2.0.5,<3.0"
26
28
  orjson = ">=3.10.1"
27
29
  uvicorn = ">=0.26.0"
28
30
  langsmith = "^0.1.63"
@@ -1,26 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: langgraph-api
3
- Version: 0.0.1
4
- Summary:
5
- License: Elastic-2.0
6
- Author: Nuno Campos
7
- Author-email: nuno@langchain.dev
8
- Requires-Python: >=3.11.0,<4.0
9
- Classifier: License :: Other/Proprietary License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Requires-Dist: cryptography (>=43.0.3,<44.0.0)
14
- Requires-Dist: httpx (>=0.27.0)
15
- Requires-Dist: jsonschema-rs (>=0.25.0,<0.26.0)
16
- Requires-Dist: langchain-core (>=0.2.38,<0.4.0)
17
- Requires-Dist: langgraph (>=0.2.52)
18
- Requires-Dist: langsmith (>=0.1.63,<0.2.0)
19
- Requires-Dist: orjson (>=3.10.1)
20
- Requires-Dist: pyjwt (>=2.9.0,<3.0.0)
21
- Requires-Dist: sse-starlette (>=2.1.0,<3.0.0)
22
- Requires-Dist: starlette (>=0.38.6)
23
- Requires-Dist: structlog (>=24.4.0,<25.0.0)
24
- Requires-Dist: tenacity (>=8.3.0,<9.0.0)
25
- Requires-Dist: uvicorn (>=0.26.0)
26
- Requires-Dist: watchfiles (>=0.13)
File without changes