@voltagent/core 2.3.2 → 2.3.4
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.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +490 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +566 -117
- package/dist/index.mjs.map +1 -1
- package/docs/agents/message-types.md +5 -0
- package/docs/api/streaming.md +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3316,6 +3316,10 @@ declare function createSubagent<TAgent extends Agent, TSchema extends z.ZodType>
|
|
|
3316
3316
|
* @template TOOLS - The tool set type parameter from ai-sdk
|
|
3317
3317
|
*/
|
|
3318
3318
|
type VoltAgentTextStreamPart<TOOLS extends Record<string, any> = Record<string, any>> = TextStreamPart<TOOLS> & {
|
|
3319
|
+
/**
|
|
3320
|
+
* Optional response message identifier (carried on start/step chunks).
|
|
3321
|
+
*/
|
|
3322
|
+
messageId?: string;
|
|
3319
3323
|
/**
|
|
3320
3324
|
* Optional identifier for the subagent that generated this event
|
|
3321
3325
|
*/
|
|
@@ -8428,6 +8432,7 @@ declare class Agent {
|
|
|
8428
8432
|
private resetOperationAttemptState;
|
|
8429
8433
|
private getConversationBuffer;
|
|
8430
8434
|
private getMemoryPersistQueue;
|
|
8435
|
+
private ensureStreamingResponseMessageId;
|
|
8431
8436
|
private flushPendingMessagesOnError;
|
|
8432
8437
|
/**
|
|
8433
8438
|
* Get contextual logger with parent tracking
|
|
@@ -8469,6 +8474,7 @@ declare class Agent {
|
|
|
8469
8474
|
* Prepare messages with system prompt and memory
|
|
8470
8475
|
*/
|
|
8471
8476
|
private prepareMessages;
|
|
8477
|
+
private validateIncomingUIMessages;
|
|
8472
8478
|
/**
|
|
8473
8479
|
* Get system message with dynamic instructions and retriever context
|
|
8474
8480
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3316,6 +3316,10 @@ declare function createSubagent<TAgent extends Agent, TSchema extends z.ZodType>
|
|
|
3316
3316
|
* @template TOOLS - The tool set type parameter from ai-sdk
|
|
3317
3317
|
*/
|
|
3318
3318
|
type VoltAgentTextStreamPart<TOOLS extends Record<string, any> = Record<string, any>> = TextStreamPart<TOOLS> & {
|
|
3319
|
+
/**
|
|
3320
|
+
* Optional response message identifier (carried on start/step chunks).
|
|
3321
|
+
*/
|
|
3322
|
+
messageId?: string;
|
|
3319
3323
|
/**
|
|
3320
3324
|
* Optional identifier for the subagent that generated this event
|
|
3321
3325
|
*/
|
|
@@ -8428,6 +8432,7 @@ declare class Agent {
|
|
|
8428
8432
|
private resetOperationAttemptState;
|
|
8429
8433
|
private getConversationBuffer;
|
|
8430
8434
|
private getMemoryPersistQueue;
|
|
8435
|
+
private ensureStreamingResponseMessageId;
|
|
8431
8436
|
private flushPendingMessagesOnError;
|
|
8432
8437
|
/**
|
|
8433
8438
|
* Get contextual logger with parent tracking
|
|
@@ -8469,6 +8474,7 @@ declare class Agent {
|
|
|
8469
8474
|
* Prepare messages with system prompt and memory
|
|
8470
8475
|
*/
|
|
8471
8476
|
private prepareMessages;
|
|
8477
|
+
private validateIncomingUIMessages;
|
|
8472
8478
|
/**
|
|
8473
8479
|
* Get system message with dynamic instructions and retriever context
|
|
8474
8480
|
*/
|