ai 4.0.0-canary.2 → 4.0.0-canary.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "4.0.0-canary.2",
3
+ "version": "4.0.0-canary.3",
4
4
  "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -41,9 +41,9 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@ai-sdk/provider": "1.0.0-canary.0",
44
- "@ai-sdk/provider-utils": "2.0.0-canary.0",
45
- "@ai-sdk/react": "1.0.0-canary.2",
46
- "@ai-sdk/ui-utils": "1.0.0-canary.2",
44
+ "@ai-sdk/provider-utils": "2.0.0-canary.1",
45
+ "@ai-sdk/react": "1.0.0-canary.3",
46
+ "@ai-sdk/ui-utils": "1.0.0-canary.3",
47
47
  "@opentelemetry/api": "1.9.0",
48
48
  "eventsource-parser": "1.1.2",
49
49
  "jsondiffpatch": "0.6.0",
@@ -437,7 +437,7 @@ It can be a user message, an assistant message, or a tool message.
437
437
  type CoreMessage = CoreSystemMessage | CoreUserMessage | CoreAssistantMessage | CoreToolMessage;
438
438
 
439
439
  type UIMessage = {
440
- role: 'system' | 'user' | 'assistant' | 'function' | 'data' | 'tool';
440
+ role: 'system' | 'user' | 'assistant' | 'data';
441
441
  content: string;
442
442
  toolInvocations?: ToolInvocation[];
443
443
  experimental_attachments?: Attachment[];
@@ -435,7 +435,7 @@ It can be a user message, an assistant message, or a tool message.
435
435
  type CoreMessage = CoreSystemMessage | CoreUserMessage | CoreAssistantMessage | CoreToolMessage;
436
436
 
437
437
  type UIMessage = {
438
- role: 'system' | 'user' | 'assistant' | 'function' | 'data' | 'tool';
438
+ role: 'system' | 'user' | 'assistant' | 'data';
439
439
  content: string;
440
440
  toolInvocations?: ToolInvocation[];
441
441
  experimental_attachments?: Attachment[];
@@ -1092,9 +1092,7 @@ function convertToCoreMessages(messages, options) {
1092
1092
  });
1093
1093
  break;
1094
1094
  }
1095
- case "function":
1096
- case "data":
1097
- case "tool": {
1095
+ case "data": {
1098
1096
  break;
1099
1097
  }
1100
1098
  default: {