DeepPartial<T>:T extends object ? { [K in keyof T]?: DeepPartial<T[K]> } : T
Recursively makes every property in T optional, including nested objects.
Used to type the partial objects yielded by StreamObjectResult.partialObjectStream
as the LLM incrementally builds the JSON response.
Recursively makes every property in
Toptional, including nested objects. Used to type the partial objects yielded byStreamObjectResult.partialObjectStreamas the LLM incrementally builds the JSON response.