fix: delete the unused ChatMessagePart.Signature field (#27588)

This commit is contained in:
Danielle Maywood
2026-07-28 16:26:19 +01:00
committed by GitHub
parent 5f72c1525e
commit be226409b8
6 changed files with 0 additions and 29 deletions
-1
View File
@@ -333,7 +333,6 @@ func AllChatMessagePartTypes() []ChatMessagePartType {
type ChatMessagePart struct {
Type ChatMessagePartType `json:"type"`
Text string `json:"text" variants:"text,reasoning"`
Signature string `json:"signature,omitempty"`
ToolCallID string `json:"tool_call_id,omitempty" variants:"tool-call?,tool-result?"`
ToolName string `json:"tool_name,omitempty" variants:"tool-call?,tool-result?"`
MCPServerConfigID uuid.NullUUID `json:"mcp_server_config_id,omitempty" format:"uuid" variants:"tool-call?,tool-result?"`
-1
View File
@@ -307,7 +307,6 @@ func TestChatMessagePartVariantTags(t *testing.T) {
// variants tag or add it here with a comment explaining why.
excludedFields := map[string]string{
"type": "discriminant, added automatically by codegen",
"signature": "added in #22290, never populated by any code path",
"provider_metadata": "internal only, stripped by db2sdk before API responses",
"context_file_content": "internal only, stripped before API responses (typescript:\"-\")",
"context_file_os": "internal only, used during prompt expansion (typescript:\"-\")",