Add thread metadata

This commit is contained in:
Guinness Chen
2026-03-24 22:14:25 -07:00
parent 8c62829a2b
commit 4573855b35
43 changed files with 934 additions and 88 deletions

View File

@@ -126,6 +126,15 @@
"ephemeral": {
"type": "boolean"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"type": [
"object",
"null"
]
},
"model": {
"description": "Configuration overrides for the forked thread, if any.",
"type": [

View File

@@ -1056,6 +1056,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"

View File

@@ -814,6 +814,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"

View File

@@ -40,6 +40,16 @@
],
"description": "Patch the stored Git metadata for this thread. Omit a field to leave it unchanged, set it to `null` to clear it, or provide a string to replace the stored value."
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"description": "Replace the stored client-defined metadata for this thread.",
"type": [
"object",
"null"
]
},
"threadId": {
"type": "string"
}

View File

@@ -814,6 +814,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"

View File

@@ -814,6 +814,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"

View File

@@ -1056,6 +1056,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"

View File

@@ -814,6 +814,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"

View File

@@ -156,6 +156,15 @@
"null"
]
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"type": [
"object",
"null"
]
},
"model": {
"type": [
"string",

View File

@@ -1056,6 +1056,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"

View File

@@ -814,6 +814,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"

View File

@@ -814,6 +814,14 @@
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "Arbitrary client-defined metadata.",
"type": "object"
},
"modelProvider": {
"description": "Model provider used for this thread (for example, 'openai').",
"type": "string"