teodor-new-chat-ui 4.3.579 → 4.3.581
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/features/chat/components/Message/renderers/tool/content/StreamProgress.d.ts +2 -1
- package/dist/features/streaming/utils/types.d.ts +7 -0
- package/dist/index.esm.js +3989 -3972
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +39 -39
- package/dist/index.umd.js.map +1 -1
- package/dist/shared/core/types/context.d.ts +5 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import type { ChatMessage } from "@/types";
|
|
|
2
2
|
interface StreamProgressProps {
|
|
3
3
|
message: ChatMessage;
|
|
4
4
|
isStreaming?: boolean;
|
|
5
|
+
viewMode?: "preview" | "expanded";
|
|
5
6
|
}
|
|
6
|
-
export declare function StreamProgress({ message, isStreaming }: StreamProgressProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export declare function StreamProgress({ message, isStreaming, viewMode, }: StreamProgressProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
8
|
export {};
|
|
@@ -81,7 +81,14 @@ export type ToolEndEvent = {
|
|
|
81
81
|
export type ToolProgressEvent = {
|
|
82
82
|
type: "tool.progress";
|
|
83
83
|
content?: string;
|
|
84
|
+
id?: string;
|
|
85
|
+
call_id?: string;
|
|
86
|
+
status?: string;
|
|
87
|
+
step?: string;
|
|
88
|
+
metadata?: Record<string, unknown>;
|
|
89
|
+
idx?: number;
|
|
84
90
|
seq?: number;
|
|
91
|
+
[key: string]: unknown;
|
|
85
92
|
};
|
|
86
93
|
export type ToolStreamEvent = ToolStartEvent | ToolEndEvent;
|
|
87
94
|
export type MessageStreamEvent = ToolProgressEvent | {
|