langgraph-api 0.4.7__py3-none-any.whl → 0.4.11__py3-none-any.whl
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/__init__.py +1 -1
- langgraph_api/api/__init__.py +4 -0
- langgraph_api/api/a2a.py +1128 -0
- langgraph_api/api/assistants.py +8 -0
- langgraph_api/api/threads.py +47 -14
- langgraph_api/command.py +4 -2
- langgraph_api/graph.py +3 -3
- langgraph_api/js/remote.py +15 -11
- langgraph_api/models/run.py +2 -67
- langgraph_api/state.py +1 -1
- langgraph_api/thread_ttl.py +4 -1
- langgraph_api/utils/headers.py +68 -2
- {langgraph_api-0.4.7.dist-info → langgraph_api-0.4.11.dist-info}/METADATA +2 -2
- {langgraph_api-0.4.7.dist-info → langgraph_api-0.4.11.dist-info}/RECORD +18 -21
- openapi.json +219 -1
- langgraph_api/js/isolate-0x130008000-46649-46649-v8.log +0 -4430
- langgraph_api/js/isolate-0x138008000-44681-44681-v8.log +0 -4430
- langgraph_api/js/package-lock.json +0 -3308
- langgraph_api/utils.py +0 -0
- {langgraph_api-0.4.7.dist-info → langgraph_api-0.4.11.dist-info}/WHEEL +0 -0
- {langgraph_api-0.4.7.dist-info → langgraph_api-0.4.11.dist-info}/entry_points.txt +0 -0
- {langgraph_api-0.4.7.dist-info → langgraph_api-0.4.11.dist-info}/licenses/LICENSE +0 -0
openapi.json
CHANGED
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
"name": "Store",
|
|
30
30
|
"description": "Store is an API for managing persistent key-value store (long-term memory) that is available from any thread."
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"name": "A2A",
|
|
34
|
+
"description": "Agent-to-Agent Protocol related endpoints for exposing assistants as A2A-compliant agents."
|
|
35
|
+
},
|
|
32
36
|
{
|
|
33
37
|
"name": "MCP",
|
|
34
38
|
"description": "Model Context Protocol related endpoints for exposing an agent as an MCP server."
|
|
@@ -3182,6 +3186,195 @@
|
|
|
3182
3186
|
}
|
|
3183
3187
|
}
|
|
3184
3188
|
},
|
|
3189
|
+
"/a2a/{assistant_id}": {
|
|
3190
|
+
"post": {
|
|
3191
|
+
"operationId": "post_a2a",
|
|
3192
|
+
"summary": "A2A Post",
|
|
3193
|
+
"description": "Communicate with an assistant using the Agent-to-Agent Protocol.\nSends a JSON-RPC 2.0 message to the assistant.\n\n- **Request**: Provide an object with `jsonrpc`, `id`, `method`, and optional `params`.\n- **Response**: Returns a JSON-RPC response with task information or error.\n\n**Supported Methods:**\n- `message/send`: Send a message to the assistant\n- `tasks/get`: Get the status and result of a task\n\n**Notes:**\n- Supports threaded conversations via thread context\n- Messages can contain text and data parts\n- Tasks run asynchronously and return completion status\n",
|
|
3194
|
+
"parameters": [
|
|
3195
|
+
{
|
|
3196
|
+
"name": "assistant_id",
|
|
3197
|
+
"in": "path",
|
|
3198
|
+
"required": true,
|
|
3199
|
+
"schema": {
|
|
3200
|
+
"type": "string",
|
|
3201
|
+
"format": "uuid"
|
|
3202
|
+
},
|
|
3203
|
+
"description": "The ID of the assistant to communicate with"
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"name": "Accept",
|
|
3207
|
+
"in": "header",
|
|
3208
|
+
"required": true,
|
|
3209
|
+
"schema": {
|
|
3210
|
+
"type": "string",
|
|
3211
|
+
"enum": ["application/json"]
|
|
3212
|
+
},
|
|
3213
|
+
"description": "Must be application/json"
|
|
3214
|
+
}
|
|
3215
|
+
],
|
|
3216
|
+
"requestBody": {
|
|
3217
|
+
"required": true,
|
|
3218
|
+
"content": {
|
|
3219
|
+
"application/json": {
|
|
3220
|
+
"schema": {
|
|
3221
|
+
"type": "object",
|
|
3222
|
+
"properties": {
|
|
3223
|
+
"jsonrpc": {
|
|
3224
|
+
"type": "string",
|
|
3225
|
+
"enum": ["2.0"],
|
|
3226
|
+
"description": "JSON-RPC version"
|
|
3227
|
+
},
|
|
3228
|
+
"id": {
|
|
3229
|
+
"type": "string",
|
|
3230
|
+
"description": "Request identifier"
|
|
3231
|
+
},
|
|
3232
|
+
"method": {
|
|
3233
|
+
"type": "string",
|
|
3234
|
+
"enum": ["message/send", "tasks/get"],
|
|
3235
|
+
"description": "The method to invoke"
|
|
3236
|
+
},
|
|
3237
|
+
"params": {
|
|
3238
|
+
"type": "object",
|
|
3239
|
+
"description": "Method parameters",
|
|
3240
|
+
"oneOf": [
|
|
3241
|
+
{
|
|
3242
|
+
"title": "Message Send Parameters",
|
|
3243
|
+
"properties": {
|
|
3244
|
+
"message": {
|
|
3245
|
+
"type": "object",
|
|
3246
|
+
"properties": {
|
|
3247
|
+
"role": {
|
|
3248
|
+
"type": "string",
|
|
3249
|
+
"enum": ["user", "assistant"],
|
|
3250
|
+
"description": "Message role"
|
|
3251
|
+
},
|
|
3252
|
+
"parts": {
|
|
3253
|
+
"type": "array",
|
|
3254
|
+
"items": {
|
|
3255
|
+
"oneOf": [
|
|
3256
|
+
{
|
|
3257
|
+
"title": "Text Part",
|
|
3258
|
+
"type": "object",
|
|
3259
|
+
"properties": {
|
|
3260
|
+
"kind": {
|
|
3261
|
+
"type": "string",
|
|
3262
|
+
"enum": ["text"]
|
|
3263
|
+
},
|
|
3264
|
+
"text": {
|
|
3265
|
+
"type": "string"
|
|
3266
|
+
}
|
|
3267
|
+
},
|
|
3268
|
+
"required": ["kind", "text"]
|
|
3269
|
+
},
|
|
3270
|
+
{
|
|
3271
|
+
"title": "Data Part",
|
|
3272
|
+
"type": "object",
|
|
3273
|
+
"properties": {
|
|
3274
|
+
"kind": {
|
|
3275
|
+
"type": "string",
|
|
3276
|
+
"enum": ["data"]
|
|
3277
|
+
},
|
|
3278
|
+
"data": {
|
|
3279
|
+
"type": "object"
|
|
3280
|
+
}
|
|
3281
|
+
},
|
|
3282
|
+
"required": ["kind", "data"]
|
|
3283
|
+
}
|
|
3284
|
+
]
|
|
3285
|
+
},
|
|
3286
|
+
"description": "Message parts"
|
|
3287
|
+
},
|
|
3288
|
+
"messageId": {
|
|
3289
|
+
"type": "string",
|
|
3290
|
+
"description": "Unique message identifier"
|
|
3291
|
+
}
|
|
3292
|
+
},
|
|
3293
|
+
"required": ["role", "parts", "messageId"]
|
|
3294
|
+
},
|
|
3295
|
+
"thread": {
|
|
3296
|
+
"type": "object",
|
|
3297
|
+
"properties": {
|
|
3298
|
+
"threadId": {
|
|
3299
|
+
"type": "string",
|
|
3300
|
+
"description": "Thread identifier for conversation context"
|
|
3301
|
+
}
|
|
3302
|
+
},
|
|
3303
|
+
"description": "Optional thread context"
|
|
3304
|
+
}
|
|
3305
|
+
},
|
|
3306
|
+
"required": ["message"]
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
"title": "Task Get Parameters",
|
|
3310
|
+
"properties": {
|
|
3311
|
+
"taskId": {
|
|
3312
|
+
"type": "string",
|
|
3313
|
+
"description": "Task identifier to retrieve"
|
|
3314
|
+
}
|
|
3315
|
+
},
|
|
3316
|
+
"required": ["taskId"]
|
|
3317
|
+
}
|
|
3318
|
+
]
|
|
3319
|
+
}
|
|
3320
|
+
},
|
|
3321
|
+
"required": ["jsonrpc", "id", "method"]
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
},
|
|
3326
|
+
"responses": {
|
|
3327
|
+
"200": {
|
|
3328
|
+
"description": "JSON-RPC response",
|
|
3329
|
+
"content": {
|
|
3330
|
+
"application/json": {
|
|
3331
|
+
"schema": {
|
|
3332
|
+
"type": "object",
|
|
3333
|
+
"properties": {
|
|
3334
|
+
"jsonrpc": {
|
|
3335
|
+
"type": "string",
|
|
3336
|
+
"enum": ["2.0"]
|
|
3337
|
+
},
|
|
3338
|
+
"id": {
|
|
3339
|
+
"type": "string"
|
|
3340
|
+
},
|
|
3341
|
+
"result": {
|
|
3342
|
+
"type": "object",
|
|
3343
|
+
"description": "Success result containing task information or task details"
|
|
3344
|
+
},
|
|
3345
|
+
"error": {
|
|
3346
|
+
"type": "object",
|
|
3347
|
+
"properties": {
|
|
3348
|
+
"code": {
|
|
3349
|
+
"type": "integer"
|
|
3350
|
+
},
|
|
3351
|
+
"message": {
|
|
3352
|
+
"type": "string"
|
|
3353
|
+
}
|
|
3354
|
+
},
|
|
3355
|
+
"description": "Error information if request failed"
|
|
3356
|
+
}
|
|
3357
|
+
},
|
|
3358
|
+
"required": ["jsonrpc", "id"]
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
}
|
|
3362
|
+
},
|
|
3363
|
+
"400": {
|
|
3364
|
+
"description": "Bad request - invalid JSON-RPC or missing Accept header"
|
|
3365
|
+
},
|
|
3366
|
+
"404": {
|
|
3367
|
+
"description": "Assistant not found"
|
|
3368
|
+
},
|
|
3369
|
+
"500": {
|
|
3370
|
+
"description": "Internal server error"
|
|
3371
|
+
}
|
|
3372
|
+
},
|
|
3373
|
+
"tags": [
|
|
3374
|
+
"A2A"
|
|
3375
|
+
]
|
|
3376
|
+
}
|
|
3377
|
+
},
|
|
3185
3378
|
"/mcp/": {
|
|
3186
3379
|
"post": {
|
|
3187
3380
|
"operationId": "post_mcp",
|
|
@@ -4822,6 +5015,12 @@
|
|
|
4822
5015
|
},
|
|
4823
5016
|
"ThreadSearchRequest": {
|
|
4824
5017
|
"properties": {
|
|
5018
|
+
"ids": {
|
|
5019
|
+
"type": "array",
|
|
5020
|
+
"items": {"type": "string", "format": "uuid"},
|
|
5021
|
+
"title": "Ids",
|
|
5022
|
+
"description": "List of thread IDs to include. Others are excluded."
|
|
5023
|
+
},
|
|
4825
5024
|
"metadata": {
|
|
4826
5025
|
"type": "object",
|
|
4827
5026
|
"title": "Metadata",
|
|
@@ -5062,11 +5261,30 @@
|
|
|
5062
5261
|
"type": "object",
|
|
5063
5262
|
"title": "Metadata",
|
|
5064
5263
|
"description": "Metadata to merge with existing thread metadata."
|
|
5264
|
+
},
|
|
5265
|
+
"ttl": {
|
|
5266
|
+
"type": "object",
|
|
5267
|
+
"title": "TTL",
|
|
5268
|
+
"description": "The time-to-live for the thread.",
|
|
5269
|
+
"properties": {
|
|
5270
|
+
"strategy": {
|
|
5271
|
+
"type": "string",
|
|
5272
|
+
"enum": [
|
|
5273
|
+
"delete"
|
|
5274
|
+
],
|
|
5275
|
+
"description": "The TTL strategy. 'delete' removes the entire thread.",
|
|
5276
|
+
"default": "delete"
|
|
5277
|
+
},
|
|
5278
|
+
"ttl": {
|
|
5279
|
+
"type": "number",
|
|
5280
|
+
"description": "The time-to-live in minutes from now until thread should be swept."
|
|
5281
|
+
}
|
|
5282
|
+
}
|
|
5065
5283
|
}
|
|
5066
5284
|
},
|
|
5067
5285
|
"type": "object",
|
|
5068
5286
|
"title": "ThreadPatch",
|
|
5069
|
-
"description": "Payload for
|
|
5287
|
+
"description": "Payload for updating a thread."
|
|
5070
5288
|
},
|
|
5071
5289
|
"ThreadStateCheckpointRequest": {
|
|
5072
5290
|
"properties": {
|