@voltagent/core 0.1.68 → 0.1.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +54 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2432,6 +2432,14 @@ type ProviderTextResponse<TOriginalResponse> = {
|
|
|
2432
2432
|
* Finish reason (if applicable)
|
|
2433
2433
|
*/
|
|
2434
2434
|
finishReason?: string;
|
|
2435
|
+
/**
|
|
2436
|
+
* Reasoning text from the model (if applicable)
|
|
2437
|
+
*/
|
|
2438
|
+
reasoning?: string;
|
|
2439
|
+
/**
|
|
2440
|
+
* Warnings from the model provider (if applicable)
|
|
2441
|
+
*/
|
|
2442
|
+
warnings?: any[];
|
|
2435
2443
|
};
|
|
2436
2444
|
type TextDeltaStreamPart = {
|
|
2437
2445
|
type: "text-delta";
|
|
@@ -2499,6 +2507,30 @@ type ProviderTextStreamResponse<TOriginalResponse> = {
|
|
|
2499
2507
|
* Optional - only available in providers that support it
|
|
2500
2508
|
*/
|
|
2501
2509
|
fullStream?: AsyncIterable<StreamPart>;
|
|
2510
|
+
/**
|
|
2511
|
+
* The full generated text.
|
|
2512
|
+
* Resolved when the response is finished.
|
|
2513
|
+
* Optional - only available in providers that support it.
|
|
2514
|
+
*/
|
|
2515
|
+
text?: Promise<string>;
|
|
2516
|
+
/**
|
|
2517
|
+
* The reason why generation stopped.
|
|
2518
|
+
* Resolved when the response is finished.
|
|
2519
|
+
* Optional - only available in providers that support it.
|
|
2520
|
+
*/
|
|
2521
|
+
finishReason?: Promise<string>;
|
|
2522
|
+
/**
|
|
2523
|
+
* Token usage information.
|
|
2524
|
+
* Resolved when the response is finished.
|
|
2525
|
+
* Optional - only available in providers that support it.
|
|
2526
|
+
*/
|
|
2527
|
+
usage?: Promise<UsageInfo>;
|
|
2528
|
+
/**
|
|
2529
|
+
* Model's reasoning text (if available).
|
|
2530
|
+
* Resolved when the response is finished.
|
|
2531
|
+
* Optional - only available in providers that support it.
|
|
2532
|
+
*/
|
|
2533
|
+
reasoning?: Promise<string | undefined>;
|
|
2502
2534
|
};
|
|
2503
2535
|
/**
|
|
2504
2536
|
* Response type for object generation operations
|
|
@@ -2520,6 +2552,10 @@ type ProviderObjectResponse<TOriginalResponse, TObject> = {
|
|
|
2520
2552
|
* Finish reason (if applicable)
|
|
2521
2553
|
*/
|
|
2522
2554
|
finishReason?: string;
|
|
2555
|
+
/**
|
|
2556
|
+
* Warnings from the model provider (if applicable)
|
|
2557
|
+
*/
|
|
2558
|
+
warnings?: any[];
|
|
2523
2559
|
};
|
|
2524
2560
|
/**
|
|
2525
2561
|
* Response type for object streaming operations
|
|
@@ -2533,6 +2569,24 @@ type ProviderObjectStreamResponse<TOriginalResponse, TObject> = {
|
|
|
2533
2569
|
* Object stream for consuming partial objects
|
|
2534
2570
|
*/
|
|
2535
2571
|
objectStream: AsyncIterableStream<Partial<TObject>>;
|
|
2572
|
+
/**
|
|
2573
|
+
* The generated object (typed according to the schema).
|
|
2574
|
+
* Resolved when the response is finished.
|
|
2575
|
+
* Optional - only available in providers that support it.
|
|
2576
|
+
*/
|
|
2577
|
+
object?: Promise<TObject>;
|
|
2578
|
+
/**
|
|
2579
|
+
* Token usage information.
|
|
2580
|
+
* Resolved when the response is finished.
|
|
2581
|
+
* Optional - only available in providers that support it.
|
|
2582
|
+
*/
|
|
2583
|
+
usage?: Promise<UsageInfo>;
|
|
2584
|
+
/**
|
|
2585
|
+
* Warnings from the model provider.
|
|
2586
|
+
* Resolved when the response is finished.
|
|
2587
|
+
* Optional - only available in providers that support it.
|
|
2588
|
+
*/
|
|
2589
|
+
warnings?: Promise<any[] | undefined>;
|
|
2536
2590
|
};
|
|
2537
2591
|
/**
|
|
2538
2592
|
* Data content type for binary data
|