Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions core/schemas/responses.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package schemas

import (
"encoding/json"
"fmt"
"reflect"
"strings"
Expand Down Expand Up @@ -928,6 +929,11 @@ type ResponsesMessage struct {
Role *ResponsesMessageRoleType `json:"role,omitempty"`
Content *ResponsesMessageContent `json:"content,omitempty"`

// Author and Recipient are required on multi-agent collab_tool_call items.
// Preserved as raw JSON to survive bifrost round-trip without schema coupling.
Author json.RawMessage `json:"author,omitempty"`
Recipient json.RawMessage `json:"recipient,omitempty"`

*ResponsesToolMessage // For Tool calls and outputs

CacheControl *CacheControl `json:"cache_control,omitempty"` // Carries cache_control for function_call and function_call_output message types
Expand Down Expand Up @@ -1018,6 +1024,9 @@ type ResponsesMessageContentBlock struct {
FileID *string `json:"file_id,omitempty"` // Reference to uploaded file
Text *string `json:"text,omitempty"`
Signature *string `json:"signature,omitempty"` // Signature of the content (for reasoning)
// EncryptedContent is required on reasoning content blocks during history replay.
// OpenAI returns it alongside summary_text blocks; it must be echoed back verbatim.
EncryptedContent *string `json:"encrypted_content,omitempty"`

*ResponsesInputMessageContentBlockImage
*ResponsesInputMessageContentBlockFile
Expand Down