langgraph-api 0.4.45__py3-none-any.whl → 0.4.47__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/threads.py +11 -7
- langgraph_api/cli.py +2 -49
- langgraph_api/config.py +75 -15
- langgraph_api/grpc_ops/client.py +13 -1
- langgraph_api/grpc_ops/generated/core_api_pb2.py +195 -193
- langgraph_api/grpc_ops/generated/core_api_pb2.pyi +18 -12
- langgraph_api/grpc_ops/generated/core_api_pb2_grpc.py +2 -2
- langgraph_api/grpc_ops/ops.py +582 -5
- langgraph_api/js/build.mts +1 -1
- langgraph_api/js/client.http.mts +1 -1
- langgraph_api/js/client.mts +1 -1
- langgraph_api/js/package.json +7 -7
- langgraph_api/js/yarn.lock +40 -48
- {langgraph_api-0.4.45.dist-info → langgraph_api-0.4.47.dist-info}/METADATA +2 -2
- {langgraph_api-0.4.45.dist-info → langgraph_api-0.4.47.dist-info}/RECORD +19 -19
- {langgraph_api-0.4.45.dist-info → langgraph_api-0.4.47.dist-info}/WHEEL +0 -0
- {langgraph_api-0.4.45.dist-info → langgraph_api-0.4.47.dist-info}/entry_points.txt +0 -0
- {langgraph_api-0.4.45.dist-info → langgraph_api-0.4.47.dist-info}/licenses/LICENSE +0 -0
|
@@ -155,17 +155,23 @@ CANCEL_RUN_STATUS_PENDING: CancelRunStatus
|
|
|
155
155
|
CANCEL_RUN_STATUS_RUNNING: CancelRunStatus
|
|
156
156
|
CANCEL_RUN_STATUS_ALL: CancelRunStatus
|
|
157
157
|
|
|
158
|
+
class Tags(_message.Message):
|
|
159
|
+
__slots__ = ("values",)
|
|
160
|
+
VALUES_FIELD_NUMBER: _ClassVar[int]
|
|
161
|
+
values: _containers.RepeatedScalarFieldContainer[str]
|
|
162
|
+
def __init__(self, values: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
163
|
+
|
|
158
164
|
class Config(_message.Message):
|
|
159
165
|
__slots__ = ("tags", "recursion_limit", "configurable", "extra")
|
|
160
166
|
TAGS_FIELD_NUMBER: _ClassVar[int]
|
|
161
167
|
RECURSION_LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
162
168
|
CONFIGURABLE_FIELD_NUMBER: _ClassVar[int]
|
|
163
169
|
EXTRA_FIELD_NUMBER: _ClassVar[int]
|
|
164
|
-
tags:
|
|
170
|
+
tags: Tags
|
|
165
171
|
recursion_limit: int
|
|
166
172
|
configurable: _struct_pb2.Struct
|
|
167
173
|
extra: bytes
|
|
168
|
-
def __init__(self, tags: _Optional[
|
|
174
|
+
def __init__(self, tags: _Optional[_Union[Tags, _Mapping]] = ..., recursion_limit: _Optional[int] = ..., configurable: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., extra: _Optional[bytes] = ...) -> None: ...
|
|
169
175
|
|
|
170
176
|
class EqAuthFilter(_message.Message):
|
|
171
177
|
__slots__ = ("match",)
|
|
@@ -516,11 +522,11 @@ class Interrupt(_message.Message):
|
|
|
516
522
|
RESUMABLE_FIELD_NUMBER: _ClassVar[int]
|
|
517
523
|
NS_FIELD_NUMBER: _ClassVar[int]
|
|
518
524
|
id: str
|
|
519
|
-
value:
|
|
525
|
+
value: bytes
|
|
520
526
|
when: str
|
|
521
527
|
resumable: bool
|
|
522
528
|
ns: _containers.RepeatedScalarFieldContainer[str]
|
|
523
|
-
def __init__(self, id: _Optional[str] = ..., value: _Optional[
|
|
529
|
+
def __init__(self, id: _Optional[str] = ..., value: _Optional[bytes] = ..., when: _Optional[str] = ..., resumable: bool = ..., ns: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
524
530
|
|
|
525
531
|
class Interrupts(_message.Message):
|
|
526
532
|
__slots__ = ("interrupts",)
|
|
@@ -529,7 +535,7 @@ class Interrupts(_message.Message):
|
|
|
529
535
|
def __init__(self, interrupts: _Optional[_Iterable[_Union[Interrupt, _Mapping]]] = ...) -> None: ...
|
|
530
536
|
|
|
531
537
|
class Thread(_message.Message):
|
|
532
|
-
__slots__ = ("thread_id", "created_at", "updated_at", "metadata", "config", "
|
|
538
|
+
__slots__ = ("thread_id", "created_at", "updated_at", "metadata", "config", "status", "values", "interrupts", "error")
|
|
533
539
|
class InterruptsEntry(_message.Message):
|
|
534
540
|
__slots__ = ("key", "value")
|
|
535
541
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -542,20 +548,20 @@ class Thread(_message.Message):
|
|
|
542
548
|
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
543
549
|
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
544
550
|
CONFIG_FIELD_NUMBER: _ClassVar[int]
|
|
545
|
-
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
|
546
551
|
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
547
552
|
VALUES_FIELD_NUMBER: _ClassVar[int]
|
|
548
553
|
INTERRUPTS_FIELD_NUMBER: _ClassVar[int]
|
|
554
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
549
555
|
thread_id: UUID
|
|
550
556
|
created_at: _timestamp_pb2.Timestamp
|
|
551
557
|
updated_at: _timestamp_pb2.Timestamp
|
|
552
558
|
metadata: Fragment
|
|
553
559
|
config: Fragment
|
|
554
|
-
context: Fragment
|
|
555
560
|
status: ThreadStatus
|
|
556
561
|
values: Fragment
|
|
557
562
|
interrupts: _containers.MessageMap[str, Interrupts]
|
|
558
|
-
|
|
563
|
+
error: Fragment
|
|
564
|
+
def __init__(self, thread_id: _Optional[_Union[UUID, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., metadata: _Optional[_Union[Fragment, _Mapping]] = ..., config: _Optional[_Union[Fragment, _Mapping]] = ..., status: _Optional[_Union[ThreadStatus, str]] = ..., values: _Optional[_Union[Fragment, _Mapping]] = ..., interrupts: _Optional[_Mapping[str, Interrupts]] = ..., error: _Optional[_Union[Fragment, _Mapping]] = ...) -> None: ...
|
|
559
565
|
|
|
560
566
|
class CreateThreadRequest(_message.Message):
|
|
561
567
|
__slots__ = ("thread_id", "filters", "if_exists", "metadata", "ttl")
|
|
@@ -739,8 +745,8 @@ class SetThreadJointStatusRequest(_message.Message):
|
|
|
739
745
|
run_status: str
|
|
740
746
|
graph_id: str
|
|
741
747
|
checkpoint: CheckpointPayload
|
|
742
|
-
exception:
|
|
743
|
-
def __init__(self, thread_id: _Optional[_Union[UUID, _Mapping]] = ..., run_id: _Optional[_Union[UUID, _Mapping]] = ..., run_status: _Optional[str] = ..., graph_id: _Optional[str] = ..., checkpoint: _Optional[_Union[CheckpointPayload, _Mapping]] = ..., exception: _Optional[
|
|
748
|
+
exception: _struct_pb2.Struct
|
|
749
|
+
def __init__(self, thread_id: _Optional[_Union[UUID, _Mapping]] = ..., run_id: _Optional[_Union[UUID, _Mapping]] = ..., run_status: _Optional[str] = ..., graph_id: _Optional[str] = ..., checkpoint: _Optional[_Union[CheckpointPayload, _Mapping]] = ..., exception: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
|
|
744
750
|
|
|
745
751
|
class JointRollbackRequest(_message.Message):
|
|
746
752
|
__slots__ = ("thread_id", "run_id", "graph_id", "checkpoint", "exception")
|
|
@@ -753,8 +759,8 @@ class JointRollbackRequest(_message.Message):
|
|
|
753
759
|
run_id: UUID
|
|
754
760
|
graph_id: str
|
|
755
761
|
checkpoint: CheckpointPayload
|
|
756
|
-
exception:
|
|
757
|
-
def __init__(self, thread_id: _Optional[_Union[UUID, _Mapping]] = ..., run_id: _Optional[_Union[UUID, _Mapping]] = ..., graph_id: _Optional[str] = ..., checkpoint: _Optional[_Union[CheckpointPayload, _Mapping]] = ..., exception: _Optional[
|
|
762
|
+
exception: _struct_pb2.Struct
|
|
763
|
+
def __init__(self, thread_id: _Optional[_Union[UUID, _Mapping]] = ..., run_id: _Optional[_Union[UUID, _Mapping]] = ..., graph_id: _Optional[str] = ..., checkpoint: _Optional[_Union[CheckpointPayload, _Mapping]] = ..., exception: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
|
|
758
764
|
|
|
759
765
|
class RunKwargs(_message.Message):
|
|
760
766
|
__slots__ = ("config", "context", "input", "command", "stream_mode", "interrupt_before", "interrupt_after", "webhook", "feedback_keys", "temporary", "subgraphs", "resumable", "checkpoint_during", "durability")
|
|
@@ -6,7 +6,7 @@ import warnings
|
|
|
6
6
|
from . import core_api_pb2 as core__api__pb2
|
|
7
7
|
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
8
8
|
|
|
9
|
-
GRPC_GENERATED_VERSION = '1.
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
10
10
|
GRPC_VERSION = grpc.__version__
|
|
11
11
|
_version_not_supported = False
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ except ImportError:
|
|
|
19
19
|
if _version_not_supported:
|
|
20
20
|
raise RuntimeError(
|
|
21
21
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
-
+
|
|
22
|
+
+ ' but the generated code in core_api_pb2_grpc.py depends on'
|
|
23
23
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
24
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
25
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|