@teodorruskvi/chat-core 0.1.38 → 0.1.39

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.
@@ -2,11 +2,15 @@ import { TemporalMetadata, Role } from "./primitives";
2
2
  /**
3
3
  * Content Block Types (Aligned with backend/LangChain)
4
4
  */
5
- export type MessagePartType = "text" | "image_url" | "file" | "tool_call";
5
+ export type MessagePartType = "text" | "image_url" | "file" | "reasoning";
6
6
  export interface TextPart {
7
7
  type: "text";
8
8
  text: string;
9
9
  }
10
+ export interface ReasoningPart {
11
+ type: "reasoning";
12
+ reasoning: string;
13
+ }
10
14
  export interface ImagePart {
11
15
  type: "image_url";
12
16
  image_url: {
@@ -35,7 +39,7 @@ export interface InterruptAlternative {
35
39
  label: string;
36
40
  value?: any;
37
41
  }
38
- export type MessagePart = TextPart | ImagePart | FilePart;
42
+ export type MessagePart = TextPart | ImagePart | FilePart | ReasoningPart;
39
43
  /**
40
44
  * Message object (Unified structure)
41
45
  */
@@ -122,7 +122,7 @@ export type TaskStartEvent = {
122
122
  export type MessageStreamEvent = ToolProgressEvent | {
123
123
  type: "messages/partial";
124
124
  messages: Array<{
125
- content: string;
125
+ content: string | any[];
126
126
  id: string;
127
127
  type: string;
128
128
  responseMetadata?: Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teodorruskvi/chat-core",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "Core chat protocols, hooks, and utilities (UI-agnostic)",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",