@promptbook/remote-server 0.81.0-9 → 0.82.0-0
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/README.md +25 -4
- package/esm/index.es.js +6 -6
- package/esm/index.es.js.map +1 -1
- package/esm/typings/books/index.d.ts +38 -0
- package/esm/typings/src/_packages/core.index.d.ts +12 -4
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +2 -2
- package/esm/typings/src/_packages/node.index.d.ts +0 -2
- package/esm/typings/src/_packages/remote-client.index.d.ts +7 -3
- package/esm/typings/src/_packages/remote-server.index.d.ts +2 -2
- package/esm/typings/src/_packages/templates.index.d.ts +2 -2
- package/esm/typings/src/_packages/types.index.d.ts +32 -30
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/_packages/wizzard.index.d.ts +44 -0
- package/esm/typings/src/cli/cli-commands/make.d.ts +1 -1
- package/esm/typings/src/cli/cli-commands/run.d.ts +2 -2
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +11 -0
- package/esm/typings/src/collection/constructors/createCollectionFromUrl.d.ts +1 -1
- package/esm/typings/src/commands/index.d.ts +1 -1
- package/esm/typings/src/config.d.ts +3 -3
- package/esm/typings/src/conversion/compilePipeline.d.ts +1 -4
- package/esm/typings/src/conversion/compilePipelineOnRemoteServer.d.ts +18 -0
- package/esm/typings/src/conversion/{precompilePipeline.d.ts → parsePipeline.d.ts} +3 -3
- package/esm/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +3 -3
- package/esm/typings/src/conversion/validation/validatePipeline.d.ts +7 -7
- package/esm/typings/src/errors/utils/getErrorReportUrl.d.ts +1 -1
- package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +9 -4
- package/esm/typings/src/formfactors/image-generator/ImageGeneratorFormfactorDefinition.d.ts +24 -0
- package/esm/typings/src/formfactors/index.d.ts +31 -9
- package/esm/typings/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +1 -1
- package/esm/typings/src/high-level-abstractions/index.d.ts +3 -3
- package/esm/typings/src/high-level-abstractions/quick-chatbot/QuickChatbotHla.d.ts +3 -0
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/{$provideLlmToolsForCli.d.ts → $provideLlmToolsForWizzardOrCli.d.ts} +2 -2
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +2 -2
- package/esm/typings/src/llm-providers/anthropic-claude/playground/playground.d.ts +2 -2
- package/esm/typings/src/llm-providers/anthropic-claude/register-configuration.d.ts +1 -0
- package/esm/typings/src/llm-providers/anthropic-claude/register-constructor.d.ts +2 -0
- package/esm/typings/src/llm-providers/azure-openai/register-configuration.d.ts +1 -0
- package/esm/typings/src/llm-providers/azure-openai/register-constructor.d.ts +1 -0
- package/esm/typings/src/llm-providers/google/register-configuration.d.ts +1 -0
- package/esm/typings/src/llm-providers/google/register-constructor.d.ts +1 -0
- package/esm/typings/src/llm-providers/openai/playground/playground.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +2 -0
- package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +2 -0
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/vercel/playground/playground.d.ts +1 -1
- package/esm/typings/src/other/templates/getBookTemplates.d.ts +22 -0
- package/esm/typings/src/personas/preparePersona.d.ts +4 -4
- package/esm/typings/src/pipeline/PipelineString.d.ts +0 -3
- package/esm/typings/src/pipeline/book-notation.d.ts +14 -0
- package/esm/typings/src/pipeline/isValidPipelineString.d.ts +13 -0
- package/esm/typings/src/pipeline/isValidPipelineString.test.d.ts +4 -0
- package/esm/typings/src/pipeline/validatePipelineString.d.ts +14 -0
- package/esm/typings/src/prepare/isPipelinePrepared.d.ts +3 -1
- package/esm/typings/src/prepare/preparePipeline.d.ts +4 -2
- package/esm/typings/src/prepare/preparePipelineOnRemoteServer.d.ts +14 -0
- package/esm/typings/src/prepare/prepareTasks.d.ts +1 -1
- package/esm/typings/src/{llm-providers/remote → remote-server}/interfaces/PromptbookServer_Error.d.ts +1 -1
- package/esm/typings/src/{llm-providers/remote → remote-server}/interfaces/PromptbookServer_ListModels_Request.d.ts +4 -4
- package/esm/typings/src/{llm-providers/remote → remote-server}/interfaces/PromptbookServer_ListModels_Response.d.ts +1 -1
- package/esm/typings/src/{llm-providers/remote → remote-server}/interfaces/PromptbookServer_Prompt_Progress.d.ts +1 -1
- package/esm/typings/src/{llm-providers/remote → remote-server}/interfaces/PromptbookServer_Prompt_Request.d.ts +5 -5
- package/esm/typings/src/{llm-providers/remote → remote-server}/interfaces/PromptbookServer_Prompt_Response.d.ts +1 -1
- package/esm/typings/src/{llm-providers/remote → remote-server}/interfaces/RemoteLlmExecutionToolsOptions.d.ts +7 -7
- package/esm/typings/src/{llm-providers/remote → remote-server}/interfaces/RemoteServerOptions.d.ts +10 -10
- package/esm/typings/src/scrapers/_common/Converter.d.ts +1 -0
- package/esm/typings/src/scrapers/_common/Scraper.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/ScraperIntermediateSource.d.ts +3 -0
- package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +2 -0
- package/esm/typings/src/scrapers/_common/utils/scraperFetch.d.ts +3 -0
- package/esm/typings/src/scrapers/document/register-constructor.d.ts +1 -0
- package/esm/typings/src/scrapers/document/register-metadata.d.ts +1 -0
- package/esm/typings/src/scrapers/document-legacy/register-constructor.d.ts +1 -0
- package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +1 -0
- package/esm/typings/src/scrapers/markdown/register-constructor.d.ts +1 -0
- package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +1 -0
- package/esm/typings/src/scrapers/pdf/PdfScraper.d.ts +1 -0
- package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +1 -1
- package/esm/typings/src/scrapers/pdf/register-constructor.d.ts +1 -0
- package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +2 -1
- package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +3 -1
- package/esm/typings/src/scrapers/website/register-constructor.d.ts +1 -0
- package/esm/typings/src/scrapers/website/register-metadata.d.ts +1 -0
- package/esm/typings/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +1 -1
- package/esm/typings/src/scripting/javascript/utils/preserve.d.ts +2 -1
- package/esm/typings/src/types/typeAliases.d.ts +8 -2
- package/esm/typings/src/utils/markdown/flattenMarkdown.d.ts +1 -1
- package/esm/typings/src/utils/markdown/{removeContentComments.d.ts → removeMarkdownComments.d.ts} +2 -2
- package/esm/typings/src/utils/organization/$sideEffect.d.ts +9 -0
- package/esm/typings/src/utils/serialization/checkSerializableAsJson.d.ts +1 -1
- package/esm/typings/src/utils/serialization/isSerializableAsJson.d.ts +2 -2
- package/esm/typings/src/utils/validators/filePath/isRootPath.d.ts +12 -0
- package/esm/typings/src/utils/validators/filePath/isRootPath.test.d.ts +4 -0
- package/esm/typings/src/utils/validators/filePath/isValidFilePath.d.ts +3 -0
- package/esm/typings/src/wizzard/$getCompiledBook.d.ts +16 -0
- package/esm/typings/src/wizzard/wizzard.d.ts +51 -7
- package/package.json +2 -2
- package/umd/index.umd.js +6 -6
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/other/templates/getBookTemplate.d.ts +0 -21
- package/esm/typings/src/scripting/javascript/utils/unknownToString.d.ts +0 -8
- /package/esm/typings/src/conversion/{precompilePipeline.test.d.ts → parsePipeline.test.d.ts} +0 -0
- /package/esm/typings/src/{llm-providers/remote → remote-server}/startRemoteServer.d.ts +0 -0
- /package/esm/typings/src/utils/markdown/{removeContentComments.test.d.ts → removeMarkdownComments.test.d.ts} +0 -0
|
@@ -60,21 +60,6 @@ import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-op
|
|
|
60
60
|
import type { GoogleExecutionToolsOptions } from '../llm-providers/google/GoogleExecutionToolsOptions';
|
|
61
61
|
import type { OpenAiAssistantExecutionToolsOptions } from '../llm-providers/openai/OpenAiAssistantExecutionToolsOptions';
|
|
62
62
|
import type { OpenAiExecutionToolsOptions } from '../llm-providers/openai/OpenAiExecutionToolsOptions';
|
|
63
|
-
import type { PromptbookServer_Error } from '../llm-providers/remote/interfaces/PromptbookServer_Error';
|
|
64
|
-
import type { PromptbookServer_ListModels_Request } from '../llm-providers/remote/interfaces/PromptbookServer_ListModels_Request';
|
|
65
|
-
import type { PromptbookServer_ListModels_CollectionRequest } from '../llm-providers/remote/interfaces/PromptbookServer_ListModels_Request';
|
|
66
|
-
import type { PromptbookServer_ListModels_AnonymousRequest } from '../llm-providers/remote/interfaces/PromptbookServer_ListModels_Request';
|
|
67
|
-
import type { PromptbookServer_ListModels_Response } from '../llm-providers/remote/interfaces/PromptbookServer_ListModels_Response';
|
|
68
|
-
import type { PromptbookServer_Prompt_Progress } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Progress';
|
|
69
|
-
import type { PromptbookServer_Prompt_Request } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Request';
|
|
70
|
-
import type { PromptbookServer_Prompt_CollectionRequest } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Request';
|
|
71
|
-
import type { PromptbookServer_Prompt_AnonymousRequest } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Request';
|
|
72
|
-
import type { PromptbookServer_Prompt_Response } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Response';
|
|
73
|
-
import type { RemoteLlmExecutionToolsOptions } from '../llm-providers/remote/interfaces/RemoteLlmExecutionToolsOptions';
|
|
74
|
-
import type { RemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
|
|
75
|
-
import type { AnonymousRemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
|
|
76
|
-
import type { CollectionRemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
|
|
77
|
-
import type { CollectionRemoteServerClientOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
|
|
78
63
|
import type { VercelExecutionToolsOptions } from '../llm-providers/vercel/VercelExecutionToolsOptions';
|
|
79
64
|
import type { VercelProvider } from '../llm-providers/vercel/VercelProvider';
|
|
80
65
|
import type { IsPipelineImplementingInterfaceOptions } from '../pipeline/PipelineInterface/isPipelineImplementingInterface';
|
|
@@ -102,6 +87,21 @@ import type { SimpleTaskJson } from '../pipeline/PipelineJson/SimpleTaskJson';
|
|
|
102
87
|
import type { TaskJson } from '../pipeline/PipelineJson/TaskJson';
|
|
103
88
|
import type { PipelineString } from '../pipeline/PipelineString';
|
|
104
89
|
import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions';
|
|
90
|
+
import type { PromptbookServer_Error } from '../remote-server/interfaces/PromptbookServer_Error';
|
|
91
|
+
import type { PromptbookServer_ListModels_Request } from '../remote-server/interfaces/PromptbookServer_ListModels_Request';
|
|
92
|
+
import type { PromptbookServer_ListModels_CollectionRequest } from '../remote-server/interfaces/PromptbookServer_ListModels_Request';
|
|
93
|
+
import type { PromptbookServer_ListModels_AnonymousRequest } from '../remote-server/interfaces/PromptbookServer_ListModels_Request';
|
|
94
|
+
import type { PromptbookServer_ListModels_Response } from '../remote-server/interfaces/PromptbookServer_ListModels_Response';
|
|
95
|
+
import type { PromptbookServer_Prompt_Progress } from '../remote-server/interfaces/PromptbookServer_Prompt_Progress';
|
|
96
|
+
import type { PromptbookServer_Prompt_Request } from '../remote-server/interfaces/PromptbookServer_Prompt_Request';
|
|
97
|
+
import type { PromptbookServer_Prompt_CollectionRequest } from '../remote-server/interfaces/PromptbookServer_Prompt_Request';
|
|
98
|
+
import type { PromptbookServer_Prompt_AnonymousRequest } from '../remote-server/interfaces/PromptbookServer_Prompt_Request';
|
|
99
|
+
import type { PromptbookServer_Prompt_Response } from '../remote-server/interfaces/PromptbookServer_Prompt_Response';
|
|
100
|
+
import type { RemoteLlmExecutionToolsOptions } from '../remote-server/interfaces/RemoteLlmExecutionToolsOptions';
|
|
101
|
+
import type { RemoteServerOptions } from '../remote-server/interfaces/RemoteServerOptions';
|
|
102
|
+
import type { AnonymousRemoteServerOptions } from '../remote-server/interfaces/RemoteServerOptions';
|
|
103
|
+
import type { ApplicationRemoteServerOptions } from '../remote-server/interfaces/RemoteServerOptions';
|
|
104
|
+
import type { ApplicationRemoteServerClientOptions } from '../remote-server/interfaces/RemoteServerOptions';
|
|
105
105
|
import type { Converter } from '../scrapers/_common/Converter';
|
|
106
106
|
import type { ScraperAndConverterMetadata } from '../scrapers/_common/register/ScraperAndConverterMetadata';
|
|
107
107
|
import type { ScraperConstructor } from '../scrapers/_common/register/ScraperConstructor';
|
|
@@ -172,6 +172,7 @@ import type { string_css_value } from '../types/typeAliases';
|
|
|
172
172
|
import type { string_css_selector } from '../types/typeAliases';
|
|
173
173
|
import type { string_url } from '../types/typeAliases';
|
|
174
174
|
import type { string_base_url } from '../types/typeAliases';
|
|
175
|
+
import type { string_pipeline_root_url } from '../types/typeAliases';
|
|
175
176
|
import type { string_pipeline_url } from '../types/typeAliases';
|
|
176
177
|
import type { string_pipeline_url_with_task_hash } from '../types/typeAliases';
|
|
177
178
|
import type { string_data_url } from '../types/typeAliases';
|
|
@@ -325,21 +326,6 @@ export type { AzureOpenAiExecutionToolsOptions };
|
|
|
325
326
|
export type { GoogleExecutionToolsOptions };
|
|
326
327
|
export type { OpenAiAssistantExecutionToolsOptions };
|
|
327
328
|
export type { OpenAiExecutionToolsOptions };
|
|
328
|
-
export type { PromptbookServer_Error };
|
|
329
|
-
export type { PromptbookServer_ListModels_Request };
|
|
330
|
-
export type { PromptbookServer_ListModels_CollectionRequest };
|
|
331
|
-
export type { PromptbookServer_ListModels_AnonymousRequest };
|
|
332
|
-
export type { PromptbookServer_ListModels_Response };
|
|
333
|
-
export type { PromptbookServer_Prompt_Progress };
|
|
334
|
-
export type { PromptbookServer_Prompt_Request };
|
|
335
|
-
export type { PromptbookServer_Prompt_CollectionRequest };
|
|
336
|
-
export type { PromptbookServer_Prompt_AnonymousRequest };
|
|
337
|
-
export type { PromptbookServer_Prompt_Response };
|
|
338
|
-
export type { RemoteLlmExecutionToolsOptions };
|
|
339
|
-
export type { RemoteServerOptions };
|
|
340
|
-
export type { AnonymousRemoteServerOptions };
|
|
341
|
-
export type { CollectionRemoteServerOptions };
|
|
342
|
-
export type { CollectionRemoteServerClientOptions };
|
|
343
329
|
export type { VercelExecutionToolsOptions };
|
|
344
330
|
export type { VercelProvider };
|
|
345
331
|
export type { IsPipelineImplementingInterfaceOptions };
|
|
@@ -367,6 +353,21 @@ export type { SimpleTaskJson };
|
|
|
367
353
|
export type { TaskJson };
|
|
368
354
|
export type { PipelineString };
|
|
369
355
|
export type { PrepareAndScrapeOptions };
|
|
356
|
+
export type { PromptbookServer_Error };
|
|
357
|
+
export type { PromptbookServer_ListModels_Request };
|
|
358
|
+
export type { PromptbookServer_ListModels_CollectionRequest };
|
|
359
|
+
export type { PromptbookServer_ListModels_AnonymousRequest };
|
|
360
|
+
export type { PromptbookServer_ListModels_Response };
|
|
361
|
+
export type { PromptbookServer_Prompt_Progress };
|
|
362
|
+
export type { PromptbookServer_Prompt_Request };
|
|
363
|
+
export type { PromptbookServer_Prompt_CollectionRequest };
|
|
364
|
+
export type { PromptbookServer_Prompt_AnonymousRequest };
|
|
365
|
+
export type { PromptbookServer_Prompt_Response };
|
|
366
|
+
export type { RemoteLlmExecutionToolsOptions };
|
|
367
|
+
export type { RemoteServerOptions };
|
|
368
|
+
export type { AnonymousRemoteServerOptions };
|
|
369
|
+
export type { ApplicationRemoteServerOptions };
|
|
370
|
+
export type { ApplicationRemoteServerClientOptions };
|
|
370
371
|
export type { Converter };
|
|
371
372
|
export type { ScraperAndConverterMetadata };
|
|
372
373
|
export type { ScraperConstructor };
|
|
@@ -437,6 +438,7 @@ export type { string_css_value };
|
|
|
437
438
|
export type { string_css_selector };
|
|
438
439
|
export type { string_url };
|
|
439
440
|
export type { string_base_url };
|
|
441
|
+
export type { string_pipeline_root_url };
|
|
440
442
|
export type { string_pipeline_url };
|
|
441
443
|
export type { string_pipeline_url_with_task_hash };
|
|
442
444
|
export type { string_data_url };
|
|
@@ -68,6 +68,7 @@ import { trimCodeBlock } from '../utils/trimCodeBlock';
|
|
|
68
68
|
import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
|
|
69
69
|
import { unwrapResult } from '../utils/unwrapResult';
|
|
70
70
|
import { isValidEmail } from '../utils/validators/email/isValidEmail';
|
|
71
|
+
import { isRootPath } from '../utils/validators/filePath/isRootPath';
|
|
71
72
|
import { isValidFilePath } from '../utils/validators/filePath/isValidFilePath';
|
|
72
73
|
import { isValidJavascriptName } from '../utils/validators/javascriptName/isValidJavascriptName';
|
|
73
74
|
import { isValidPromptbookVersion } from '../utils/validators/semanticVersion/isValidPromptbookVersion';
|
|
@@ -147,6 +148,7 @@ export { trimCodeBlock };
|
|
|
147
148
|
export { trimEndOfCodeBlock };
|
|
148
149
|
export { unwrapResult };
|
|
149
150
|
export { isValidEmail };
|
|
151
|
+
export { isRootPath };
|
|
150
152
|
export { isValidFilePath };
|
|
151
153
|
export { isValidJavascriptName };
|
|
152
154
|
export { isValidPromptbookVersion };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
|
+
import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic-claude/register-configuration';
|
|
3
|
+
import { _AnthropicClaudeRegistration } from '../llm-providers/anthropic-claude/register-constructor';
|
|
4
|
+
import { _AzureOpenAiMetadataRegistration } from '../llm-providers/azure-openai/register-configuration';
|
|
5
|
+
import { _AzureOpenAiRegistration } from '../llm-providers/azure-openai/register-constructor';
|
|
6
|
+
import { _GoogleMetadataRegistration } from '../llm-providers/google/register-configuration';
|
|
7
|
+
import { _GoogleRegistration } from '../llm-providers/google/register-constructor';
|
|
8
|
+
import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
|
|
9
|
+
import { _OpenAiAssistantMetadataRegistration } from '../llm-providers/openai/register-configuration';
|
|
10
|
+
import { _OpenAiRegistration } from '../llm-providers/openai/register-constructor';
|
|
11
|
+
import { _OpenAiAssistantRegistration } from '../llm-providers/openai/register-constructor';
|
|
12
|
+
import { _LegacyDocumentScraperRegistration } from '../scrapers/document-legacy/register-constructor';
|
|
13
|
+
import { _LegacyDocumentScraperMetadataRegistration } from '../scrapers/document-legacy/register-metadata';
|
|
14
|
+
import { _DocumentScraperRegistration } from '../scrapers/document/register-constructor';
|
|
15
|
+
import { _DocumentScraperMetadataRegistration } from '../scrapers/document/register-metadata';
|
|
16
|
+
import { _MarkdownScraperRegistration } from '../scrapers/markdown/register-constructor';
|
|
17
|
+
import { _MarkdownScraperMetadataRegistration } from '../scrapers/markdown/register-metadata';
|
|
18
|
+
import { _PdfScraperRegistration } from '../scrapers/pdf/register-constructor';
|
|
19
|
+
import { _PdfScraperMetadataRegistration } from '../scrapers/pdf/register-metadata';
|
|
20
|
+
import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
|
|
21
|
+
import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/register-metadata';
|
|
22
|
+
import { wizzard } from '../wizzard/wizzard';
|
|
23
|
+
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
24
|
+
export { _AnthropicClaudeMetadataRegistration };
|
|
25
|
+
export { _AnthropicClaudeRegistration };
|
|
26
|
+
export { _AzureOpenAiMetadataRegistration };
|
|
27
|
+
export { _AzureOpenAiRegistration };
|
|
28
|
+
export { _GoogleMetadataRegistration };
|
|
29
|
+
export { _GoogleRegistration };
|
|
30
|
+
export { _OpenAiMetadataRegistration };
|
|
31
|
+
export { _OpenAiAssistantMetadataRegistration };
|
|
32
|
+
export { _OpenAiRegistration };
|
|
33
|
+
export { _OpenAiAssistantRegistration };
|
|
34
|
+
export { _LegacyDocumentScraperRegistration };
|
|
35
|
+
export { _LegacyDocumentScraperMetadataRegistration };
|
|
36
|
+
export { _DocumentScraperRegistration };
|
|
37
|
+
export { _DocumentScraperMetadataRegistration };
|
|
38
|
+
export { _MarkdownScraperRegistration };
|
|
39
|
+
export { _MarkdownScraperMetadataRegistration };
|
|
40
|
+
export { _PdfScraperRegistration };
|
|
41
|
+
export { _PdfScraperMetadataRegistration };
|
|
42
|
+
export { _WebsiteScraperRegistration };
|
|
43
|
+
export { _WebsiteScraperMetadataRegistration };
|
|
44
|
+
export { wizzard };
|
|
@@ -6,7 +6,7 @@ import type { Command as Program } from 'commander';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function initializeMakeCommand(program: Program): void;
|
|
8
8
|
/**
|
|
9
|
-
* TODO: [🥃][main]
|
|
9
|
+
* TODO: [🥃][main] !!3 Allow `ptbk make` without configuring any llm tools
|
|
10
10
|
* TODO: [0] DRY Javascript and typescript - Maybe make ONLY typescript and for javascript just remove types
|
|
11
11
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
12
12
|
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
@@ -6,9 +6,9 @@ import type { Command as Program } from 'commander';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function initializeRunCommand(program: Program): void;
|
|
8
8
|
/**
|
|
9
|
-
* TODO:
|
|
9
|
+
* TODO: !!5 Catch and wrap all errors from CLI
|
|
10
10
|
* TODO: [🧠] Pass `maxExecutionAttempts`, `csvSettings`
|
|
11
|
-
* TODO: [🥃][main]
|
|
11
|
+
* TODO: [🥃][main] !!3 Allow `ptbk run` without configuring any llm tools
|
|
12
12
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
13
13
|
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
14
|
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
2
2
|
import type { PrepareAndScrapeOptions } from '../../prepare/PrepareAndScrapeOptions';
|
|
3
3
|
import type { string_dirname } from '../../types/typeAliases';
|
|
4
|
+
import type { string_pipeline_root_url } from '../../types/typeAliases';
|
|
4
5
|
import type { PipelineCollection } from '../PipelineCollection';
|
|
5
6
|
/**
|
|
6
7
|
* Options for `createCollectionFromDirectory` function
|
|
@@ -21,6 +22,16 @@ type CreatePipelineCollectionFromDirectoryOptions = Omit<PrepareAndScrapeOptions
|
|
|
21
22
|
* @default false
|
|
22
23
|
*/
|
|
23
24
|
isVerbose?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* This will be used as a root URL for all pipelines in the collection
|
|
27
|
+
*
|
|
28
|
+
* It has 2 purposes:
|
|
29
|
+
* 1) Every pipeline in the collection is checked if it is a child of `rootUrl`
|
|
30
|
+
* 2) If the pipeline does not have a URL, it is created from the `rootUrl` and path to the pipeline
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
rootUrl?: string_pipeline_root_url;
|
|
24
35
|
/**
|
|
25
36
|
* If true, directory will be scanned only when needed not during the construction
|
|
26
37
|
*
|
|
@@ -25,5 +25,5 @@ type CreatePipelineCollectionFromUrlyOptions = {
|
|
|
25
25
|
export declare function createCollectionFromUrl(url: string_url | URL, options: CreatePipelineCollectionFromUrlyOptions): Promise<PipelineCollection>;
|
|
26
26
|
export {};
|
|
27
27
|
/**
|
|
28
|
-
* TODO: [main]
|
|
28
|
+
* TODO: [main] !!4 [🧠] Library precompilation and do not mix markdown and json promptbooks
|
|
29
29
|
*/
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTaskCommandParser<import("./SECTION/SectionCommand").SectionCommand>, import("./_common/types/CommandParser").PipelineTaskCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTaskCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTaskCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTaskCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./BOOK_VERSION/BookVersionCommand").BookVersionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./FORMFACTOR/FormfactorCommand").FormfactorCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./URL/UrlCommand").UrlCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./KNOWLEDGE/KnowledgeCommand").KnowledgeCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_ACTION/ActionCommand").ActionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_INSTRUMENT/InstrumentCommand").InstrumentCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PERSONA/PersonaCommand").PersonaCommand>, import("./_common/types/CommandParser").PipelineTaskCommandParser<import("./FOREACH/ForeachCommand").ForeachCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./_BOILERPLATE/BoilerplateCommand").BoilerplateCommand>];
|
|
7
7
|
/**
|
|
8
8
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
9
|
-
*/
|
|
9
|
+
*/
|
|
@@ -58,7 +58,7 @@ export declare const LOGO_DARK_SRC: string_url_image;
|
|
|
58
58
|
*
|
|
59
59
|
* @public exported from `@promptbook/core`
|
|
60
60
|
*/
|
|
61
|
-
export declare const
|
|
61
|
+
export declare const DEFAULT_BOOK_TITLE = "\u2728 Untitled Book";
|
|
62
62
|
/**
|
|
63
63
|
* Warning message for the generated sections and files files
|
|
64
64
|
*
|
|
@@ -141,14 +141,14 @@ export declare const DEFAULT_MAX_PARALLEL_COUNT = 5;
|
|
|
141
141
|
export declare const DEFAULT_MAX_EXECUTION_ATTEMPTS = 3;
|
|
142
142
|
/**
|
|
143
143
|
* @@@
|
|
144
|
-
* TODO: [🐝][main]
|
|
144
|
+
* TODO: [🐝][main] !!3 Use
|
|
145
145
|
*
|
|
146
146
|
* @public exported from `@promptbook/core`
|
|
147
147
|
*/
|
|
148
148
|
export declare const DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH = 3;
|
|
149
149
|
/**
|
|
150
150
|
* @@@
|
|
151
|
-
* TODO: [🐝][main]
|
|
151
|
+
* TODO: [🐝][main] !!3 Use
|
|
152
152
|
*
|
|
153
153
|
* @public exported from `@promptbook/core`
|
|
154
154
|
*/
|
|
@@ -5,10 +5,7 @@ import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions
|
|
|
5
5
|
/**
|
|
6
6
|
* Compile pipeline from string (markdown) format to JSON format
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* - `compilePipeline` **(preferred)** - which propperly compiles the promptbook and use embedding for external knowledge
|
|
10
|
-
* - `precompilePipeline` - use only if you need to compile promptbook synchronously and it contains NO external knowledge
|
|
11
|
-
* - `preparePipeline` - just one step in the compilation process
|
|
8
|
+
* @see https://github.com/webgptorg/promptbook/discussions/196
|
|
12
9
|
*
|
|
13
10
|
* Note: This function does not validate logic of the pipeline only the parsing
|
|
14
11
|
* Note: This function acts as compilation process
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RemoteServerOptions } from '../remote-server/interfaces/RemoteServerOptions';
|
|
2
|
+
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
|
|
3
|
+
import type { PipelineString } from '../pipeline/PipelineString';
|
|
4
|
+
/**
|
|
5
|
+
* Compile pipeline from string (markdown) format to JSON format
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/webgptorg/promptbook/discussions/196
|
|
8
|
+
*
|
|
9
|
+
* Note: This function does not validate logic of the pipeline only the parsing
|
|
10
|
+
* Note: This function acts as compilation process
|
|
11
|
+
*
|
|
12
|
+
* @param pipelineString {Promptbook} in string markdown format (.book.md)
|
|
13
|
+
* @param options - Options for remote server compilation
|
|
14
|
+
* @returns {Promptbook} compiled in JSON format (.book.json)
|
|
15
|
+
* @throws {ParseError} if the promptbook string is not valid
|
|
16
|
+
* @public exported from `@promptbook/remote-client`
|
|
17
|
+
*/
|
|
18
|
+
export declare function compilePipelineOnRemoteServer<TCustomOptions = undefined>(pipelineString: PipelineString, options: RemoteServerOptions<TCustomOptions>): Promise<PipelineJson>;
|
|
@@ -5,7 +5,7 @@ import type { PipelineString } from '../pipeline/PipelineString';
|
|
|
5
5
|
*
|
|
6
6
|
* Note: There are 3 similar functions:
|
|
7
7
|
* - `compilePipeline` **(preferred)** - which propperly compiles the promptbook and use embedding for external knowledge
|
|
8
|
-
* - `
|
|
8
|
+
* - `parsePipeline` - use only if you need to compile promptbook synchronously and it contains NO external knowledge
|
|
9
9
|
* - `preparePipeline` - just one step in the compilation process
|
|
10
10
|
*
|
|
11
11
|
* Note: This function does not validate logic of the pipeline only the parsing
|
|
@@ -16,10 +16,10 @@ import type { PipelineString } from '../pipeline/PipelineString';
|
|
|
16
16
|
* @throws {ParseError} if the promptbook string is not valid
|
|
17
17
|
* @public exported from `@promptbook/core`
|
|
18
18
|
*/
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function parsePipeline(pipelineString: PipelineString): PipelineJson;
|
|
20
20
|
/**
|
|
21
21
|
* TODO: [🧠] Maybe more things here can be refactored as high-level abstractions
|
|
22
|
-
* TODO: [main]
|
|
22
|
+
* TODO: [main] !!4 Warn if used only sync version
|
|
23
23
|
* TODO: [🚞] Report here line/column of error
|
|
24
24
|
* TODO: Use spaceTrim more effectively
|
|
25
25
|
* TODO: [🧠] Parameter flags - isInput, isOutput, isInternal
|
|
@@ -22,9 +22,9 @@ export type renderPipelineMermaidOptions = {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function renderPromptbookMermaid(pipelineJson: PipelineJson, options?: renderPipelineMermaidOptions): string;
|
|
24
24
|
/**
|
|
25
|
-
* TODO: [🧠]
|
|
26
|
-
* TODO: [🧠]
|
|
27
|
-
* TODO: [🧠]
|
|
25
|
+
* TODO: [🧠] FOREACH in mermaid graph
|
|
26
|
+
* TODO: [🧠] Knowledge in mermaid graph
|
|
27
|
+
* TODO: [🧠] Personas in mermaid graph
|
|
28
28
|
* TODO: Maybe use some Mermaid package instead of string templating
|
|
29
29
|
* TODO: [🕌] When more than 2 functionalities, split into separate functions
|
|
30
30
|
*/
|
|
@@ -18,9 +18,9 @@ export declare function validatePipeline(pipeline: PipelineJson): PipelineJson;
|
|
|
18
18
|
/**
|
|
19
19
|
* @private internal function for `validatePipeline`
|
|
20
20
|
*/
|
|
21
|
-
export declare function
|
|
21
|
+
export declare function validatePipeline_InnerFunction(pipeline: PipelineJson): void;
|
|
22
22
|
/**
|
|
23
|
-
* TODO:
|
|
23
|
+
* TODO: [🧞♀️] Do not allow joker + foreach
|
|
24
24
|
* TODO: [🧠] Work with promptbookVersion
|
|
25
25
|
* TODO: Use here some json-schema, Zod or something similar and change it to:
|
|
26
26
|
* > /**
|
|
@@ -32,11 +32,11 @@ export declare function validatePipelineCore(pipeline: PipelineJson): void;
|
|
|
32
32
|
* > ex port function validatePipeline(promptbook: really_unknown): asserts promptbook is PipelineJson {
|
|
33
33
|
*/
|
|
34
34
|
/**
|
|
35
|
-
* TODO: [🧳][main]
|
|
36
|
-
* TODO: [🧳][🐝][main]
|
|
37
|
-
* TODO: [🧳][main]
|
|
38
|
-
* TODO: [🧳][main]
|
|
39
|
-
* TODO: [🧳][main]
|
|
35
|
+
* TODO: [🧳][main] !!4 Validate that all examples match expectations
|
|
36
|
+
* TODO: [🧳][🐝][main] !!4 Validate that knowledge is valid (non-void)
|
|
37
|
+
* TODO: [🧳][main] !!4 Validate that persona can be used only with CHAT variant
|
|
38
|
+
* TODO: [🧳][main] !!4 Validate that parameter with reserved name not used RESERVED_PARAMETER_NAMES
|
|
39
|
+
* TODO: [🧳][main] !!4 Validate that reserved parameter is not used as joker
|
|
40
40
|
* TODO: [🧠] Validation not only logic itself but imports around - files and websites and rerefenced pipelines exists
|
|
41
41
|
* TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
|
|
42
42
|
*/
|
|
@@ -5,15 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const GeneratorFormfactorDefinition: {
|
|
7
7
|
readonly name: "GENERATOR";
|
|
8
|
-
readonly description: "
|
|
8
|
+
readonly description: "Generates any kind (in HTML with possible scripts and css format) of content from input message";
|
|
9
9
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/184";
|
|
10
10
|
readonly pipelineInterface: {
|
|
11
11
|
readonly inputParameters: readonly [{
|
|
12
|
-
readonly name: "
|
|
13
|
-
readonly description: "
|
|
12
|
+
readonly name: "inputMessage";
|
|
13
|
+
readonly description: "Input message to be image made from";
|
|
14
14
|
readonly isInput: true;
|
|
15
15
|
readonly isOutput: false;
|
|
16
16
|
}];
|
|
17
|
-
readonly outputParameters: readonly [
|
|
17
|
+
readonly outputParameters: readonly [{
|
|
18
|
+
readonly name: "result";
|
|
19
|
+
readonly description: "Result in HTML to be shown to user";
|
|
20
|
+
readonly isInput: false;
|
|
21
|
+
readonly isOutput: true;
|
|
22
|
+
}];
|
|
18
23
|
};
|
|
19
24
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Image generator is form of app that generates image from input message
|
|
3
|
+
*
|
|
4
|
+
* @public exported from `@promptbook/core`
|
|
5
|
+
*/
|
|
6
|
+
export declare const ImageGeneratorFormfactorDefinition: {
|
|
7
|
+
readonly name: "IMAGE_GENERATOR";
|
|
8
|
+
readonly description: "Generates prompt for image generation from input message";
|
|
9
|
+
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/184";
|
|
10
|
+
readonly pipelineInterface: {
|
|
11
|
+
readonly inputParameters: readonly [{
|
|
12
|
+
readonly name: "inputMessage";
|
|
13
|
+
readonly description: "Input message to be image made from";
|
|
14
|
+
readonly isInput: true;
|
|
15
|
+
readonly isOutput: false;
|
|
16
|
+
}];
|
|
17
|
+
readonly outputParameters: readonly [{
|
|
18
|
+
readonly name: "prompt";
|
|
19
|
+
readonly description: "Prompt to be used for image generation";
|
|
20
|
+
readonly isInput: false;
|
|
21
|
+
readonly isOutput: true;
|
|
22
|
+
}];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -19,11 +19,7 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
19
19
|
readonly pipelineInterface: {
|
|
20
20
|
readonly inputParameters: readonly [{
|
|
21
21
|
readonly name: "previousTitle";
|
|
22
|
-
readonly description: "Previous title of the conversation";
|
|
23
|
-
* All available formfactor definitions
|
|
24
|
-
*
|
|
25
|
-
* @public exported from `@promptbook/core`
|
|
26
|
-
*/
|
|
22
|
+
readonly description: "Previous title of the conversation";
|
|
27
23
|
readonly isInput: true;
|
|
28
24
|
readonly isOutput: false;
|
|
29
25
|
}, {
|
|
@@ -40,6 +36,9 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
40
36
|
readonly outputParameters: readonly [{
|
|
41
37
|
readonly name: "title";
|
|
42
38
|
readonly description: "Title of the conversation";
|
|
39
|
+
/**
|
|
40
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
41
|
+
*/
|
|
43
42
|
readonly isInput: false;
|
|
44
43
|
readonly isOutput: true;
|
|
45
44
|
}, {
|
|
@@ -106,16 +105,39 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
106
105
|
};
|
|
107
106
|
}, {
|
|
108
107
|
readonly name: "GENERATOR";
|
|
109
|
-
readonly description: "
|
|
108
|
+
readonly description: "Generates any kind (in HTML with possible scripts and css format) of content from input message";
|
|
110
109
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/184";
|
|
111
110
|
readonly pipelineInterface: {
|
|
112
111
|
readonly inputParameters: readonly [{
|
|
113
|
-
readonly name: "
|
|
114
|
-
readonly description: "
|
|
112
|
+
readonly name: "inputMessage";
|
|
113
|
+
readonly description: "Input message to be image made from";
|
|
115
114
|
readonly isInput: true;
|
|
116
115
|
readonly isOutput: false;
|
|
117
116
|
}];
|
|
118
|
-
readonly outputParameters: readonly [
|
|
117
|
+
readonly outputParameters: readonly [{
|
|
118
|
+
readonly name: "result";
|
|
119
|
+
readonly description: "Result in HTML to be shown to user";
|
|
120
|
+
readonly isInput: false;
|
|
121
|
+
readonly isOutput: true;
|
|
122
|
+
}];
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "IMAGE_GENERATOR";
|
|
126
|
+
readonly description: "Generates prompt for image generation from input message";
|
|
127
|
+
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/184";
|
|
128
|
+
readonly pipelineInterface: {
|
|
129
|
+
readonly inputParameters: readonly [{
|
|
130
|
+
readonly name: "inputMessage";
|
|
131
|
+
readonly description: "Input message to be image made from";
|
|
132
|
+
readonly isInput: true;
|
|
133
|
+
readonly isOutput: false;
|
|
134
|
+
}];
|
|
135
|
+
readonly outputParameters: readonly [{
|
|
136
|
+
readonly name: "prompt";
|
|
137
|
+
readonly description: "Prompt to be used for image generation";
|
|
138
|
+
readonly isInput: false;
|
|
139
|
+
readonly isOutput: true;
|
|
140
|
+
}];
|
|
119
141
|
};
|
|
120
142
|
}];
|
|
121
143
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* All high-level abstractions
|
|
3
3
|
*
|
|
4
|
-
* @private internal index of `
|
|
4
|
+
* @private internal index of `parsePipeline` (= used for sync) and `preparePipeline` (= used for async)
|
|
5
5
|
*/
|
|
6
6
|
export declare const HIGH_LEVEL_ABSTRACTIONS: readonly [{
|
|
7
7
|
type: "SYNC";
|
|
@@ -23,7 +23,7 @@ export declare const HIGH_LEVEL_ABSTRACTIONS: readonly [{
|
|
|
23
23
|
path: string | null;
|
|
24
24
|
content: import("../pipeline/PipelineString").PipelineString;
|
|
25
25
|
}[];
|
|
26
|
-
readonly formfactorName?: "CHATBOT" | "GENERATOR" | "GENERIC" | "EXPERIMENTAL_MATCHER" | "SHEETS" | "TRANSLATOR" | undefined;
|
|
26
|
+
readonly formfactorName?: "CHATBOT" | "GENERATOR" | "GENERIC" | "IMAGE_GENERATOR" | "EXPERIMENTAL_MATCHER" | "SHEETS" | "TRANSLATOR" | undefined;
|
|
27
27
|
}>): void;
|
|
28
28
|
}, {
|
|
29
29
|
type: "SYNC";
|
|
@@ -45,7 +45,7 @@ export declare const HIGH_LEVEL_ABSTRACTIONS: readonly [{
|
|
|
45
45
|
path: string | null;
|
|
46
46
|
content: import("../pipeline/PipelineString").PipelineString;
|
|
47
47
|
}[];
|
|
48
|
-
readonly formfactorName?: "CHATBOT" | "GENERATOR" | "GENERIC" | "EXPERIMENTAL_MATCHER" | "SHEETS" | "TRANSLATOR" | undefined;
|
|
48
|
+
readonly formfactorName?: "CHATBOT" | "GENERATOR" | "GENERIC" | "IMAGE_GENERATOR" | "EXPERIMENTAL_MATCHER" | "SHEETS" | "TRANSLATOR" | undefined;
|
|
49
49
|
}>): void;
|
|
50
50
|
}];
|
|
51
51
|
/**
|
package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { LlmToolsConfiguration } from './LlmToolsConfiguration';
|
|
|
12
12
|
* @returns @@@
|
|
13
13
|
* @public exported from `@promptbook/node`
|
|
14
14
|
*/
|
|
15
|
-
export declare function $provideLlmToolsConfigurationFromEnv(): LlmToolsConfiguration
|
|
15
|
+
export declare function $provideLlmToolsConfigurationFromEnv(): Promise<LlmToolsConfiguration>;
|
|
16
16
|
/**
|
|
17
17
|
* TODO: [🧠][🪁] Maybe do allow to do auto-install if package not registered and not found
|
|
18
18
|
* TODO: Add Azure OpenAI
|
|
@@ -14,7 +14,7 @@ type GetLlmToolsForTestingAndScriptsAndPlaygroundOptions = CreateLlmToolsFromCon
|
|
|
14
14
|
*
|
|
15
15
|
* @private within the repository - JUST FOR TESTS, SCRIPTS AND PLAYGROUND
|
|
16
16
|
*/
|
|
17
|
-
export declare function $provideLlmToolsForTestingAndScriptsAndPlayground(options?: GetLlmToolsForTestingAndScriptsAndPlaygroundOptions): LlmExecutionToolsWithTotalUsage
|
|
17
|
+
export declare function $provideLlmToolsForTestingAndScriptsAndPlayground(options?: GetLlmToolsForTestingAndScriptsAndPlaygroundOptions): Promise<LlmExecutionToolsWithTotalUsage>;
|
|
18
18
|
export {};
|
|
19
19
|
/**
|
|
20
20
|
* Note: [⚪] This should never be in any released package
|
|
@@ -5,9 +5,9 @@ import type { LlmExecutionToolsWithTotalUsage } from '../utils/count-total-usage
|
|
|
5
5
|
*
|
|
6
6
|
* @private within the repository - for CLI utils
|
|
7
7
|
*/
|
|
8
|
-
export declare function $
|
|
8
|
+
export declare function $provideLlmToolsForWizzardOrCli(options?: Pick<CacheLlmToolsOptions, 'isCacheReloaded'>): Promise<LlmExecutionToolsWithTotalUsage>;
|
|
9
9
|
/**
|
|
10
|
-
* Note: [
|
|
10
|
+
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
11
11
|
* TODO: [👷♂️] @@@ Manual about construction of llmTools
|
|
12
12
|
* TODO: [🥃] Allow `ptbk make` without llm tools
|
|
13
13
|
* TODO: This should be maybe not under `_common` but under `utils-internal` / `utils/internal`
|
|
@@ -15,7 +15,7 @@ import type { CreateLlmToolsFromConfigurationOptions } from './createLlmToolsFro
|
|
|
15
15
|
* @returns @@@
|
|
16
16
|
* @public exported from `@promptbook/node`
|
|
17
17
|
*/
|
|
18
|
-
export declare function $provideLlmToolsFromEnv(options?: CreateLlmToolsFromConfigurationOptions): MultipleLlmExecutionTools
|
|
18
|
+
export declare function $provideLlmToolsFromEnv(options?: CreateLlmToolsFromConfigurationOptions): Promise<MultipleLlmExecutionTools>;
|
|
19
19
|
/**
|
|
20
20
|
* TODO: @@@ write `$provideLlmToolsFromEnv` vs `$provideLlmToolsConfigurationFromEnv` vs `createLlmToolsFromConfiguration`
|
|
21
21
|
* TODO: [🧠][🍛] Which name is better `$provideLlmToolsFromEnv` or `$provideLlmToolsFromEnvironment`?
|
package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ClientOptions } from '@anthropic-ai/sdk';
|
|
2
2
|
import type { CommonToolsOptions } from '../../execution/CommonToolsOptions';
|
|
3
|
-
import type { RemoteLlmExecutionToolsOptions } from '
|
|
3
|
+
import type { RemoteLlmExecutionToolsOptions } from '../../remote-server/interfaces/RemoteLlmExecutionToolsOptions';
|
|
4
4
|
/**
|
|
5
5
|
* Options for `AnthropicClaudeExecutionTools`
|
|
6
6
|
*
|
|
@@ -16,7 +16,7 @@ export declare const ANTHROPIC_CLAUDE_MODELS: ReadonlyArray<AvailableModel & {
|
|
|
16
16
|
}>;
|
|
17
17
|
/**
|
|
18
18
|
* Note: [🤖] Add models of new variant
|
|
19
|
-
* TODO: [🧠][main]
|
|
19
|
+
* TODO: [🧠][main] !!3 Add embedding models OR Anthropic has only chat+completion models?
|
|
20
20
|
* TODO: [🧠] Some mechanism to propagate unsureness
|
|
21
21
|
* TODO: [🧠][👮♀️] Put here more info like description, isVision, trainingDateCutoff, languages, strengths ( Top-level performance, intelligence, fluency, and understanding), contextWindow,...
|
|
22
22
|
* TODO: [🎰] Some mechanism to auto-update available models
|
package/esm/typings/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export declare const createAnthropicClaudeExecutionTools: ((options: AnthropicCl
|
|
|
11
11
|
className: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* TODO: [🧠][main]
|
|
15
|
-
* TODO: [🧠][🧱][main]
|
|
14
|
+
* TODO: [🧠][main] !!4 Make anonymous this with all LLM providers
|
|
15
|
+
* TODO: [🧠][🧱][main] !!4 Maybe change all `new AnthropicClaudeExecutionTools` -> `createAnthropicClaudeExecutionTools` in manual
|
|
16
16
|
* TODO: [🧠] Maybe auto-detect usage in browser and determine default value of `isProxied`
|
|
17
17
|
* TODO: [🦺] Is there some way how to put `packageName` and `className` on top and function definition on bottom?
|
|
18
18
|
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
export {};
|
|
3
3
|
/**
|
|
4
|
-
* TODO: [main]
|
|
5
|
-
* TODO: [main]
|
|
4
|
+
* TODO: [main] !!3 Playground with WebGPT / Promptbook.studio anonymous server
|
|
5
|
+
* TODO: [main] !!3 Test here that `systemMessage`, `temperature` and `seed` are working correctly
|
|
6
6
|
* Note: [⚫] Code in this file should never be published in any package
|
|
7
7
|
*/
|