Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions schema/agentic_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ type AgenticMessage struct {
type AgenticResponseMeta struct {
TokenUsage *TokenUsage

OpenAIExtensions *openai.ResponseMeta
GeminiExtensions *gemini.ResponseMeta
ClaudeExtensions *claude.MessageMeta
Extensions any
OpenAIExtension *openai.ResponseMetaExtension
GeminiExtension *gemini.ResponseMetaExtension
ClaudeExtension *claude.ResponseMetaExtension
Extension any
}

type StreamMeta struct {
Expand Down Expand Up @@ -166,9 +166,9 @@ type UserInputFile struct {
type AssistantGenText struct {
Text string

OpenAIExtensions *openai.OutputText
ClaudeExtensions *claude.TextBlock
Extensions any
OpenAIExtension *openai.AssistantGenTextExtension
ClaudeExtension *claude.AssistantGenTextExtension
Extension any

// Extra stores additional information.
Extra map[string]any
Expand Down
2 changes: 1 addition & 1 deletion schema/claude/content_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package claude

type TextBlock struct {
type AssistantGenTextExtension struct {
Citations []*TextCitation `json:"citations"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package claude

type MessageMeta struct {
type ResponseMetaExtension struct {
ID string `json:"id"`
StopReason string `json:"stop_reason"`
}
2 changes: 1 addition & 1 deletion schema/gemini/response_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package gemini

type ResponseMeta struct {
type ResponseMetaExtension struct {
ID string `json:"id"`
FinishReason string `json:"finish_reason"`
GroundingMeta *GroundingMetadata `json:"grounding_meta,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion schema/openai/content_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package openai

type OutputText struct {
type AssistantGenTextExtension struct {
ItemID string `json:"item_id"`
Annotations []*TextAnnotation `json:"annotations"`
}
Expand Down
2 changes: 1 addition & 1 deletion schema/openai/response_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package openai

type ResponseMeta struct {
type ResponseMetaExtension struct {
ID string `json:"id"`
Status string `json:"status"`
Error *ResponseError `json:"error,omitempty"`
Expand Down
Loading