@xpert-ai/plugin-sdk 3.9.4 → 3.9.5
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
import { TChatOptions, TChatRequest } from '@xpert-ai/contracts';
|
|
2
2
|
export declare const AGENT_CHAT_DISPATCH_MESSAGE_TYPE: import("./message-type").StructuredHandoffMessageType;
|
|
3
|
-
export interface
|
|
3
|
+
export interface AgentChatHandoffMessageCallbackTarget {
|
|
4
|
+
transport?: 'handoff-message';
|
|
4
5
|
messageType: string;
|
|
5
6
|
headers?: Record<string, string>;
|
|
6
7
|
context?: Record<string, unknown>;
|
|
7
8
|
}
|
|
9
|
+
export interface AgentChatRedisPubSubCallbackTarget {
|
|
10
|
+
transport: 'redis-pubsub';
|
|
11
|
+
context?: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
export type AgentChatCallbackTarget = AgentChatHandoffMessageCallbackTarget | AgentChatRedisPubSubCallbackTarget;
|
|
8
14
|
export interface AgentChatDispatchPayload extends Record<string, unknown> {
|
|
9
15
|
request: TChatRequest;
|
|
10
|
-
options: TChatOptions
|
|
16
|
+
options: TChatOptions & {
|
|
17
|
+
xpertId?: string;
|
|
18
|
+
isDraft?: boolean;
|
|
19
|
+
from?: string;
|
|
20
|
+
fromEndUserId?: string;
|
|
21
|
+
execution?: {
|
|
22
|
+
id: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
11
25
|
callback: AgentChatCallbackTarget;
|
|
26
|
+
executionId?: string;
|
|
12
27
|
}
|
|
13
28
|
export interface AgentChatCallbackEnvelopePayload extends Record<string, unknown> {
|
|
14
29
|
kind: 'stream' | 'complete' | 'error';
|