@promptbook/remote-client 0.61.0-0 → 0.61.0-10
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 +1 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/promptbook-collection/index.d.ts +118 -26
- package/esm/typings/src/_packages/core.index.d.ts +5 -1
- package/esm/typings/src/_packages/types.index.d.ts +5 -3
- package/esm/typings/src/_packages/utils.index.d.ts +1 -2
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -1
- package/esm/typings/src/collection/constructors/createCollectionFromUrl.d.ts +2 -2
- package/esm/typings/src/collection/constructors/justTestFsImport.d.ts +1 -1
- package/esm/typings/src/commands/MODEL/ModelCommand.d.ts +1 -1
- package/esm/typings/src/commands/PERSONA/PersonaCommand.d.ts +4 -2
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +12 -12
- package/esm/typings/src/config.d.ts +4 -0
- package/esm/typings/src/conversion/pipelineStringToJson.d.ts +8 -5
- package/esm/typings/src/conversion/pipelineStringToJsonSync.d.ts +3 -3
- package/esm/typings/src/conversion/prettify/PrettifyOptions.d.ts +2 -2
- package/esm/typings/src/conversion/utils/renameParameter.d.ts +3 -3
- package/esm/typings/src/conversion/validation/_importPipeline.d.ts +2 -2
- package/esm/typings/src/errors/VersionMismatch.d.ts +8 -0
- package/esm/typings/src/execution/PipelineExecutor.d.ts +5 -5
- package/esm/typings/src/execution/PromptResult.d.ts +5 -5
- package/esm/typings/src/execution/ScriptExecutionTools.d.ts +3 -3
- package/esm/typings/src/execution/UserInterfaceTools.d.ts +5 -5
- package/esm/typings/src/execution/createPipelineExecutor.d.ts +2 -1
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +2 -2
- package/esm/typings/src/execution/utils/forEachAsync.d.ts +1 -1
- package/esm/typings/src/formats/csv/ListFormatDefinition.d.ts +1 -1
- package/esm/typings/src/formats/json/JsonFormatDefinition.d.ts +1 -1
- package/esm/typings/src/formats/list/ListFormatDefinition.d.ts +1 -1
- package/esm/typings/src/knowledge/dialogs/callback/CallbackInterfaceToolsOptions.d.ts +1 -1
- package/esm/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.d.ts +18 -0
- package/esm/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.test.d.ts +1 -0
- package/esm/typings/src/knowledge/prepare-knowledge/_common/utils/getLlmToolsForTests.d.ts +7 -0
- package/esm/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +8 -23
- package/esm/typings/src/knowledge/prepare-knowledge/pdf/prepareKnowledgeFromPdf.d.ts +7 -14
- 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 +2 -2
- package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +5 -5
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +2 -2
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/personas/preparePersona.d.ts +13 -0
- package/esm/typings/src/personas/preparePersona.test.d.ts +1 -0
- package/esm/typings/src/prepare/PrepareOptions.d.ts +22 -0
- package/esm/typings/src/prepare/preparePipeline.d.ts +15 -0
- package/esm/typings/src/prepare/unpreparePipeline.d.ts +8 -0
- package/esm/typings/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/scripting/javascript/utils/preserve.d.ts +1 -1
- package/esm/typings/src/types/ModelRequirements.d.ts +2 -1
- package/esm/typings/src/types/Parameters.d.ts +1 -0
- package/esm/typings/src/types/PipelineJson/Expectations.d.ts +6 -2
- package/esm/typings/src/types/PipelineJson/KnowledgePieceJson.d.ts +67 -0
- package/esm/typings/src/types/PipelineJson/KnowledgeSourceJson.d.ts +24 -0
- package/esm/typings/src/types/PipelineJson/LlmTemplateJson.d.ts +8 -1
- package/esm/typings/src/types/PipelineJson/PersonaJson.d.ts +40 -0
- package/esm/typings/src/types/PipelineJson/PipelineJson.d.ts +27 -2
- package/esm/typings/src/types/PipelineJson/PreparationJson.d.ts +25 -0
- package/esm/typings/src/types/PipelineJson/PromptDialogJson.d.ts +2 -0
- package/esm/typings/src/types/PipelineJson/PromptTemplateJson.d.ts +1 -1
- package/esm/typings/src/types/PipelineJson/PromptTemplateJsonCommon.d.ts +7 -1
- package/esm/typings/src/types/PipelineJson/ScriptJson.d.ts +2 -0
- package/esm/typings/src/types/PipelineJson/SimpleTemplateJson.d.ts +2 -0
- package/esm/typings/src/types/execution-report/ExecutionReportJson.d.ts +4 -4
- package/esm/typings/src/types/execution-report/ExecutionReportStringOptions.d.ts +3 -3
- package/esm/typings/src/types/typeAliases.d.ts +27 -13
- package/esm/typings/src/utils/FromtoItems.d.ts +3 -3
- package/esm/typings/src/utils/currentDate.d.ts +7 -0
- package/esm/typings/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -2
- package/esm/typings/src/utils/markdown/createMarkdownChart.d.ts +6 -9
- package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -2
- package/esm/typings/src/utils/markdown/parseMarkdownSection.d.ts +3 -3
- package/esm/typings/src/utils/organization/TODO.d.ts +4 -0
- package/esm/typings/src/utils/organization/TODO_USE.d.ts +11 -0
- package/esm/typings/src/utils/organization/___.d.ts +4 -0
- package/esm/typings/src/utils/organization/really_any.d.ts +4 -0
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/index.umd.js.map +1 -1
- package/umd/typings/promptbook-collection/index.d.ts +118 -26
- package/umd/typings/src/_packages/core.index.d.ts +5 -1
- package/umd/typings/src/_packages/types.index.d.ts +5 -3
- package/umd/typings/src/_packages/utils.index.d.ts +1 -2
- package/umd/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -1
- package/umd/typings/src/collection/constructors/createCollectionFromUrl.d.ts +2 -2
- package/umd/typings/src/collection/constructors/justTestFsImport.d.ts +1 -1
- package/umd/typings/src/commands/MODEL/ModelCommand.d.ts +1 -1
- package/umd/typings/src/commands/PERSONA/PersonaCommand.d.ts +4 -2
- package/umd/typings/src/commands/_common/types/CommandParser.d.ts +12 -12
- package/umd/typings/src/config.d.ts +4 -0
- package/umd/typings/src/conversion/pipelineStringToJson.d.ts +8 -5
- package/umd/typings/src/conversion/pipelineStringToJsonSync.d.ts +3 -3
- package/umd/typings/src/conversion/prettify/PrettifyOptions.d.ts +2 -2
- package/umd/typings/src/conversion/utils/renameParameter.d.ts +3 -3
- package/umd/typings/src/conversion/validation/_importPipeline.d.ts +2 -2
- package/umd/typings/src/errors/VersionMismatch.d.ts +8 -0
- package/umd/typings/src/execution/PipelineExecutor.d.ts +5 -5
- package/umd/typings/src/execution/PromptResult.d.ts +5 -5
- package/umd/typings/src/execution/ScriptExecutionTools.d.ts +3 -3
- package/umd/typings/src/execution/UserInterfaceTools.d.ts +5 -5
- package/umd/typings/src/execution/createPipelineExecutor.d.ts +2 -1
- package/umd/typings/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +2 -2
- package/umd/typings/src/execution/utils/forEachAsync.d.ts +1 -1
- package/umd/typings/src/formats/csv/ListFormatDefinition.d.ts +1 -1
- package/umd/typings/src/formats/json/JsonFormatDefinition.d.ts +1 -1
- package/umd/typings/src/formats/list/ListFormatDefinition.d.ts +1 -1
- package/umd/typings/src/knowledge/dialogs/callback/CallbackInterfaceToolsOptions.d.ts +1 -1
- package/umd/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.d.ts +18 -0
- package/umd/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.test.d.ts +1 -0
- package/umd/typings/src/knowledge/prepare-knowledge/_common/utils/getLlmToolsForTests.d.ts +7 -0
- package/umd/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +8 -23
- package/umd/typings/src/knowledge/prepare-knowledge/pdf/prepareKnowledgeFromPdf.d.ts +7 -14
- package/umd/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +1 -1
- package/umd/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +2 -2
- package/umd/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +5 -5
- package/umd/typings/src/llm-providers/openai/OpenAiExecutionToolsOptions.d.ts +1 -1
- package/umd/typings/src/llm-providers/openai/openai-models.d.ts +2 -2
- package/umd/typings/src/llm-providers/remote/RemoteLlmExecutionToolsOptions.d.ts +1 -1
- package/umd/typings/src/personas/preparePersona.d.ts +13 -0
- package/umd/typings/src/personas/preparePersona.test.d.ts +1 -0
- package/umd/typings/src/prepare/PrepareOptions.d.ts +22 -0
- package/umd/typings/src/prepare/preparePipeline.d.ts +15 -0
- package/umd/typings/src/prepare/unpreparePipeline.d.ts +8 -0
- package/umd/typings/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +1 -1
- package/umd/typings/src/scripting/javascript/utils/preserve.d.ts +1 -1
- package/umd/typings/src/types/ModelRequirements.d.ts +2 -1
- package/umd/typings/src/types/Parameters.d.ts +1 -0
- package/umd/typings/src/types/PipelineJson/Expectations.d.ts +6 -2
- package/umd/typings/src/types/PipelineJson/KnowledgePieceJson.d.ts +67 -0
- package/umd/typings/src/types/PipelineJson/KnowledgeSourceJson.d.ts +24 -0
- package/umd/typings/src/types/PipelineJson/LlmTemplateJson.d.ts +8 -1
- package/umd/typings/src/types/PipelineJson/PersonaJson.d.ts +40 -0
- package/umd/typings/src/types/PipelineJson/PipelineJson.d.ts +27 -2
- package/umd/typings/src/types/PipelineJson/PreparationJson.d.ts +25 -0
- package/umd/typings/src/types/PipelineJson/PromptDialogJson.d.ts +2 -0
- package/umd/typings/src/types/PipelineJson/PromptTemplateJson.d.ts +1 -1
- package/umd/typings/src/types/PipelineJson/PromptTemplateJsonCommon.d.ts +7 -1
- package/umd/typings/src/types/PipelineJson/ScriptJson.d.ts +2 -0
- package/umd/typings/src/types/PipelineJson/SimpleTemplateJson.d.ts +2 -0
- package/umd/typings/src/types/execution-report/ExecutionReportJson.d.ts +4 -4
- package/umd/typings/src/types/execution-report/ExecutionReportStringOptions.d.ts +3 -3
- package/umd/typings/src/types/typeAliases.d.ts +27 -13
- package/umd/typings/src/utils/FromtoItems.d.ts +3 -3
- package/umd/typings/src/utils/currentDate.d.ts +7 -0
- package/umd/typings/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -2
- package/umd/typings/src/utils/markdown/createMarkdownChart.d.ts +6 -9
- package/umd/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -2
- package/umd/typings/src/utils/markdown/parseMarkdownSection.d.ts +3 -3
- package/umd/typings/src/utils/organization/TODO.d.ts +4 -0
- package/umd/typings/src/utils/organization/TODO_USE.d.ts +11 -0
- package/umd/typings/src/utils/organization/___.d.ts +4 -0
- package/umd/typings/src/utils/organization/really_any.d.ts +4 -0
- package/esm/typings/src/personas/personaToModelRequirements.d.ts +0 -6
- package/esm/typings/src/types/PipelineJson/KnowledgeJson.d.ts +0 -6
- package/esm/typings/src/types/PipelineJson/MaterialKnowledgePieceJson.d.ts +0 -28
- package/umd/typings/src/personas/personaToModelRequirements.d.ts +0 -6
- package/umd/typings/src/types/PipelineJson/KnowledgeJson.d.ts +0 -6
- package/umd/typings/src/types/PipelineJson/MaterialKnowledgePieceJson.d.ts +0 -28
- /package/esm/typings/src/_packages/{markdown-utils.d.ts → markdown-utils.index.d.ts} +0 -0
- /package/esm/typings/src/utils/{just.d.ts → organization/just.d.ts} +0 -0
- /package/umd/typings/src/_packages/{markdown-utils.d.ts → markdown-utils.index.d.ts} +0 -0
- /package/umd/typings/src/utils/{just.d.ts → organization/just.d.ts} +0 -0
|
@@ -41,18 +41,18 @@ export type ExecutionReportJson = {
|
|
|
41
41
|
/**
|
|
42
42
|
* The prompt wich was executed
|
|
43
43
|
*/
|
|
44
|
-
prompt: Omit<Prompt, 'pipelineUrl' | 'parameters'>;
|
|
44
|
+
readonly prompt: Omit<Prompt, 'pipelineUrl' | 'parameters'>;
|
|
45
45
|
/**
|
|
46
46
|
* Result of the prompt execution (if not failed during LLM execution)
|
|
47
47
|
*/
|
|
48
|
-
result?: PromptResult;
|
|
48
|
+
readonly result?: PromptResult;
|
|
49
49
|
/**
|
|
50
50
|
* The error which occured during LLM execution or during postprocessing or expectation checking
|
|
51
51
|
*
|
|
52
52
|
* Note: It makes sense to have both error and result defined, for example when the result not pass expectations
|
|
53
53
|
*/
|
|
54
|
-
error?: {
|
|
55
|
-
message: string;
|
|
54
|
+
readonly error?: {
|
|
55
|
+
readonly message: string;
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
58
58
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { number_percent } from '../typeAliases';
|
|
2
2
|
/**
|
|
3
|
-
* Options for
|
|
3
|
+
* Options for `executionReportJsonToString`
|
|
4
4
|
*/
|
|
5
5
|
export type ExecutionReportStringOptions = {
|
|
6
6
|
/**
|
|
7
7
|
* The tax rate to be applied, expressed as a percentage from 0 to 1 (=100%) or even more
|
|
8
8
|
*/
|
|
9
|
-
taxRate: number_percent;
|
|
9
|
+
readonly taxRate: number_percent;
|
|
10
10
|
/**
|
|
11
11
|
* The width of the charts in the report
|
|
12
12
|
*/
|
|
13
|
-
chartsWidth: number;
|
|
13
|
+
readonly chartsWidth: number;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Default options for generating an execution report string
|
|
@@ -80,6 +80,23 @@ export type string_name = string;
|
|
|
80
80
|
* For example `"Ai*nautes"`
|
|
81
81
|
*/
|
|
82
82
|
export type string_title = string;
|
|
83
|
+
/**
|
|
84
|
+
* Description of persona
|
|
85
|
+
*
|
|
86
|
+
* For example `"Skilled copywriter"`
|
|
87
|
+
*/
|
|
88
|
+
export type string_persona_description = string;
|
|
89
|
+
/**
|
|
90
|
+
* Source of one knowledge
|
|
91
|
+
*
|
|
92
|
+
* It can be a link, a relative path to file or direct text
|
|
93
|
+
*
|
|
94
|
+
* For example `"https://pavolhejny.com/"`
|
|
95
|
+
* For example `"./pavol-hejny-cv.pdf"`
|
|
96
|
+
* For example `"Pavol Hejný has web https://pavolhejny.com/"`
|
|
97
|
+
* For example `"Pavol Hejný is web developer and creator of Promptbook and Collboard"`
|
|
98
|
+
*/
|
|
99
|
+
export type string_knowledge_source = string_url | string_file_path | string;
|
|
83
100
|
/**
|
|
84
101
|
* Semantic helper
|
|
85
102
|
*
|
|
@@ -428,6 +445,14 @@ export type string_date_iso8601 = `${number}-${number}-${number}${string}${numbe
|
|
|
428
445
|
* Semantic helper for US Dollars
|
|
429
446
|
*/
|
|
430
447
|
export type number_usd = number;
|
|
448
|
+
/**
|
|
449
|
+
* Semantic helper for incremental IDs
|
|
450
|
+
*/
|
|
451
|
+
export type number_id = number_integer & (number_positive | 0);
|
|
452
|
+
/**
|
|
453
|
+
* Semantic helper for number of rows and columns
|
|
454
|
+
*/
|
|
455
|
+
export type number_linecol_number = number_integer & number_positive;
|
|
431
456
|
/**
|
|
432
457
|
* Semantic helper for number of tokens
|
|
433
458
|
*/
|
|
@@ -462,19 +487,8 @@ export type number_kilobytes = number_positive;
|
|
|
462
487
|
export type number_megabytes = number_positive;
|
|
463
488
|
export type number_gigabytes = number_positive;
|
|
464
489
|
export type number_terabytes = number_positive;
|
|
465
|
-
|
|
466
|
-
*
|
|
467
|
-
*/
|
|
468
|
-
export type ___ = never;
|
|
469
|
-
/**
|
|
470
|
-
* Organizational helper to better mark the place where the type is missing
|
|
471
|
-
*/
|
|
472
|
-
export type TODO = any;
|
|
473
|
-
/**
|
|
474
|
-
* Organizational helper to mark a place where to really use any
|
|
475
|
-
*/
|
|
476
|
-
export type really_any = any;
|
|
477
|
-
/**
|
|
490
|
+
/**.
|
|
491
|
+
* TODO: !!! Change "For example" to @example
|
|
478
492
|
* TODO: !! Cleanup
|
|
479
493
|
* TODO: !! Change to branded types
|
|
480
494
|
*/
|
|
@@ -5,15 +5,15 @@ export type FromtoItems = Array<{
|
|
|
5
5
|
/**
|
|
6
6
|
* The title of the item
|
|
7
7
|
*/
|
|
8
|
-
title: string;
|
|
8
|
+
readonly title: string;
|
|
9
9
|
/**
|
|
10
10
|
* The start of the item
|
|
11
11
|
*
|
|
12
12
|
* This can mean anything, like seconds, milliseconds, dollars, etc.
|
|
13
13
|
*/
|
|
14
|
-
from: number;
|
|
14
|
+
readonly from: number;
|
|
15
15
|
/**
|
|
16
16
|
* The end of the item
|
|
17
17
|
*/
|
|
18
|
-
to: number;
|
|
18
|
+
readonly to: number;
|
|
19
19
|
}>;
|
|
@@ -6,6 +6,6 @@ import type { string_name } from '../../types/typeAliases';
|
|
|
6
6
|
* @private within the package
|
|
7
7
|
*/
|
|
8
8
|
export declare function addAutoGeneratedSection(content: string_markdown, options: {
|
|
9
|
-
sectionName: string_name;
|
|
10
|
-
sectionContent: string_markdown;
|
|
9
|
+
readonly sectionName: string_name;
|
|
10
|
+
readonly sectionContent: string_markdown;
|
|
11
11
|
}): string_markdown;
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
import type { string_markdown } from '../../types/typeAliases';
|
|
2
2
|
import type { FromtoItems } from '../FromtoItems';
|
|
3
3
|
/**
|
|
4
|
-
* Options for
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Options for creating a markdown chart.
|
|
4
|
+
* Options for `CreateMarkdownChartOptions`
|
|
8
5
|
*/
|
|
9
6
|
type CreateMarkdownChartOptions = {
|
|
10
7
|
/**
|
|
11
8
|
* The header for the first column - the name of the item
|
|
12
9
|
*/
|
|
13
|
-
nameHeader: string;
|
|
10
|
+
readonly nameHeader: string;
|
|
14
11
|
/**
|
|
15
12
|
* The header for the second column - the value of the item
|
|
16
13
|
*/
|
|
17
|
-
valueHeader: string;
|
|
14
|
+
readonly valueHeader: string;
|
|
18
15
|
/**
|
|
19
16
|
* The items to be charted
|
|
20
17
|
*/
|
|
21
|
-
items: FromtoItems;
|
|
18
|
+
readonly items: FromtoItems;
|
|
22
19
|
/**
|
|
23
20
|
* The width of the chart in squares
|
|
24
21
|
*/
|
|
25
|
-
width: number;
|
|
22
|
+
readonly width: number;
|
|
26
23
|
/**
|
|
27
24
|
* The name of the unit shown in the chart
|
|
28
25
|
*/
|
|
29
|
-
unitName: string;
|
|
26
|
+
readonly unitName: string;
|
|
30
27
|
};
|
|
31
28
|
/**
|
|
32
29
|
* Function createMarkdownChart will draw a chart in markdown from ⬛+🟦 tiles
|
|
@@ -6,11 +6,11 @@ export type CodeBlock = {
|
|
|
6
6
|
/**
|
|
7
7
|
* Language of the code block OR null if the language is not specified in opening ```
|
|
8
8
|
*/
|
|
9
|
-
language: string | null;
|
|
9
|
+
readonly language: string | null;
|
|
10
10
|
/**
|
|
11
11
|
* Content of the code block (unescaped)
|
|
12
12
|
*/
|
|
13
|
-
content: string;
|
|
13
|
+
readonly content: string;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Extracts all code blocks from markdown.
|
|
@@ -8,15 +8,15 @@ export type MarkdownSection = {
|
|
|
8
8
|
/**
|
|
9
9
|
* Title of the section
|
|
10
10
|
*/
|
|
11
|
-
title: string_markdown_text;
|
|
11
|
+
readonly title: string_markdown_text;
|
|
12
12
|
/**
|
|
13
13
|
* Level of the section like h1, h2, h3, h4, h5, h6
|
|
14
14
|
*/
|
|
15
|
-
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
15
|
+
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
16
16
|
/**
|
|
17
17
|
* Content of the section with markdown formatting, blocks, lists, etc.
|
|
18
18
|
*/
|
|
19
|
-
content: string_markdown_section_content;
|
|
19
|
+
readonly content: string_markdown_section_content;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Parses markdown section to title its level and content
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { really_any } from './really_any';
|
|
2
|
+
/**
|
|
3
|
+
* Just marks a place of place where should be something implemented
|
|
4
|
+
* No side effects.
|
|
5
|
+
*
|
|
6
|
+
* Note: It can be usefull suppressing eslint errors of unused variables
|
|
7
|
+
*
|
|
8
|
+
* @param value any values
|
|
9
|
+
* @returns void
|
|
10
|
+
*/
|
|
11
|
+
export declare function TODO_USE(...value: Array<really_any>): void;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { EmbeddingVector } from '../../execution/EmbeddingVector';
|
|
2
|
-
import type { string_keyword } from '../../utils/normalization/IKeywords';
|
|
3
|
-
import type { string_href } from '../typeAliases';
|
|
4
|
-
import type { string_markdown } from '../typeAliases';
|
|
5
|
-
import type { string_markdown_text } from '../typeAliases';
|
|
6
|
-
import type { string_model_name } from '../typeAliases';
|
|
7
|
-
import type { string_name } from '../typeAliases';
|
|
8
|
-
export type MaterialKnowledgePieceJson = {
|
|
9
|
-
readonly name: string_name;
|
|
10
|
-
readonly title: string_markdown_text;
|
|
11
|
-
readonly content: string_markdown;
|
|
12
|
-
readonly keywords: Array<string_keyword>;
|
|
13
|
-
readonly index: Array<{
|
|
14
|
-
modelName: string_model_name;
|
|
15
|
-
position: EmbeddingVector;
|
|
16
|
-
}>;
|
|
17
|
-
readonly sources: Array<{
|
|
18
|
-
title: string_markdown_text;
|
|
19
|
-
href: string_href;
|
|
20
|
-
}>;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* TODO: !!! Use or uninstall xyzt
|
|
24
|
-
* !!!! Annotate
|
|
25
|
-
* TODO: [🧠][🦪] Maybe allow internal links between (Material)KnowledgePieces withing the KnowledgeJson and maybe require to explicitelly reference the source of the knowledge
|
|
26
|
-
* TODO: [🧠] Make some non-material sources like external search engine or dialog to user
|
|
27
|
-
* TODO: [🧠] Make some non-material (and maybe non-knowledge-like but tool-like) sources like calculator, code interpreter
|
|
28
|
-
*/
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { EmbeddingVector } from '../../execution/EmbeddingVector';
|
|
2
|
-
import type { string_keyword } from '../../utils/normalization/IKeywords';
|
|
3
|
-
import type { string_href } from '../typeAliases';
|
|
4
|
-
import type { string_markdown } from '../typeAliases';
|
|
5
|
-
import type { string_markdown_text } from '../typeAliases';
|
|
6
|
-
import type { string_model_name } from '../typeAliases';
|
|
7
|
-
import type { string_name } from '../typeAliases';
|
|
8
|
-
export type MaterialKnowledgePieceJson = {
|
|
9
|
-
readonly name: string_name;
|
|
10
|
-
readonly title: string_markdown_text;
|
|
11
|
-
readonly content: string_markdown;
|
|
12
|
-
readonly keywords: Array<string_keyword>;
|
|
13
|
-
readonly index: Array<{
|
|
14
|
-
modelName: string_model_name;
|
|
15
|
-
position: EmbeddingVector;
|
|
16
|
-
}>;
|
|
17
|
-
readonly sources: Array<{
|
|
18
|
-
title: string_markdown_text;
|
|
19
|
-
href: string_href;
|
|
20
|
-
}>;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* TODO: !!! Use or uninstall xyzt
|
|
24
|
-
* !!!! Annotate
|
|
25
|
-
* TODO: [🧠][🦪] Maybe allow internal links between (Material)KnowledgePieces withing the KnowledgeJson and maybe require to explicitelly reference the source of the knowledge
|
|
26
|
-
* TODO: [🧠] Make some non-material sources like external search engine or dialog to user
|
|
27
|
-
* TODO: [🧠] Make some non-material (and maybe non-knowledge-like but tool-like) sources like calculator, code interpreter
|
|
28
|
-
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|