@everworker/oneringai 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -525,6 +525,15 @@ interface ToolResultContent extends BaseContent {
525
525
  tool_use_id: string;
526
526
  content: string | any;
527
527
  error?: string;
528
+ /**
529
+ * Images extracted from tool results via the __images convention.
530
+ * Stored separately from `content` so they don't inflate text-based token counts.
531
+ * Provider converters read this field to inject native multimodal image blocks.
532
+ */
533
+ __images?: Array<{
534
+ base64: string;
535
+ mediaType: string;
536
+ }>;
528
537
  }
529
538
  type Content = InputTextContent | InputImageContent | InputFileContent | OutputTextContent | ToolUseContent | ToolResultContent;
530
539
 
@@ -525,6 +525,15 @@ interface ToolResultContent extends BaseContent {
525
525
  tool_use_id: string;
526
526
  content: string | any;
527
527
  error?: string;
528
+ /**
529
+ * Images extracted from tool results via the __images convention.
530
+ * Stored separately from `content` so they don't inflate text-based token counts.
531
+ * Provider converters read this field to inject native multimodal image blocks.
532
+ */
533
+ __images?: Array<{
534
+ base64: string;
535
+ mediaType: string;
536
+ }>;
528
537
  }
529
538
  type Content = InputTextContent | InputImageContent | InputFileContent | OutputTextContent | ToolUseContent | ToolResultContent;
530
539