Skip to content

Commit

Permalink
Update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Nov 12, 2024
1 parent f33ce53 commit b492d40
Showing 1 changed file with 0 additions and 166 deletions.
166 changes: 0 additions & 166 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,48 +217,6 @@
}
}
},
"/threads/{thread_id}/state/checkpoint": {
"post": {
"tags": [
"Threads"
],
"summary": "Get Thread State At Checkpoint",
"description": "Get state for a thread at a specific checkpoint.",
"operationId": "post_thread_state_at_checkpoint_threads__thread_id__state__checkpoint_id__get",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadStateCheckpointRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadState"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/threads/{thread_id}/history": {
"get": {
"tags": [
Expand Down Expand Up @@ -326,64 +284,6 @@
}
}
}
},
"post": {
"tags": [
"Threads"
],
"summary": "Get Thread History Post",
"description": "Get all past states for a thread.",
"operationId": "get_thread_history_post_threads__thread_id__history_post",
"parameters": [
{
"description": "The ID of the thread.",
"required": true,
"schema": {
"type": "string",
"format": "uuid",
"title": "Thread Id",
"description": "The ID of the thread."
},
"name": "thread_id",
"in": "path"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadStateSearch"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/ThreadState"
},
"type": "array",
"title": "Response Get Thread History Post Threads Thread Id History Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/threads/{thread_id}/copy": {
Expand Down Expand Up @@ -1575,12 +1475,6 @@
],
"description": "The assistant ID or graph name to run. If using graph name, will default to first assistant created from that graph."
},
"checkpoint": {
"type": "object",
"title": "Checkpoint",
"description": "The checkpoint to resume from.",
"$ref": "#/components/schemas/CheckpointConfig"
},
"input": {
"anyOf": [
{
Expand Down Expand Up @@ -1900,26 +1794,6 @@
"title": "ThreadPatch",
"description": "Payload for creating a thread."
},
"ThreadStateCheckpointRequest": {
"properties": {
"checkpoint": {
"$ref": "#/components/schemas/CheckpointConfig",
"title": "Checkpoint",
"description": "The checkpoint to get the state for."
},
"subgraphs": {
"type": "boolean",
"title": "Subgraphs",
"description": "Include subgraph states."
}
},
"required": [
"checkpoint"
],
"type": "object",
"title": "ThreadStateCheckpointRequest",
"description": "Payload for getting the state of a thread at a checkpoint."
},
"ThreadState": {
"properties": {
"values": {
Expand Down Expand Up @@ -2006,45 +1880,10 @@
],
"title": "ThreadState"
},
"ThreadStateSearch": {
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"description": "The maximum number of states to return.",
"default": 10,
"maximum": 1000,
"minimum": 1
},
"before": {
"title": "Before",
"description": "Return states before this checkpoint.",
"$ref": "#/components/schemas/CheckpointConfig"
},
"metadata": {
"type": "object",
"title": "Metadata",
"description": "Filter states by metadata key-value pairs."
},
"checkpoint": {
"$ref": "#/components/schemas/CheckpointConfig",
"title": "Checkpoint",
"description": "Return states for this subgraph."
}
},
"type": "object",
"title": "ThreadStateSearch"
},
"ThreadStateUpdate": {
"properties": {
"values": {
"anyOf": [
{
"items": {
"type": "object"
},
"type": "array"
},
{
"type": "object"
},
Expand All @@ -2059,11 +1898,6 @@
"$ref": "#/components/schemas/CheckpointConfig",
"title": "Checkpoint",
"description": "The checkpoint to update the state of."
},
"as_node": {
"type": "string",
"title": "As Node",
"description": "Update the state as if this node had just executed."
}
},
"type": "object",
Expand Down

0 comments on commit b492d40

Please sign in to comment.