langgraph-api 0.1.12__tar.gz → 0.1.14__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.
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/PKG-INFO +3 -2
- langgraph_api-0.1.14/langgraph_api/__init__.py +1 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/threads.py +6 -2
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/package.json +1 -1
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/api.test.mts +16 -3
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/yarn.lock +11 -1
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/openapi.json +20 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/pyproject.toml +3 -2
- langgraph_api-0.1.12/langgraph_api/__init__.py +0 -1
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/LICENSE +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/README.md +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/__init__.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/assistants.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/mcp.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/meta.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/openapi.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/runs.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/store.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/api/ui.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/asyncio.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/auth/__init__.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/auth/custom.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/auth/langsmith/__init__.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/auth/langsmith/backend.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/auth/langsmith/client.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/auth/middleware.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/auth/noop.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/auth/studio_user.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/cli.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/command.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/config.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/cron_scheduler.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/errors.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/graph.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/http.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/.gitignore +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/.prettierrc +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/__init__.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/base.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/build.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/client.http.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/client.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/errors.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/global.d.ts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/remote.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/schema.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/graph.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/hooks.mjs +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/parser/parser.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/parser/parser.worker.mjs +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/schema/types.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/schema/types.template.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/utils/files.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/utils/importMap.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/utils/pythonSchemas.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/utils/serde.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/sse.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/auth.test.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/compose-postgres.auth.yml +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/compose-postgres.yml +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/.gitignore +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/agent.css +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/agent.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/agent.ui.tsx +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/agent_simple.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/auth.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/command.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/delay.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/dynamic.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/error.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/http.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/langgraph.json +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/nested.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/package.json +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/weather.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/yarn.lock +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/parser.test.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/utils.mts +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/ui.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/logging.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/metadata.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/middleware/__init__.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/middleware/http_logger.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/middleware/private_network.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/models/__init__.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/models/run.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/patch.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/queue_entrypoint.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/route.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/schema.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/serde.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/server.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/sse.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/state.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/stream.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/thread_ttl.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/tunneling/cloudflare.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/utils.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/validation.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/webhook.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/worker.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_license/__init__.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_license/validation.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_runtime/__init__.py +0 -0
- {langgraph_api-0.1.12 → langgraph_api-0.1.14}/logging.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: langgraph-api
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.14
|
|
4
4
|
Summary:
|
|
5
5
|
License: Elastic-2.0
|
|
6
6
|
Author: Nuno Campos
|
|
@@ -18,7 +18,8 @@ Requires-Dist: jsonschema-rs (>=0.20.0,<0.30)
|
|
|
18
18
|
Requires-Dist: langchain-core (>=0.2.38,<0.4.0)
|
|
19
19
|
Requires-Dist: langgraph (>=0.2.56,<0.4.0)
|
|
20
20
|
Requires-Dist: langgraph-checkpoint (>=2.0.23,<3.0)
|
|
21
|
-
Requires-Dist: langgraph-
|
|
21
|
+
Requires-Dist: langgraph-runtime-inmem (>=0.0.5)
|
|
22
|
+
Requires-Dist: langgraph-sdk (>=0.1.63,<0.2.0)
|
|
22
23
|
Requires-Dist: langsmith (>=0.1.63,<0.4.0)
|
|
23
24
|
Requires-Dist: orjson (>=3.9.7)
|
|
24
25
|
Requires-Dist: pyjwt (>=2.9.0,<3.0.0)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.14"
|
|
@@ -55,15 +55,19 @@ async def search_threads(
|
|
|
55
55
|
"""List threads."""
|
|
56
56
|
payload = await request.json(ThreadSearchRequest)
|
|
57
57
|
async with connect() as conn:
|
|
58
|
-
iter = await Threads.search(
|
|
58
|
+
iter, total = await Threads.search(
|
|
59
59
|
conn,
|
|
60
60
|
status=payload.get("status"),
|
|
61
61
|
values=payload.get("values"),
|
|
62
62
|
metadata=payload.get("metadata"),
|
|
63
63
|
limit=payload.get("limit") or 10,
|
|
64
64
|
offset=payload.get("offset") or 0,
|
|
65
|
+
sort_by=payload.get("sort_by"),
|
|
66
|
+
sort_order=payload.get("sort_order"),
|
|
65
67
|
)
|
|
66
|
-
return ApiResponse(
|
|
68
|
+
return ApiResponse(
|
|
69
|
+
[thread async for thread in iter], headers={"X-Pagination-Total": str(total)}
|
|
70
|
+
)
|
|
67
71
|
|
|
68
72
|
|
|
69
73
|
@retry_db
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { describe, expect, it, beforeEach, beforeAll } from "vitest";
|
|
2
1
|
import { Client, FeedbackStreamEvent } from "@langchain/langgraph-sdk";
|
|
2
|
+
import { beforeAll, beforeEach, describe, expect, it } from "vitest";
|
|
3
3
|
|
|
4
|
-
import postgres from "postgres";
|
|
5
|
-
import { findLast, gatherIterator } from "./utils.mts";
|
|
6
4
|
import {
|
|
7
5
|
BaseMessageFields,
|
|
8
6
|
BaseMessageLike,
|
|
9
7
|
MessageType,
|
|
10
8
|
} from "@langchain/core/messages";
|
|
11
9
|
import { randomUUID } from "crypto";
|
|
10
|
+
import postgres from "postgres";
|
|
11
|
+
import { findLast, gatherIterator } from "./utils.mts";
|
|
12
12
|
|
|
13
13
|
const sql = postgres(
|
|
14
14
|
process.env.POSTGRES_URI ??
|
|
@@ -238,6 +238,19 @@ describe("threads crud", () => {
|
|
|
238
238
|
search = await client.threads.search({ offset: 1, limit: 1 });
|
|
239
239
|
expect(search.length).toBe(1);
|
|
240
240
|
expect(createThreadResponse.thread_id).toBe(search[0].thread_id);
|
|
241
|
+
|
|
242
|
+
// test sorting
|
|
243
|
+
search = await client.threads.search({
|
|
244
|
+
sortBy: "created_at",
|
|
245
|
+
sortOrder: "asc",
|
|
246
|
+
});
|
|
247
|
+
expect(search[0].thread_id).toBe(createThreadResponse.thread_id);
|
|
248
|
+
|
|
249
|
+
search = await client.threads.search({
|
|
250
|
+
sortBy: "created_at",
|
|
251
|
+
sortOrder: "desc",
|
|
252
|
+
});
|
|
253
|
+
expect(search[1].thread_id).toBe(createThreadResponse.thread_id);
|
|
241
254
|
});
|
|
242
255
|
});
|
|
243
256
|
|
|
@@ -235,7 +235,17 @@
|
|
|
235
235
|
dependencies:
|
|
236
236
|
uuid "^10.0.0"
|
|
237
237
|
|
|
238
|
-
"@langchain/langgraph-sdk@^0.0.
|
|
238
|
+
"@langchain/langgraph-sdk@^0.0.70":
|
|
239
|
+
version "0.0.70"
|
|
240
|
+
resolved "https://registry.yarnpkg.com/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.70.tgz#9589f984b47de5e4a669b6008cbf01427a3d41d0"
|
|
241
|
+
integrity sha512-O8I12bfeMVz5fOrXnIcK4IdRf50IqyJTO458V56wAIHLNoi4H8/JHM+2M+Y4H2PtslXIGnvomWqlBd0eY5z/Og==
|
|
242
|
+
dependencies:
|
|
243
|
+
"@types/json-schema" "^7.0.15"
|
|
244
|
+
p-queue "^6.6.2"
|
|
245
|
+
p-retry "4"
|
|
246
|
+
uuid "^9.0.0"
|
|
247
|
+
|
|
248
|
+
"@langchain/langgraph-sdk@~0.0.32":
|
|
239
249
|
version "0.0.67"
|
|
240
250
|
resolved "https://registry.yarnpkg.com/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.67.tgz#d856110727669f59cf9367cea99d88479de164d4"
|
|
241
251
|
integrity sha512-JWa0OuiXPoFztmBleUj6N00snuZt80Df6BSMUEjBfMSRNVPn7yiyyz/QTkzuW1LqqVZKPI4O8Bpimnw2xIg3BA==
|
|
@@ -3962,6 +3962,26 @@
|
|
|
3962
3962
|
"description": "Offset to start from.",
|
|
3963
3963
|
"default": 0,
|
|
3964
3964
|
"minimum": 0
|
|
3965
|
+
},
|
|
3966
|
+
"sort_by": {
|
|
3967
|
+
"type": "string",
|
|
3968
|
+
"enum": [
|
|
3969
|
+
"thread_id",
|
|
3970
|
+
"status",
|
|
3971
|
+
"created_at",
|
|
3972
|
+
"updated_at"
|
|
3973
|
+
],
|
|
3974
|
+
"title": "Sort By",
|
|
3975
|
+
"description": "Sort by field."
|
|
3976
|
+
},
|
|
3977
|
+
"sort_order": {
|
|
3978
|
+
"type": "string",
|
|
3979
|
+
"enum": [
|
|
3980
|
+
"asc",
|
|
3981
|
+
"desc"
|
|
3982
|
+
],
|
|
3983
|
+
"title": "Sort Order",
|
|
3984
|
+
"description": "Sort order."
|
|
3965
3985
|
}
|
|
3966
3986
|
},
|
|
3967
3987
|
"type": "object",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "langgraph-api"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.14"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = [
|
|
6
6
|
"Nuno Campos <nuno@langchain.dev>",
|
|
@@ -48,8 +48,9 @@ jsonschema-rs = ">=0.20.0,<0.30"
|
|
|
48
48
|
structlog = ">=24.1.0,<26"
|
|
49
49
|
pyjwt = "^2.9.0"
|
|
50
50
|
cryptography = ">=42.0.0,<45.0"
|
|
51
|
-
langgraph-sdk = "^0.1.
|
|
51
|
+
langgraph-sdk = "^0.1.63"
|
|
52
52
|
cloudpickle = "^3.0.0"
|
|
53
|
+
langgraph-runtime-inmem = ">=0.0.5"
|
|
53
54
|
|
|
54
55
|
[tool.poetry.group.dev.dependencies]
|
|
55
56
|
ruff = "^0.6.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.12"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/src/schema/types.template.mts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/compose-postgres.auth.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_api-0.1.12 → langgraph_api-0.1.14}/langgraph_api/js/tests/graphs/agent_simple.mts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|