11import type { TrackEventFn } from './analytics'
22import type { SendActionFn } from './client'
3- import type { CheckLiveUserInputFn } from './live-user-input'
43import type { OpenRouterProviderRoutingOptions } from '../agent-template'
54import type { ParamsExcluding } from '../function-params'
65import type { Logger } from './logger'
@@ -50,8 +49,8 @@ export type PromptAiSdkStreamFn = (
5049 sendAction : SendActionFn
5150 logger : Logger
5251 trackEvent : TrackEventFn
53- } & ParamsExcluding < typeof streamText , 'model' | 'messages' > &
54- ParamsExcluding < CheckLiveUserInputFn , 'clientSessionId ' > ,
52+ signal : AbortSignal
53+ } & ParamsExcluding < typeof streamText , 'model' | 'messages '> ,
5554) => AsyncGenerator < StreamChunk , string | null >
5655
5756export type PromptAiSdkFn = (
@@ -74,8 +73,8 @@ export type PromptAiSdkFn = (
7473 logger : Logger
7574 trackEvent : TrackEventFn
7675 n ?: number
77- } & ParamsExcluding < typeof generateText , 'model' | 'messages' > &
78- ParamsExcluding < CheckLiveUserInputFn , 'clientSessionId ' > ,
76+ signal : AbortSignal
77+ } & ParamsExcluding < typeof generateText , 'model' | 'messages '> ,
7978) => Promise < string >
8079
8180export type PromptAiSdkStructuredInput < T > = {
@@ -100,7 +99,8 @@ export type PromptAiSdkStructuredInput<T> = {
10099 sendAction : SendActionFn
101100 logger : Logger
102101 trackEvent : TrackEventFn
103- } & ParamsExcluding < CheckLiveUserInputFn , 'clientSessionId' >
102+ signal : AbortSignal
103+ }
104104export type PromptAiSdkStructuredOutput < T > = Promise < T >
105105export type PromptAiSdkStructuredFn = < T > (
106106 params : PromptAiSdkStructuredInput < T > ,
0 commit comments