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
+15
View File
@@ -360,6 +360,7 @@ export type Message = {
content: Array<MessageContent>;
created?: number;
id?: string | null;
metadata?: MessageMetadata;
role: Role;
};
@@ -388,6 +389,20 @@ export type MessageContent = (TextContent & {
type: 'summarizationRequested';
});
/**
* Metadata for message visibility
*/
export type MessageMetadata = {
/**
* Whether the message should be included in the agent's context window
*/
agentVisible?: boolean;
/**
* Whether the message should be visible to the user in the UI
*/
userVisible?: boolean;
};
/**
* Information about a model's capabilities
*/