File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
integrations/vercel-ai-sdk/src Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import {
2626 ToolChoice ,
2727 ToolSet ,
2828} from "ai" ;
29- import { randomUUID } from "crypto " ;
29+ import { randomUUID } from "@ag-ui/client " ;
3030import { z } from "zod" ;
3131
3232type ProcessedEvent =
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ export * from "./transform";
44export * from "./run" ;
55export * from "./legacy" ;
66export * from "./agent" ;
7+ export * from "./utils" ;
78export * from "@ag-ui/core" ;
89export * from "./chunks" ;
Original file line number Diff line number Diff line change 1- export const structuredClone_ = < T > ( obj : T ) : T => {
1+ import { v4 as uuidv4 } from 'uuid' ;
2+
3+ export const structuredClone_ = ( obj : any ) => {
24 if ( typeof structuredClone === "function" ) {
35 return structuredClone ( obj ) ;
46 }
@@ -9,3 +11,11 @@ export const structuredClone_ = <T>(obj: T): T => {
911 return { ...obj } as T ;
1012 }
1113} ;
14+
15+ /**
16+ * Generate a random UUID v4
17+ * Cross-platform compatible (Node.js, browsers, React Native)
18+ */
19+ export function randomUUID ( ) : string {
20+ return uuidv4 ( ) ;
21+ }
You can’t perform that action at this time.
0 commit comments