Add Message Metadata for Visibility Control (#4538)

This commit is contained in:
David Katz
2025-09-10 17:26:16 -04:00
committed by GitHub
parent 63f3669cf7
commit 3f17f4007a
26 changed files with 542 additions and 324 deletions
+17
View File
@@ -2562,6 +2562,9 @@
"type": "string",
"nullable": true
},
"metadata": {
"$ref": "#/components/schemas/MessageMetadata"
},
"role": {
"$ref": "#/components/schemas/Role"
}
@@ -2785,6 +2788,20 @@
"propertyName": "type"
}
},
"MessageMetadata": {
"type": "object",
"description": "Metadata for message visibility",
"properties": {
"agentVisible": {
"type": "boolean",
"description": "Whether the message should be included in the agent's context window"
},
"userVisible": {
"type": "boolean",
"description": "Whether the message should be visible to the user in the UI"
}
}
},
"ModelInfo": {
"type": "object",
"description": "Information about a model's capabilities",