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
+53 -170
View File
@@ -3322,6 +3322,34 @@
],
"type": "object"
},
"ThreadArtifactCreateParams": {
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifactWriteParams"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"threadId"
],
"type": "object"
},
"ThreadArtifactWriteParams": {
"properties": {
"artifactType": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"payload"
],
"type": "object"
},
"ThreadCompactStartParams": {
"properties": {
"threadId": {
@@ -4397,79 +4425,6 @@
"mode"
],
"type": "object"
},
"ThreadArtifactCreateParams": {
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifactWriteParams"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"threadId"
],
"type": "object"
},
"ThreadArtifactDeleteParams": {
"properties": {
"artifactId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifactId",
"threadId"
],
"type": "object"
},
"ThreadArtifactListParams": {
"properties": {
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"type": "object"
},
"ThreadArtifactUpdateParams": {
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifactWriteParams"
},
"artifactId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"artifactId",
"threadId"
],
"type": "object"
},
"ThreadArtifactWriteParams": {
"properties": {
"artifactType": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"payload"
],
"type": "object"
}
},
"description": "Request from the client to the server.",
@@ -4667,6 +4622,30 @@
"title": "Thread/metadata/updateRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/create"
],
"title": "Thread/artifact/createRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactCreateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/createRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -6274,103 +6253,7 @@
],
"title": "FuzzyFileSearchRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/list"
],
"title": "Thread/artifact/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/listRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/create"
],
"title": "Thread/artifact/createRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactCreateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/createRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/update"
],
"title": "Thread/artifact/updateRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactUpdateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/updateRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/delete"
],
"title": "Thread/artifact/deleteRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactDeleteParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/deleteRequest",
"type": "object"
}
],
"title": "ClientRequest"
}
}
@@ -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"
}
}
@@ -396,6 +396,30 @@
"title": "Thread/metadata/updateRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/artifact/create"
],
"title": "Thread/artifact/createRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadArtifactCreateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/createRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -2003,102 +2027,6 @@
],
"title": "FuzzyFileSearchRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/artifact/list"
],
"title": "Thread/artifact/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadArtifactListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/listRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/artifact/create"
],
"title": "Thread/artifact/createRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadArtifactCreateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/createRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/artifact/update"
],
"title": "Thread/artifact/updateRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadArtifactUpdateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/updateRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/artifact/delete"
],
"title": "Thread/artifact/deleteRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadArtifactDeleteParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/deleteRequest",
"type": "object"
}
],
"title": "ClientRequest"
@@ -4059,6 +3987,26 @@
"title": "Thread/goal/updatedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"thread/artifacts/updated"
],
"title": "Thread/artifacts/updatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadArtifactsUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "Thread/artifacts/updatedNotification",
"type": "object"
},
{
"properties": {
"method": {
@@ -5145,26 +5093,6 @@
],
"title": "Account/login/completedNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"thread/artifacts/updated"
],
"title": "Thread/artifacts/updatedNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadArtifactsUpdatedNotification"
}
},
"required": [
"method",
"params"
],
"title": "Thread/artifacts/updatedNotification",
"type": "object"
}
],
"title": "ServerNotification"
@@ -15211,6 +15139,14 @@
"null"
]
},
"artifacts": {
"default": [],
"description": "Model-managed artifacts associated with the thread.",
"items": {
"$ref": "#/definitions/v2/ThreadArtifact"
},
"type": "array"
},
"cliVersion": {
"description": "Version of the CLI that created the thread.",
"type": "string"
@@ -15317,16 +15253,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/v2/ThreadArtifact"
},
"type": [
"array",
"null"
]
}
},
"required": [
@@ -15405,6 +15331,91 @@
"title": "ThreadArchivedNotification",
"type": "object"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadArtifactCreateParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/v2/ThreadArtifactWriteParams"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"threadId"
],
"title": "ThreadArtifactCreateParams",
"type": "object"
},
"ThreadArtifactCreateResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/v2/ThreadArtifact"
}
},
"required": [
"artifact"
],
"title": "ThreadArtifactCreateResponse",
"type": "object"
},
"ThreadArtifactWriteParams": {
"properties": {
"artifactType": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"payload"
],
"type": "object"
},
"ThreadArtifactsUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/v2/ThreadArtifact"
},
"type": "array"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifacts",
"threadId"
],
"title": "ThreadArtifactsUpdatedNotification",
"type": "object"
},
"ThreadClosedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -18614,185 +18625,9 @@
"okOverridden"
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadArtifactCreateParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/v2/ThreadArtifactWriteParams"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"threadId"
],
"title": "ThreadArtifactCreateParams",
"type": "object"
},
"ThreadArtifactCreateResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/v2/ThreadArtifact"
}
},
"required": [
"artifact"
],
"title": "ThreadArtifactCreateResponse",
"type": "object"
},
"ThreadArtifactDeleteParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifactId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifactId",
"threadId"
],
"title": "ThreadArtifactDeleteParams",
"type": "object"
},
"ThreadArtifactDeleteResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ThreadArtifactDeleteResponse",
"type": "object"
},
"ThreadArtifactListParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "ThreadArtifactListParams",
"type": "object"
},
"ThreadArtifactListResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/v2/ThreadArtifact"
},
"type": "array"
}
},
"required": [
"artifacts"
],
"title": "ThreadArtifactListResponse",
"type": "object"
},
"ThreadArtifactUpdateParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/v2/ThreadArtifactWriteParams"
},
"artifactId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"artifactId",
"threadId"
],
"title": "ThreadArtifactUpdateParams",
"type": "object"
},
"ThreadArtifactUpdateResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/v2/ThreadArtifact"
}
},
"required": [
"artifact"
],
"title": "ThreadArtifactUpdateResponse",
"type": "object"
},
"ThreadArtifactWriteParams": {
"properties": {
"artifactType": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"payload"
],
"type": "object"
},
"ThreadArtifactsUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/v2/ThreadArtifact"
},
"type": "array"
},
"threadId": {
"type": "string"
},
"turnId": {
"type": [
"string",
"null"
]
}
},
"required": [
"artifacts",
"threadId"
],
"title": "ThreadArtifactsUpdatedNotification",
"type": "object"
}
}
},
"title": "CodexAppServerProtocol",
"type": "object"
}
}
@@ -1136,6 +1136,30 @@
"title": "Thread/metadata/updateRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/create"
],
"title": "Thread/artifact/createRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactCreateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/createRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -2743,102 +2767,6 @@
],
"title": "FuzzyFileSearchRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/list"
],
"title": "Thread/artifact/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/listRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/create"
],
"title": "Thread/artifact/createRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactCreateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/createRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/update"
],
"title": "Thread/artifact/updateRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactUpdateParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/updateRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/artifact/delete"
],
"title": "Thread/artifact/deleteRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadArtifactDeleteParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/artifact/deleteRequest",
"type": "object"
}
],
"title": "ClientRequest"
@@ -11287,6 +11215,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": {
@@ -12373,26 +12321,6 @@
],
"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"
@@ -13035,6 +12963,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"
@@ -13141,16 +13077,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": [
@@ -13229,6 +13155,91 @@
"title": "ThreadArchivedNotification",
"type": "object"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadArtifactCreateParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifactWriteParams"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"threadId"
],
"title": "ThreadArtifactCreateParams",
"type": "object"
},
"ThreadArtifactCreateResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifact"
}
},
"required": [
"artifact"
],
"title": "ThreadArtifactCreateResponse",
"type": "object"
},
"ThreadArtifactWriteParams": {
"properties": {
"artifactType": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"payload"
],
"type": "object"
},
"ThreadArtifactsUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/ThreadArtifact"
},
"type": "array"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifacts",
"threadId"
],
"title": "ThreadArtifactsUpdatedNotification",
"type": "object"
},
"ThreadClosedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -16438,184 +16449,8 @@
"okOverridden"
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadArtifactCreateParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifactWriteParams"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"threadId"
],
"title": "ThreadArtifactCreateParams",
"type": "object"
},
"ThreadArtifactCreateResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifact"
}
},
"required": [
"artifact"
],
"title": "ThreadArtifactCreateResponse",
"type": "object"
},
"ThreadArtifactDeleteParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifactId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifactId",
"threadId"
],
"title": "ThreadArtifactDeleteParams",
"type": "object"
},
"ThreadArtifactDeleteResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ThreadArtifactDeleteResponse",
"type": "object"
},
"ThreadArtifactListParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "ThreadArtifactListParams",
"type": "object"
},
"ThreadArtifactListResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/ThreadArtifact"
},
"type": "array"
}
},
"required": [
"artifacts"
],
"title": "ThreadArtifactListResponse",
"type": "object"
},
"ThreadArtifactUpdateParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifactWriteParams"
},
"artifactId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"artifactId",
"threadId"
],
"title": "ThreadArtifactUpdateParams",
"type": "object"
},
"ThreadArtifactUpdateResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifact"
}
},
"required": [
"artifact"
],
"title": "ThreadArtifactUpdateResponse",
"type": "object"
},
"ThreadArtifactWriteParams": {
"properties": {
"artifactType": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"payload"
],
"type": "object"
},
"ThreadArtifactsUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/ThreadArtifact"
},
"type": "array"
},
"threadId": {
"type": "string"
},
"turnId": {
"type": [
"string",
"null"
]
}
},
"required": [
"artifacts",
"threadId"
],
"title": "ThreadArtifactsUpdatedNotification",
"type": "object"
}
},
"title": "CodexAppServerProtocolV2",
"type": "object"
}
}
@@ -1,17 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"artifactId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifactId",
"threadId"
],
"title": "ThreadArtifactDeleteParams",
"type": "object"
}
@@ -1,5 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ThreadArtifactDeleteResponse",
"type": "object"
}
@@ -1,13 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "ThreadArtifactListParams",
"type": "object"
}
@@ -1,40 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
"artifacts": {
"items": {
"$ref": "#/definitions/ThreadArtifact"
},
"type": "array"
}
},
"required": [
"artifacts"
],
"title": "ThreadArtifactListResponse",
"type": "object"
}
@@ -1,36 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadArtifactWriteParams": {
"properties": {
"artifactType": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"payload"
],
"type": "object"
}
},
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifactWriteParams"
},
"artifactId": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"artifact",
"artifactId",
"threadId"
],
"title": "ThreadArtifactUpdateParams",
"type": "object"
}
@@ -1,37 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
"artifact": {
"$ref": "#/definitions/ThreadArtifact"
}
},
"required": [
"artifact"
],
"title": "ThreadArtifactUpdateResponse",
"type": "object"
}
@@ -33,12 +33,6 @@
},
"threadId": {
"type": "string"
},
"turnId": {
"type": [
"string",
"null"
]
}
},
"required": [
@@ -1332,6 +1332,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"
@@ -1438,16 +1446,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": [
@@ -1473,6 +1471,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2568,28 +2588,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2660,4 +2658,4 @@
],
"title": "ThreadForkResponse",
"type": "object"
}
}
@@ -789,6 +789,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"
@@ -895,16 +903,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": [
@@ -930,6 +928,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2025,28 +2045,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2076,4 +2074,4 @@
],
"title": "ThreadListResponse",
"type": "object"
}
}
@@ -789,6 +789,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"
@@ -895,16 +903,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": [
@@ -930,6 +928,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2025,28 +2045,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2059,4 +2057,4 @@
],
"title": "ThreadMetadataUpdateResponse",
"type": "object"
}
}
@@ -789,6 +789,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"
@@ -895,16 +903,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": [
@@ -930,6 +928,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2025,28 +2045,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2059,4 +2057,4 @@
],
"title": "ThreadReadResponse",
"type": "object"
}
}
@@ -1332,6 +1332,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"
@@ -1438,16 +1446,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": [
@@ -1473,6 +1471,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2568,28 +2588,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2660,4 +2658,4 @@
],
"title": "ThreadResumeResponse",
"type": "object"
}
}
@@ -789,6 +789,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"
@@ -895,16 +903,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": [
@@ -930,6 +928,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2025,28 +2045,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2064,4 +2062,4 @@
],
"title": "ThreadRollbackResponse",
"type": "object"
}
}
@@ -1332,6 +1332,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"
@@ -1438,16 +1446,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": [
@@ -1473,6 +1471,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2568,28 +2588,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2660,4 +2658,4 @@
],
"title": "ThreadStartResponse",
"type": "object"
}
}
@@ -789,6 +789,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"
@@ -895,16 +903,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": [
@@ -930,6 +928,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2025,28 +2045,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2059,4 +2057,4 @@
],
"title": "ThreadStartedNotification",
"type": "object"
}
}
@@ -789,6 +789,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"
@@ -895,16 +903,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": [
@@ -930,6 +928,28 @@
],
"type": "string"
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
},
"ThreadId": {
"type": "string"
},
@@ -2025,28 +2045,6 @@
"type": "object"
}
]
},
"ThreadArtifact": {
"properties": {
"artifactType": {
"type": "string"
},
"createdAt": {
"format": "int64",
"type": "integer"
},
"id": {
"type": "string"
},
"payload": true
},
"required": [
"artifactType",
"createdAt",
"id",
"payload"
],
"type": "object"
}
},
"properties": {
@@ -2059,4 +2057,4 @@
],
"title": "ThreadUnarchiveResponse",
"type": "object"
}
}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -77,7 +77,7 @@ gitInfo: GitInfo | null,
/**
* Model-managed artifacts associated with the thread.
*/
artifacts?: Array<ThreadArtifact>,
artifacts: Array<ThreadArtifact>,
/**
* Optional user-facing thread title.
*/
@@ -1,5 +0,0 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadArtifactDeleteParams = { threadId: string, artifactId: string, };
@@ -1,5 +0,0 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadArtifactDeleteResponse = Record<string, never>;
@@ -1,5 +0,0 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadArtifactListParams = { threadId: string, };
@@ -1,6 +0,0 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadArtifact } from "./ThreadArtifact";
export type ThreadArtifactListResponse = { artifacts: Array<ThreadArtifact>, };
@@ -1,6 +0,0 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadArtifactWriteParams } from "./ThreadArtifactWriteParams";
export type ThreadArtifactUpdateParams = { threadId: string, artifactId: string, artifact: ThreadArtifactWriteParams, };
@@ -1,6 +0,0 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadArtifact } from "./ThreadArtifact";
export type ThreadArtifactUpdateResponse = { artifact: ThreadArtifact, };
@@ -3,4 +3,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadArtifact } from "./ThreadArtifact";
export type ThreadArtifactsUpdatedNotification = { threadId: string, turnId: string | null, artifacts: Array<ThreadArtifact>, };
export type ThreadArtifactsUpdatedNotification = { threadId: string, artifacts: Array<ThreadArtifact>, };
@@ -359,12 +359,6 @@ export type { ThreadArchivedNotification } from "./ThreadArchivedNotification";
export type { ThreadArtifact } from "./ThreadArtifact";
export type { ThreadArtifactCreateParams } from "./ThreadArtifactCreateParams";
export type { ThreadArtifactCreateResponse } from "./ThreadArtifactCreateResponse";
export type { ThreadArtifactDeleteParams } from "./ThreadArtifactDeleteParams";
export type { ThreadArtifactDeleteResponse } from "./ThreadArtifactDeleteResponse";
export type { ThreadArtifactListParams } from "./ThreadArtifactListParams";
export type { ThreadArtifactListResponse } from "./ThreadArtifactListResponse";
export type { ThreadArtifactUpdateParams } from "./ThreadArtifactUpdateParams";
export type { ThreadArtifactUpdateResponse } from "./ThreadArtifactUpdateResponse";
export type { ThreadArtifactWriteParams } from "./ThreadArtifactWriteParams";
export type { ThreadArtifactsUpdatedNotification } from "./ThreadArtifactsUpdatedNotification";
export type { ThreadClosedNotification } from "./ThreadClosedNotification";
@@ -516,26 +516,11 @@ client_request_definitions! {
serialization: thread_id(params.thread_id),
response: v2::ThreadMetadataUpdateResponse,
},
ThreadArtifactList => "thread/artifact/list" {
params: v2::ThreadArtifactListParams,
serialization: thread_id(params.thread_id),
response: v2::ThreadArtifactListResponse,
},
ThreadArtifactCreate => "thread/artifact/create" {
params: v2::ThreadArtifactCreateParams,
serialization: thread_id(params.thread_id),
response: v2::ThreadArtifactCreateResponse,
},
ThreadArtifactUpdate => "thread/artifact/update" {
params: v2::ThreadArtifactUpdateParams,
serialization: thread_id(params.thread_id),
response: v2::ThreadArtifactUpdateResponse,
},
ThreadArtifactDelete => "thread/artifact/delete" {
params: v2::ThreadArtifactDeleteParams,
serialization: thread_id(params.thread_id),
response: v2::ThreadArtifactDeleteResponse,
},
#[experimental("thread/memoryMode/set")]
ThreadMemoryModeSet => "thread/memoryMode/set" {
params: v2::ThreadMemoryModeSetParams,
@@ -2286,7 +2271,7 @@ mod tests {
agent_nickname: None,
agent_role: None,
git_info: None,
artifacts: None,
artifacts: Vec::new(),
name: None,
turns: Vec::new(),
},
@@ -691,20 +691,6 @@ pub struct ThreadMetadataUpdateResponse {
pub thread: Thread,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadArtifactListParams {
pub thread_id: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadArtifactListResponse {
pub artifacts: Vec<ThreadArtifact>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
@@ -728,35 +714,6 @@ pub struct ThreadArtifactCreateResponse {
pub artifact: ThreadArtifact,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadArtifactUpdateParams {
pub thread_id: String,
pub artifact_id: String,
pub artifact: ThreadArtifactWriteParams,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadArtifactUpdateResponse {
pub artifact: ThreadArtifact,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadArtifactDeleteParams {
pub thread_id: String,
pub artifact_id: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ThreadArtifactDeleteResponse {}
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "lowercase")]
#[ts(rename_all = "lowercase")]
@@ -1242,7 +1199,6 @@ pub struct ThreadGoalUpdatedNotification {
#[ts(export_to = "v2/")]
pub struct ThreadArtifactsUpdatedNotification {
pub thread_id: String,
pub turn_id: Option<String>,
pub artifacts: Vec<ThreadArtifact>,
}
@@ -150,9 +150,8 @@ pub struct Thread {
/// Optional Git metadata captured when the thread was created.
pub git_info: Option<GitInfo>,
/// Model-managed artifacts associated with the thread.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub artifacts: Option<Vec<ThreadArtifact>>,
#[serde(default)]
pub artifacts: Vec<ThreadArtifact>,
/// Optional user-facing thread title.
pub name: Option<String>,
/// Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read`