@butlerbot/sdk 0.0.10-alpha.0 → 0.0.10-alpha.1
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.
|
@@ -198,6 +198,15 @@ export type BaseResponseMetadata = {
|
|
|
198
198
|
/** The participant who generated this response */
|
|
199
199
|
participantId?: string;
|
|
200
200
|
};
|
|
201
|
+
/** A user message event */
|
|
202
|
+
export type UserMessageEvent = {
|
|
203
|
+
type: "user_message";
|
|
204
|
+
payload: MessagePayload;
|
|
205
|
+
metadata: {
|
|
206
|
+
userId: string;
|
|
207
|
+
timestamp: number;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
201
210
|
export type MessageEvent = {
|
|
202
211
|
type: "message";
|
|
203
212
|
payload: MessagePayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConvoStatusEvent, FileEvent, MessageEvent, ModelMessageCost, ReasoningEvent, ResponseMetadata, ResponseStatusEvent, TokenUsage, ToolEvent } from "../../conversation/v3/conversation_v3";
|
|
1
|
+
import { ConvoStatusEvent, FileEvent, MessageEvent, ModelMessageCost, ReasoningEvent, ResponseMetadata, ResponseStatusEvent, TokenUsage, ToolEvent, UserMessageEvent } from "../../conversation/v3/conversation_v3";
|
|
2
2
|
import { ErrorCode } from "../../error";
|
|
3
3
|
export type AIChatResultFailV4 = {
|
|
4
4
|
success: false;
|
|
@@ -13,6 +13,7 @@ export type AIChatResultV4 = AIChatResultFailV4 | AIChatResultSuccessV4;
|
|
|
13
13
|
export type TokenUsageV4 = TokenUsage;
|
|
14
14
|
export type ModelMessageCostV4 = ModelMessageCost;
|
|
15
15
|
export type ResponseStatusMetadataV4 = ResponseMetadata;
|
|
16
|
+
export type UserMessageResponseV4 = UserMessageEvent;
|
|
16
17
|
export type AIMessageResponseV4 = MessageEvent;
|
|
17
18
|
export type AIReasoningResponseV4 = ReasoningEvent;
|
|
18
19
|
export type AIFileResponseV4 = FileEvent;
|