@promptbook/wizard 0.100.0-43 → 0.100.0-45
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/esm/index.es.js +59 -71
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +10 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +12 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +26 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource.d.ts +19 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +15 -0
- package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +134 -0
- package/esm/typings/src/book-components/Chat/interfaces/ChatMessage.d.ts +30 -0
- package/esm/typings/src/book-components/Chat/utils/ExportFormat.d.ts +4 -0
- package/esm/typings/src/book-components/Chat/utils/addUtmParamsToUrl.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/utils/createShortLinkForChat.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/utils/downloadFile.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/utils/exportChatHistory.d.ts +11 -0
- package/esm/typings/src/book-components/Chat/utils/generatePdfContent.d.ts +10 -0
- package/esm/typings/src/book-components/Chat/utils/generateQrDataUrl.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/utils/getPromptbookBranding.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/utils/messagesToHtml.d.ts +10 -0
- package/esm/typings/src/book-components/Chat/utils/messagesToJson.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/utils/messagesToMarkdown.d.ts +10 -0
- package/esm/typings/src/book-components/Chat/utils/messagesToText.d.ts +10 -0
- package/esm/typings/src/config.d.ts +6 -0
- package/esm/typings/src/execution/ExecutionTask.d.ts +4 -13
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +59 -71
- package/umd/index.umd.js.map +1 -1
@@ -3,14 +3,24 @@ import type { AvatarChipProps } from '../book-components/AvatarProfile/AvatarChi
|
|
3
3
|
import { AvatarChip } from '../book-components/AvatarProfile/AvatarChip/AvatarChip';
|
4
4
|
import type { AvatarChipFromSourceProps } from '../book-components/AvatarProfile/AvatarChip/AvatarChipFromSource';
|
5
5
|
import { AvatarChipFromSource } from '../book-components/AvatarProfile/AvatarChip/AvatarChipFromSource';
|
6
|
+
import type { AvatarProfileProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfile';
|
7
|
+
import { AvatarProfile } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfile';
|
8
|
+
import type { AvatarProfileFromSourceProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource';
|
9
|
+
import { AvatarProfileFromSource } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource';
|
6
10
|
import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
|
7
11
|
import { BookEditor } from '../book-components/BookEditor/BookEditor';
|
8
12
|
import { DEFAULT_BOOK_FONT_CLASS } from '../book-components/BookEditor/config';
|
13
|
+
import { Chat } from '../book-components/Chat/Chat/Chat';
|
9
14
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
10
15
|
export type { AvatarChipProps };
|
11
16
|
export { AvatarChip };
|
12
17
|
export type { AvatarChipFromSourceProps };
|
13
18
|
export { AvatarChipFromSource };
|
19
|
+
export type { AvatarProfileProps };
|
20
|
+
export { AvatarProfile };
|
21
|
+
export type { AvatarProfileFromSourceProps };
|
22
|
+
export { AvatarProfileFromSource };
|
14
23
|
export type { BookEditorProps };
|
15
24
|
export { BookEditor };
|
16
25
|
export { DEFAULT_BOOK_FONT_CLASS };
|
26
|
+
export { Chat };
|
@@ -49,6 +49,7 @@ import { DEFAULT_IS_AUTO_INSTALLED } from '../config';
|
|
49
49
|
import { DEFAULT_TASK_SIMULATED_DURATION_MS } from '../config';
|
50
50
|
import { DEFAULT_GET_PIPELINE_COLLECTION_FUNCTION_NAME } from '../config';
|
51
51
|
import { DEFAULT_MAX_REQUESTS_PER_MINUTE } from '../config';
|
52
|
+
import { PROMPTBOOK_LOGO_URL } from '../config';
|
52
53
|
import { MODEL_TRUST_LEVELS } from '../constants';
|
53
54
|
import { MODEL_ORDERS } from '../constants';
|
54
55
|
import { ORDER_OF_PIPELINE_JSON } from '../constants';
|
@@ -211,6 +212,7 @@ export { DEFAULT_IS_AUTO_INSTALLED };
|
|
211
212
|
export { DEFAULT_TASK_SIMULATED_DURATION_MS };
|
212
213
|
export { DEFAULT_GET_PIPELINE_COLLECTION_FUNCTION_NAME };
|
213
214
|
export { DEFAULT_MAX_REQUESTS_PER_MINUTE };
|
215
|
+
export { PROMPTBOOK_LOGO_URL };
|
214
216
|
export { MODEL_TRUST_LEVELS };
|
215
217
|
export { MODEL_ORDERS };
|
216
218
|
export { ORDER_OF_PIPELINE_JSON };
|
@@ -13,7 +13,13 @@ import type { RetrievalResult } from '../book-2.0/commitments/KNOWLEDGE/types';
|
|
13
13
|
import type { RAGConfig } from '../book-2.0/commitments/KNOWLEDGE/types';
|
14
14
|
import type { AvatarChipProps } from '../book-components/AvatarProfile/AvatarChip/AvatarChip';
|
15
15
|
import type { AvatarChipFromSourceProps } from '../book-components/AvatarProfile/AvatarChip/AvatarChipFromSource';
|
16
|
+
import type { AvatarProfileProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfile';
|
17
|
+
import type { AvatarProfileFromSourceProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource';
|
16
18
|
import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
|
19
|
+
import type { ChatMessage } from '../book-components/Chat/interfaces/ChatMessage';
|
20
|
+
import type { UserChatMessage } from '../book-components/Chat/interfaces/ChatMessage';
|
21
|
+
import type { PromptbookPersonaChatMessage } from '../book-components/Chat/interfaces/ChatMessage';
|
22
|
+
import type { CompleteChatMessage } from '../book-components/Chat/interfaces/ChatMessage';
|
17
23
|
import type { PipelineCollection } from '../collection/PipelineCollection';
|
18
24
|
import type { Command } from '../commands/_common/types/Command';
|
19
25
|
import type { CommandParser } from '../commands/_common/types/CommandParser';
|
@@ -334,7 +340,13 @@ export type { RetrievalResult };
|
|
334
340
|
export type { RAGConfig };
|
335
341
|
export type { AvatarChipProps };
|
336
342
|
export type { AvatarChipFromSourceProps };
|
343
|
+
export type { AvatarProfileProps };
|
344
|
+
export type { AvatarProfileFromSourceProps };
|
337
345
|
export type { BookEditorProps };
|
346
|
+
export type { ChatMessage };
|
347
|
+
export type { UserChatMessage };
|
348
|
+
export type { PromptbookPersonaChatMessage };
|
349
|
+
export type { CompleteChatMessage };
|
338
350
|
export type { PipelineCollection };
|
339
351
|
export type { Command };
|
340
352
|
export type { CommandParser };
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import type { AgentBasicInformation } from '../../../book-2.0/agent-source/parseAgentSource';
|
2
|
+
import type { string_css_class } from '../../../types/typeAliases';
|
3
|
+
/**
|
4
|
+
* Props of `AvatarProfile`
|
5
|
+
*
|
6
|
+
* @public exported from `@promptbook/components`
|
7
|
+
*/
|
8
|
+
export type AvatarProfileProps = {
|
9
|
+
/**
|
10
|
+
* Agent to be shown
|
11
|
+
*/
|
12
|
+
readonly agent: AgentBasicInformation & {
|
13
|
+
agentTitle?: string;
|
14
|
+
agentDescription?: string;
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* Optional CSS class name which will be added to root <div> element
|
18
|
+
*/
|
19
|
+
readonly className?: string_css_class;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* Shows a box with user avatar, name and description
|
23
|
+
*
|
24
|
+
* @public exported from `@promptbook/components`
|
25
|
+
*/
|
26
|
+
export declare function AvatarProfile(props: AvatarProfileProps): import("react/jsx-runtime").JSX.Element;
|
package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource.d.ts
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { string_book } from '../../../book-2.0/agent-source/string_book';
|
2
|
+
import type { AvatarProfileProps } from './AvatarProfile';
|
3
|
+
/**
|
4
|
+
* Props of `AvatarProfileFromSource`
|
5
|
+
*
|
6
|
+
* @public exported from `@promptbook/components`
|
7
|
+
*/
|
8
|
+
export type AvatarProfileFromSourceProps = Omit<AvatarProfileProps, 'agent'> & {
|
9
|
+
/**
|
10
|
+
* Agent source to be shown
|
11
|
+
*/
|
12
|
+
readonly agentSource: string_book;
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* Shows a box with user avatar, name and description from a string source
|
16
|
+
*
|
17
|
+
* @public exported from `@promptbook/components`
|
18
|
+
*/
|
19
|
+
export declare function AvatarProfileFromSource(props: AvatarProfileFromSourceProps): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
2
|
+
/**
|
3
|
+
* @private util of `<BookEditor />`
|
4
|
+
*/
|
5
|
+
export type BookEditorInnerProps = {
|
6
|
+
className?: string;
|
7
|
+
fontClassName?: string;
|
8
|
+
value?: string_book;
|
9
|
+
onChange?(value: string_book): void;
|
10
|
+
isVerbose?: boolean;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* @private util of `<BookEditor />`
|
14
|
+
*/
|
15
|
+
export declare function BookEditorInner(props: BookEditorInnerProps): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,134 @@
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
2
|
+
import type { Promisable } from 'type-fest';
|
3
|
+
import type { ChatMessage } from '../interfaces/ChatMessage';
|
4
|
+
/**
|
5
|
+
* @deprecated use `isComplete` instead
|
6
|
+
* @private util of `<Chat />`
|
7
|
+
*/
|
8
|
+
export declare const LOADING_INTERACTIVE_IMAGE = "Loading...";
|
9
|
+
interface ChatProps {
|
10
|
+
/**
|
11
|
+
* Optional callback to create a new agent from the template.
|
12
|
+
* If provided, renders the [Use this template] button.
|
13
|
+
*/
|
14
|
+
onUseTemplate?: () => void;
|
15
|
+
/**
|
16
|
+
* Messages to render - they are rendered as they are
|
17
|
+
*/
|
18
|
+
readonly messages: Array<ChatMessage>;
|
19
|
+
/**
|
20
|
+
* Called every time the user types or dictated a message
|
21
|
+
*/
|
22
|
+
onChange?(messageContent: string): void;
|
23
|
+
/**
|
24
|
+
* Called when user sends a message
|
25
|
+
*
|
26
|
+
* Note: You must handle the message yourself and add it to the `messages` array
|
27
|
+
*/
|
28
|
+
onMessage(messageContent: string): Promisable<void>;
|
29
|
+
/**
|
30
|
+
* Optional callback, when set, button for resetting chat will be shown
|
31
|
+
*/
|
32
|
+
onReset?(): Promisable<void>;
|
33
|
+
/**
|
34
|
+
* Determines whether the voice recognition button is rendered
|
35
|
+
*/
|
36
|
+
readonly isVoiceRecognitionButtonShown?: boolean;
|
37
|
+
/**
|
38
|
+
* The language code to use for voice recognition
|
39
|
+
*/
|
40
|
+
readonly voiceLanguage?: string;
|
41
|
+
/**
|
42
|
+
* Avatars for each user
|
43
|
+
*/
|
44
|
+
readonly avatars?: Partial<Record<ChatMessage['from'], string>>;
|
45
|
+
/**
|
46
|
+
* Optional placeholder message for the textarea
|
47
|
+
*
|
48
|
+
* @default "Write a message"
|
49
|
+
*/
|
50
|
+
readonly placeholderMessageContent?: string;
|
51
|
+
/**
|
52
|
+
* Optional preset message in chat
|
53
|
+
*/
|
54
|
+
readonly defaultMessage?: string;
|
55
|
+
/**
|
56
|
+
* List of tasks that are currently in progress that should be displayed
|
57
|
+
*/
|
58
|
+
readonly tasksProgress?: Array<{
|
59
|
+
id: string;
|
60
|
+
name: string;
|
61
|
+
progress?: number;
|
62
|
+
}>;
|
63
|
+
/**
|
64
|
+
* Content to be shown inside the chat bar in head
|
65
|
+
* If not provided, the chat bar will not be rendered
|
66
|
+
*/
|
67
|
+
readonly children?: ReactNode;
|
68
|
+
/**
|
69
|
+
* Optional CSS class name which will be added to root <div/> element
|
70
|
+
*/
|
71
|
+
readonly className?: string;
|
72
|
+
/**
|
73
|
+
* Optional CSS style which will be added to root <div/> element
|
74
|
+
*/
|
75
|
+
readonly style?: CSSProperties;
|
76
|
+
/**
|
77
|
+
* Voice call props - when provided, voice call button will be shown
|
78
|
+
*/
|
79
|
+
readonly voiceCallProps?: {
|
80
|
+
selectedModel: string;
|
81
|
+
providerClients: Map<string, unknown>;
|
82
|
+
currentPersonaContent?: string;
|
83
|
+
onVoiceMessage?: (content: string, isVoiceCall: boolean) => void;
|
84
|
+
onAssistantVoiceResponse?: (content: string, isVoiceCall: boolean) => void;
|
85
|
+
onVoiceCallStateChange?: (isVoiceCalling: boolean) => void;
|
86
|
+
};
|
87
|
+
/**
|
88
|
+
* Indicates whether a voice call is currently active
|
89
|
+
*/
|
90
|
+
readonly isVoiceCalling?: boolean;
|
91
|
+
/**
|
92
|
+
* Whether experimental features are enabled (required for voice calling)
|
93
|
+
*/
|
94
|
+
readonly isExperimental?: boolean;
|
95
|
+
/**
|
96
|
+
* Whether the save button is enabled and shown
|
97
|
+
*/
|
98
|
+
readonly isSaveButtonEnabled?: boolean;
|
99
|
+
/**
|
100
|
+
* Optional markdown header to include at the top of exported files.
|
101
|
+
* Example: "## Discussion Topic\n\nSome topic here"
|
102
|
+
*/
|
103
|
+
readonly exportHeaderMarkdown?: string;
|
104
|
+
/**
|
105
|
+
* Optional mapping of participant IDs (message.from) to display metadata for exports.
|
106
|
+
* Keys should match ChatMessage.from values (e.g., 'USER', 'AGENT_{id}', etc.)
|
107
|
+
*/
|
108
|
+
readonly participants?: Record<string, {
|
109
|
+
name: string;
|
110
|
+
avatarUrl?: string;
|
111
|
+
}>;
|
112
|
+
}
|
113
|
+
/**
|
114
|
+
* Renders a chat with messages and input for new messages
|
115
|
+
*
|
116
|
+
* Note: 🔇 This component does NOT have speak functionality, it just allows to trigger voice recognition
|
117
|
+
*
|
118
|
+
* Note: There are multiple chat components:
|
119
|
+
* - <Chat/> renders chat as it is without any logic
|
120
|
+
* - <SimpleChat/> with callback function after each message 🔵->🟢->🔵->🟢->🔵->🟢->...
|
121
|
+
* - <WorkerChat/> with continuously running worker function on background which binds on dialogues queue 🔵->🟢->🔵->🟢->🔵->🟢->...
|
122
|
+
* - <SignalChat/> fully controlled by signal that is passed in 🔵->🟢->🟢->🟢->🔵->🟢->...
|
123
|
+
* - <LlmChat/> connected to LLM Execution Tools of Promptbook
|
124
|
+
* - <AgentChat/> direct OpenAI API integration with streaming responses and model selection
|
125
|
+
* - <ChatbotMiniapp/> Fully working chatbot miniapp created from book
|
126
|
+
* - <AssistantChatPage/> page for assistant chat with welcome message and avatar
|
127
|
+
* - <ModelAwareChat/> wrapper around <Chat/> that provides model-aware avatars
|
128
|
+
*
|
129
|
+
* Use <WorkerChat/> or <SignalChat/> in most cases.
|
130
|
+
*
|
131
|
+
* @public exported from `@promptbook/components`
|
132
|
+
*/
|
133
|
+
export declare function Chat(props: ChatProps): import("react/jsx-runtime").JSX.Element;
|
134
|
+
export {};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
export type ChatMessage = UserChatMessage | PromptbookPersonaChatMessage;
|
2
|
+
export interface UserChatMessage {
|
3
|
+
id: string;
|
4
|
+
date: Date;
|
5
|
+
from: 'USER';
|
6
|
+
content: string;
|
7
|
+
isComplete: boolean;
|
8
|
+
expectedAnswer?: string;
|
9
|
+
isVoiceCall?: boolean;
|
10
|
+
}
|
11
|
+
export interface PromptbookPersonaChatMessage {
|
12
|
+
id: string;
|
13
|
+
date: Date;
|
14
|
+
from: 'PROMPTBOOK_PERSONA';
|
15
|
+
avatar?: string | {
|
16
|
+
src: string;
|
17
|
+
width?: number;
|
18
|
+
height?: number;
|
19
|
+
};
|
20
|
+
content: string;
|
21
|
+
isComplete: boolean;
|
22
|
+
expectedAnswer?: string;
|
23
|
+
isVoiceCall?: boolean;
|
24
|
+
}
|
25
|
+
export interface CompleteChatMessage {
|
26
|
+
isComplete: true;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* TODO: [🧠] ACRY Rename PROMPTBOOK_PERSONA + USER, Teacher, teacher to sth else
|
30
|
+
*/
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
import type { ExportFormat } from './ExportFormat';
|
3
|
+
/**
|
4
|
+
* Exports chat messages in the specified format
|
5
|
+
*
|
6
|
+
* @private utility of `<Chat/>` component
|
7
|
+
*/
|
8
|
+
export declare function exportChatHistory(messages: ChatMessage[], format: ExportFormat, headerMarkdown?: string, participants?: Record<string, {
|
9
|
+
name: string;
|
10
|
+
avatarUrl?: string;
|
11
|
+
}>): Promise<void>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
/**
|
3
|
+
* Generates PDF content using HTML and triggers print dialog
|
4
|
+
*
|
5
|
+
* @private utility of `<Chat/>` component
|
6
|
+
*/
|
7
|
+
export declare function generatePdfContent(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?: Record<string, {
|
8
|
+
name: string;
|
9
|
+
avatarUrl?: string;
|
10
|
+
}>): void;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
/**
|
3
|
+
* Converts chat messages to HTML format
|
4
|
+
*
|
5
|
+
* @private utility of `<Chat/>` component
|
6
|
+
*/
|
7
|
+
export declare function messagesToHtml(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?: Record<string, {
|
8
|
+
name: string;
|
9
|
+
avatarUrl?: string;
|
10
|
+
}>): string;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
/**
|
3
|
+
* Converts chat messages to Markdown format
|
4
|
+
*
|
5
|
+
* @private utility of `<Chat/>` component
|
6
|
+
*/
|
7
|
+
export declare function messagesToMarkdown(messages: ChatMessage[], shareUrl: string, qrDataUrl?: string | null, headerMarkdown?: string, participants?: Record<string, {
|
8
|
+
name: string;
|
9
|
+
avatarUrl?: string;
|
10
|
+
}>): string;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { ChatMessage } from '../interfaces/ChatMessage';
|
2
|
+
/**
|
3
|
+
* Converts chat messages to plain text format
|
4
|
+
*
|
5
|
+
* @private utility of `<Chat/>` component
|
6
|
+
*/
|
7
|
+
export declare function messagesToText(messages: ChatMessage[], shareUrl: string, headerMarkdown?: string, participants?: Record<string, {
|
8
|
+
name: string;
|
9
|
+
avatarUrl?: string;
|
10
|
+
}>): string;
|
@@ -301,6 +301,12 @@ export declare const DEFAULT_GET_PIPELINE_COLLECTION_FUNCTION_NAME = "getPipelin
|
|
301
301
|
* @public exported from `@promptbook/core`
|
302
302
|
*/
|
303
303
|
export declare const DEFAULT_MAX_REQUESTS_PER_MINUTE = 60;
|
304
|
+
/**
|
305
|
+
* URL of the Promptbook logo
|
306
|
+
*
|
307
|
+
* @public exported from `@promptbook/core`
|
308
|
+
*/
|
309
|
+
export declare const PROMPTBOOK_LOGO_URL = "https://promptbook.studio/logos/logo-blue-white-256.png";
|
304
310
|
/**
|
305
311
|
* Indicates whether pipeline logic validation is enabled. When true, the pipeline logic is checked for consistency.
|
306
312
|
*
|
@@ -20,7 +20,8 @@ type CreateTaskOptions<TTaskResult extends AbstractTaskResult> = {
|
|
20
20
|
readonly title: AbstractTask<TTaskResult>['title'];
|
21
21
|
/**
|
22
22
|
* Callback that processes the task and updates the ongoing result
|
23
|
-
* @param
|
23
|
+
* @param updateOngoingResult Function to update the partial result of the task processing
|
24
|
+
* @param updateTldr Function to update tldr progress information
|
24
25
|
* @returns The final task result
|
25
26
|
*/
|
26
27
|
taskProcessCallback(updateOngoingResult: (newOngoingResult: PartialDeep<TTaskResult> & {
|
@@ -28,20 +29,10 @@ type CreateTaskOptions<TTaskResult extends AbstractTaskResult> = {
|
|
28
29
|
* Optional update of the task title
|
29
30
|
*/
|
30
31
|
readonly title?: AbstractTask<TTaskResult>['title'];
|
31
|
-
}) => void
|
32
|
-
/**
|
33
|
-
* Optional callback to provide custom tldr information
|
34
|
-
* @param createdAt When the task was created
|
35
|
-
* @param status Current task status
|
36
|
-
* @param currentValue Current partial result
|
37
|
-
* @param errors Current errors
|
38
|
-
* @param warnings Current warnings
|
39
|
-
* @returns Custom tldr information
|
40
|
-
*/
|
41
|
-
tldrProvider?(createdAt: Date, status: task_status, currentValue: PartialDeep<TTaskResult>, errors: Array<Error>, warnings: Array<Error>): {
|
32
|
+
}) => void, updateTldr: (tldrInfo: {
|
42
33
|
readonly percent: number_percent;
|
43
34
|
readonly message: string;
|
44
|
-
}
|
35
|
+
}) => void): Promise<TTaskResult>;
|
45
36
|
};
|
46
37
|
/**
|
47
38
|
* Helper to create a new task
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
16
16
|
/**
|
17
17
|
* Represents the version string of the Promptbook engine.
|
18
|
-
* It follows semantic versioning (e.g., `0.100.0-
|
18
|
+
* It follows semantic versioning (e.g., `0.100.0-44`).
|
19
19
|
*
|
20
20
|
* @generated
|
21
21
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@promptbook/wizard",
|
3
|
-
"version": "0.100.0-
|
3
|
+
"version": "0.100.0-45",
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
5
5
|
"private": false,
|
6
6
|
"sideEffects": false,
|
@@ -95,7 +95,7 @@
|
|
95
95
|
"module": "./esm/index.es.js",
|
96
96
|
"typings": "./esm/typings/src/_packages/wizard.index.d.ts",
|
97
97
|
"peerDependencies": {
|
98
|
-
"@promptbook/core": "0.100.0-
|
98
|
+
"@promptbook/core": "0.100.0-45"
|
99
99
|
},
|
100
100
|
"dependencies": {
|
101
101
|
"@ai-sdk/deepseek": "0.1.6",
|