Persist thread artifacts in runtime store

This commit is contained in:
Jeremy Rose
2026-05-14 16:44:25 -07:00
parent 76814a24be
commit 4a72c41ed3
85 changed files with 1763 additions and 1451 deletions
@@ -3032,6 +3032,14 @@
"null"
]
},
"artifacts": {
"default": [],
"description": "Model-managed artifacts associated with the thread.",
"items": {
"$ref": "#/definitions/ThreadArtifact"
},
"type": "array"
},
"cliVersion": {
"description": "Version of the CLI that created the thread.",
"type": "string"
@@ -3138,16 +3146,6 @@
"description": "Unix timestamp (in seconds) when the thread was last updated.",
"format": "int64",
"type": "integer"
},
"artifacts": {
"description": "Model-managed artifacts associated with the thread.",
"items": {
"$ref": "#/definitions/ThreadArtifact"
},
"type": [
"array",
"null"
]
}
},
"required": [
@@ -3184,6 +3182,46 @@
],
"type": "object"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadArtifactsUpdatedNotification": {
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/ThreadArtifact"
},
"type": "array"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifacts",
"threadId"
],
"type": "object"
},
"ThreadClosedNotification": {
"properties": {
"threadId": {
@@ -4858,52 +4896,6 @@
"samplePaths"
],
"type": "object"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadArtifactsUpdatedNotification": {
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/ThreadArtifact"
},
"type": "array"
},
"threadId": {
"type": "string"
},
"turnId": {
"type": [
"string",
"null"
]
}
},
"required": [
"artifacts",
"threadId"
],
"type": "object"
}
},
"description": "Notification sent from the server to the client.",
@@ -5089,6 +5081,26 @@
"title": "Thread/goal/updatedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"thread/artifacts/updated"
],
"title": "Thread/artifacts/updatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactsUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "Thread/artifacts/updatedNotification",
"type": "object"
},
{
"properties": {
"method": {
@@ -6175,27 +6187,7 @@
],
"title": "Account/login/completedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"thread/artifacts/updated"
],
"title": "Thread/artifacts/updatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactsUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "Thread/artifacts/updatedNotification",
"type": "object"
}
],
"title": "ServerNotification"
}
}