File tree 4 files changed +21
-1
lines changed
4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' ai ' : patch
3
+ ---
4
+
5
+ Deprecate StreamingReactResponse (use AI SDK RSC instead).
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ export type UseChatHelpers = {
73
73
data ?: JSONValue [ ] ;
74
74
} ;
75
75
76
+ /**
77
+ @deprecated Use AI SDK RSC instead: https://sdk.vercel.ai/docs/ai-sdk-rsc
78
+ */
76
79
type StreamingReactResponseAction = ( payload : {
77
80
messages : Message [ ] ;
78
81
data ?: Record < string , string > ;
@@ -115,6 +118,7 @@ const getStreamedResponse = async (
115
118
} ) ,
116
119
) ;
117
120
121
+ // TODO deprecated, remove in next major release
118
122
if ( typeof api !== 'string' ) {
119
123
// In this case, we are handling a Server Action. No complex mode handling needed.
120
124
Original file line number Diff line number Diff line change @@ -90,9 +90,15 @@ export interface Message {
90
90
tool_call_id ?: string ;
91
91
createdAt ?: Date ;
92
92
content : string ;
93
+
94
+ /**
95
+ @deprecated Use AI SDK RSC instead: https://sdk.vercel.ai/docs/ai-sdk-rsc
96
+ */
93
97
ui ?: string | JSX . Element | JSX . Element [ ] | null | undefined ;
98
+
94
99
role : 'system' | 'user' | 'assistant' | 'function' | 'data' | 'tool' ;
95
100
/**
101
+ *
96
102
* If the message has a role of `function`, the `name` field is the name of the function.
97
103
* Otherwise, the name field should not be set.
98
104
*/
Original file line number Diff line number Diff line change @@ -20,12 +20,17 @@ type Payload = {
20
20
content : string ;
21
21
} ;
22
22
23
+ /**
24
+ @deprecated Use AI SDK RSC instead: https://sdk.vercel.ai/docs/ai-sdk-rsc
25
+ */
23
26
export type ReactResponseRow = Payload & {
24
27
next : null | Promise < ReactResponseRow > ;
25
28
} ;
26
29
27
30
/**
28
- * A utility class for streaming React responses.
31
+ A utility class for streaming React responses.
32
+
33
+ @deprecated Use AI SDK RSC instead: https://sdk.vercel.ai/docs/ai-sdk-rsc
29
34
*/
30
35
export class experimental_StreamingReactResponse {
31
36
constructor (
You can’t perform that action at this time.
0 commit comments