Interface: StreamOptions
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:697
Streaming options for AI responses and large data
Extends
Omit<RequestOptions,"body">
Properties
allowUnauthenticated?
optionalallowUnauthenticated?:boolean
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:162
Allow unauthenticated request
Inherited from
RequestOptions.allowUnauthenticated
body?
optionalbody?:any
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:701
Request body
cacheKey?
optionalcacheKey?:string
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:173
Cache key
Inherited from
cacheTTL?
optionalcacheTTL?:number
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:178
Cache TTL in seconds
Inherited from
headers?
optionalheaders?:Record<string,string>
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:151
Custom headers
Inherited from
idempotencyKey?
optionalidempotencyKey?:string
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:188
Idempotency key for safe retries
Inherited from
jsonLines?
optionaljsonLines?:boolean
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:722
Decode as JSON lines (NDJSON)
Default
false
onChunk?
optionalonChunk?: (chunk) =>void
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:706
Callback for each streamed chunk
Parameters
chunk
string
Returns
void
onComplete?
optionalonComplete?: (fullResponse) =>void
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:711
Callback for stream completion
Parameters
fullResponse
string
Returns
void
onError?
optionalonError?: (error) =>void
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:716
Callback for stream errors
Parameters
error
Error
Returns
void
query?
optionalquery?:Record<string,any>
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:146
Query parameters
Inherited from
requiresAuth?
optionalrequiresAuth?:boolean
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:157
Requires authentication
Default
true
Inherited from
retry?
optionalretry?:RetryConfig
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:183
Retry configuration
Inherited from
signal?
optionalsignal?:AbortSignal
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:198
Abort signal for cancellation
Inherited from
timeout?
optionaltimeout?:number
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:193
Request timeout override
Inherited from
useCache?
optionaluseCache?:boolean
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/types.ts:168
Use cache
Default
true for GET requests