langgraph-api 0.0.31__py3-none-any.whl → 0.0.33__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.

openapi.json CHANGED
@@ -805,6 +805,58 @@
805
805
  }
806
806
  }
807
807
  },
808
+ "/threads/state/bulk": {
809
+ "post": {
810
+ "tags": [
811
+ "Threads"
812
+ ],
813
+ "summary": "Bulk Update Thread State",
814
+ "description": "Create a new thread from a batch of state updates.",
815
+ "operationId": "bulk_update_thread_state_post",
816
+ "requestBody": {
817
+ "content": {
818
+ "application/json": {
819
+ "schema": {
820
+ "$ref": "#/components/schemas/ThreadStateBulkUpdate"
821
+ }
822
+ }
823
+ },
824
+ "required": true
825
+ },
826
+ "responses": {
827
+ "200": {
828
+ "description": "Success",
829
+ "content": {
830
+ "application/json": {
831
+ "schema": {
832
+ "$ref": "#/components/schemas/Thread"
833
+ }
834
+ }
835
+ }
836
+ },
837
+ "409": {
838
+ "description": "Conflict",
839
+ "content": {
840
+ "application/json": {
841
+ "schema": {
842
+ "$ref": "#/components/schemas/ErrorResponse"
843
+ }
844
+ }
845
+ }
846
+ },
847
+ "422": {
848
+ "description": "Validation Error",
849
+ "content": {
850
+ "application/json": {
851
+ "schema": {
852
+ "$ref": "#/components/schemas/ErrorResponse"
853
+ }
854
+ }
855
+ }
856
+ }
857
+ }
858
+ }
859
+ },
808
860
  "/threads/{thread_id}/state": {
809
861
  "get": {
810
862
  "tags": [
@@ -3906,6 +3958,19 @@
3906
3958
  "title": "If Exists",
3907
3959
  "description": "How to handle duplicate creation. Must be either 'raise' (raise error if duplicate), or 'do_nothing' (return existing thread).",
3908
3960
  "default": "raise"
3961
+ },
3962
+ "supersteps": {
3963
+ "type": "array",
3964
+ "items": {
3965
+ "type": "object",
3966
+ "properties": {
3967
+ "updates": {
3968
+ "type": "array",
3969
+ "items": { "$ref": "#/components/schemas/ThreadSuperstepUpdate" }
3970
+ }
3971
+ },
3972
+ "required": ["updates"]
3973
+ }
3909
3974
  }
3910
3975
  },
3911
3976
  "type": "object",
@@ -4094,6 +4159,43 @@
4094
4159
  "title": "ThreadStateUpdate",
4095
4160
  "description": "Payload for updating the state of a thread."
4096
4161
  },
4162
+ "ThreadSuperstepUpdate": {
4163
+ "properties": {
4164
+ "values": {
4165
+ "anyOf": [
4166
+ {
4167
+ "type": "array",
4168
+ "items": {
4169
+ "type": "object"
4170
+ }
4171
+ },
4172
+ {
4173
+ "type": "object"
4174
+ },
4175
+ {
4176
+ "type": "null"
4177
+ }
4178
+ ]
4179
+ },
4180
+ "command": {
4181
+ "anyOf": [
4182
+ {
4183
+ "$ref": "#/components/schemas/Command"
4184
+ },
4185
+ {
4186
+ "type": "null"
4187
+ }
4188
+ ],
4189
+ "description": "The command associated with the update."
4190
+ },
4191
+ "as_node": {
4192
+ "type": "string",
4193
+ "description": "Update the state as if this node had just executed."
4194
+ }
4195
+ },
4196
+ "required": ["as_node"],
4197
+ "type": "object"
4198
+ },
4097
4199
  "ThreadStateUpdateResponse": {
4098
4200
  "properties": {
4099
4201
  "checkpoint": {