@promptbook/fake-llm
Advanced tools
Comparing version 0.61.0-11 to 0.61.0-12
@@ -296,3 +296,3 @@ import { spaceTrim } from 'spacetrim'; | ||
/** | ||
* TODO: !!! Use here `seed` | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
* TODO: Allow in spaceTrim: nesting with > ${block(prompt.request)}, same as replace params | ||
@@ -309,2 +309,3 @@ */ | ||
* @returns void | ||
* @private within the repository | ||
*/ | ||
@@ -325,2 +326,6 @@ function notUsing() { | ||
var CHARACTER_LOOP_LIMIT = 100000; | ||
/* | ||
TODO: !!! Just testing false-negative detection of [🟡][🟢][🔵][⚪] leak | ||
*/ | ||
// [🟡][🟢][🔵][⚪] | ||
@@ -877,3 +882,3 @@ /** | ||
notUsing(prompt); | ||
content = new Array(25).fill(0).map(function () { return Math.random() * 2 - 1; }); | ||
content = new Array(1024).fill(0).map(function () { return Math.random() * 2 - 1; }); | ||
result = { | ||
@@ -921,3 +926,3 @@ content: content, | ||
/** | ||
* TODO: !!! Use here `seed` | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ | ||
@@ -928,6 +933,9 @@ | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.61.0-10'; | ||
var PROMPTBOOK_VERSION = '0.61.0-11'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/code` | ||
*/ | ||
export { MockedEchoLlmExecutionTools, MockedFackedLlmExecutionTools, PROMPTBOOK_VERSION }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -8,1 +8,4 @@ import type { Command as Program } from 'commander'; | ||
export declare function initializeHelloCommand(program: Program): void; | ||
/** | ||
* Note: [🟡] This code should never be published outside of `@promptbook/cli` | ||
*/ |
@@ -8,1 +8,4 @@ import type { Command as Program } from 'commander'; | ||
export declare function initializeMakeCommand(program: Program): void; | ||
/** | ||
* Note: [🟡] This code should never be published outside of `@promptbook/cli` | ||
*/ |
@@ -8,1 +8,4 @@ import type { Command as Program } from 'commander'; | ||
export declare function initializePrettifyCommand(program: Program): void; | ||
/** | ||
* Note: [🟡] This code should never be published outside of `@promptbook/cli` | ||
*/ |
@@ -9,2 +9,3 @@ /** | ||
* Note: 11:11 | ||
* Note: [🟡] This code should never be published outside of `@promptbook/cli` | ||
*/ |
@@ -47,2 +47,3 @@ import type { PipelineStringToJsonOptions } from '../../conversion/pipelineStringToJson'; | ||
* TODO: !!!! [🧠] Library precompilation and do not mix markdown and json promptbooks | ||
* Note: [🟢] This code should never be published outside of `@promptbook/node` | ||
*/ |
@@ -8,3 +8,3 @@ import type { Promisable } from 'type-fest'; | ||
* | ||
* @see !!! https://github.com/webgptorg/pipeline#pipeline-collection | ||
* @see @@@ https://github.com/webgptorg/pipeline#pipeline-collection | ||
*/ | ||
@@ -11,0 +11,0 @@ export type PipelineCollection = { |
@@ -17,3 +17,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
* | ||
* @param promptbooks !!! | ||
* @param promptbooks @@@ | ||
* | ||
@@ -20,0 +20,0 @@ * @private Use instead `createCollectionFromJson` |
@@ -12,2 +12,3 @@ import type { CommandParser } from '../_common/types/CommandParser'; | ||
* TODO: [💐] Implement BOILERPLATE command into `pipelineStringToJsonSync` function | ||
* Note: [⚪] This should never be in any released package | ||
*/ |
@@ -31,3 +31,3 @@ import type { WritableDeep } from 'type-fest'; | ||
/** | ||
* TODO: !!!! Annotate | ||
* TODO: @@@ Annotate all | ||
* TODO: [🧠] Maybe put flag if it is for whole `.ptbk.md` file of just one section | ||
@@ -34,0 +34,0 @@ * TODO: [🍧] CommandParser should have applyToPipelineJson method |
@@ -11,5 +11,5 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: !!!!! Implement new features and commands into `promptTemplateParameterJsonToString` | ||
* TODO: !!!! Implement new features and commands into `promptTemplateParameterJsonToString` | ||
* TODO: [🧠] Is there a way to auto-detect missing features in pipelineJsonToString | ||
* TODO: Escape all | ||
*/ |
@@ -29,4 +29,6 @@ import type { PipelineJson } from '../../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: [🧠] !!!!! Validate new things | ||
* TODO: [🧠][🐣] !!!! Validate that all samples match expectations | ||
* TODO: [🧠][🐣] !!!! Validate that knowledge is valid (non-void) | ||
* TODO: [🧠] !!! Validationg not only logic itself but imports around - files and websites and rerefenced pipelines exists | ||
* TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools | ||
*/ | ||
*/ |
@@ -8,3 +8,4 @@ export type CommonExecutionToolsOptions = { | ||
/** | ||
* TODO: [🈁] Maybe add here `isDeterministic` | ||
* TODO: [🧠][💙] Distinct between options passed into ExecutionTools and to ExecutionTools.execute | ||
*/ |
@@ -11,2 +11,3 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `CsvFormatDefinition` implement `extractValues` | ||
* TODO: [🏢] Allow to expect something inside CSV objects and other formats | ||
*/ |
@@ -15,2 +15,3 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `JsonFormatDefinition` implement `extractValues` | ||
* TODO: [🏢] Allow to expect something inside JSON objects and other formats | ||
*/ |
@@ -13,2 +13,3 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `ListFormatDefinition` implement `extractValues` | ||
* TODO: [🏢] Allow to expect something inside each item of list and other formats | ||
*/ |
@@ -15,2 +15,3 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `XmlFormatDefinition` implement `extractValues` | ||
* TODO: [🏢] Allow to expect something inside XML and other formats | ||
*/ |
@@ -18,1 +18,4 @@ import type { CommonExecutionToolsOptions } from '../../../execution/CommonExecutionToolsOptions'; | ||
} | ||
/** | ||
* Note: [🔵] This code should never be published outside of `@promptbook/browser` | ||
*/ |
@@ -8,6 +8,6 @@ import type { PrepareOptions } from '../../../prepare/PrepareOptions'; | ||
* @see https://github.com/webgptorg/promptbook/discussions/41 | ||
* @private within the package | ||
*/ | ||
export declare function prepareKnowledgePieces(knowledgeSources: Array<KnowledgeSourceJson>, options: PrepareOptions): Promise<Array<Omit<KnowledgePiecePreparedJson, 'preparationIds'>>>; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
* TODO: [🧊] In future one preparation can take data from previous preparation and save tokens and time | ||
@@ -14,0 +14,0 @@ * Put `knowledgePieces` into `PrepareKnowledgeOptions` |
@@ -9,4 +9,5 @@ import type { PrepareOptions } from '../../../prepare/PrepareOptions'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/markdown` | ||
* TODO: [🪂] Do it in parallel 11:11 | ||
* Note: No need to aggregate usage here, it is done by intercepting the llmTools | ||
*/ |
@@ -9,2 +9,3 @@ import type { PrepareOptions } from '../../../prepare/PrepareOptions'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/pdf` | ||
* TODO: [🧺] In future, content can be alse File or Blob BUT for now for wider compatibility its only base64 | ||
@@ -11,0 +12,0 @@ * @see https://stackoverflow.com/questions/14653349/node-js-cant-create-blobs |
@@ -18,3 +18,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* Note: [🤖] Add models of new variant | ||
* TODO: !!!! Add embedding models OR Anthropic has only chat+completion models? | ||
* TODO: [🧠] !!! Add embedding models OR Anthropic has only chat+completion models? | ||
* TODO: [🧠] Some mechanism to propagate unsureness | ||
@@ -21,0 +21,0 @@ * TODO: [🧠][👮♀️] Put here more info like description, isVision, trainingDateCutoff, languages, strengths ( Top-level performance, intelligence, fluency, and understanding), contextWindow,... |
@@ -48,2 +48,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: Maybe make custom OpenaiError | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -47,2 +47,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: Maybe make custom AzureOpenaiError | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -13,1 +13,4 @@ import type { LlmExecutionTools } from '../../execution/LlmExecutionTools'; | ||
} | ||
/** | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -10,3 +10,3 @@ import type { OpenAiExecutionToolsOptions } from '../openai/OpenAiExecutionToolsOptions'; | ||
/** | ||
* TODO: !!! Use or remove | ||
* TODO: !! Use or remove | ||
*/ |
@@ -32,4 +32,4 @@ import type { CommonExecutionToolsOptions } from '../../execution/CommonExecutionToolsOptions'; | ||
/** | ||
* TODO: !!! Use here `seed` | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
* TODO: Allow in spaceTrim: nesting with > ${block(prompt.request)}, same as replace params | ||
*/ |
@@ -37,3 +37,3 @@ import type { CommonExecutionToolsOptions } from '../../execution/CommonExecutionToolsOptions'; | ||
/** | ||
* TODO: !!! Use here `seed` | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -7,3 +7,3 @@ /** | ||
* | ||
* @private within the package, used only as internal helper for `OPENAI_MODELS` and `computeUsage` | ||
* @private within the repository, used only as internal helper for `OPENAI_MODELS` and `computeUsage` | ||
*/ | ||
@@ -14,5 +14,5 @@ type string_model_price = `$${number}.${number} / ${number}M tokens`; | ||
* | ||
* @private within the package, used only as internal helper for `OPENAI_MODELS` | ||
* @private within the repository, used only as internal helper for `OPENAI_MODELS` | ||
*/ | ||
export declare function computeUsage(value: string_model_price): number; | ||
export {}; |
@@ -65,2 +65,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: Maybe make custom OpenaiError | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -8,4 +8,9 @@ import type { PrepareOptions } from '../prepare/PrepareOptions'; | ||
* @see https://github.com/webgptorg/promptbook/discussions/22 | ||
* @private within the package | ||
*/ | ||
export declare function preparePersona(personaDescription: string_persona_description, options: PrepareOptions): Promise<PersonaPreparedJson['modelRequirements']>; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
* TODO: [🏢] !! Check validity of `modelName` in pipeline | ||
* TODO: [🏢] !! Check validity of `systemMessage` in pipeline | ||
* TODO: [🏢] !! Check validity of `temperature` in pipeline | ||
*/ |
@@ -11,7 +11,8 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
* TODO: Write tests for `preparePipeline` | ||
* TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch | ||
* TODO: [🧊] In future one preparation can take data from previous preparation and save tokens and time | ||
* TODO: !!!!! Use here countTotalUsage | ||
* TODO: [🎐] !!!! Use here countTotalUsage | ||
* TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools | ||
*/ |
@@ -7,3 +7,4 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
* TODO: Write tests for `preparePipeline` | ||
*/ |
@@ -23,3 +23,4 @@ import { Promisable } from 'type-fest'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/types` | ||
* TODO: [🧠][🛫] Constrain `TItem` to JSON-serializable objects only | ||
*/ |
export {}; | ||
/** | ||
* TODO: !!!!! Check that this files is not exported into build | ||
* Note: [⚪] This should never be in any released package | ||
* TODO: Is this a good pattern to do type testing? | ||
*/ |
@@ -27,3 +27,5 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/node` | ||
* TODO: [🌗] Maybe some checkers, not all valid JSONs are desired and valid values | ||
* Note: [🟢] This code should never be published outside of `@promptbook/node` | ||
*/ |
@@ -11,1 +11,4 @@ import type { string_folder_path } from '../../types/typeAliases'; | ||
}; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/types` | ||
*/ |
@@ -7,3 +7,4 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
/** | ||
* Export through `@promptbook/browser` | ||
* TODO: [🔼] !!! Export via `@promptbook/browser` | ||
* Note: [🔵] This code should never be published outside of `@promptbook/browser` | ||
*/ |
@@ -7,3 +7,4 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
/** | ||
* Export through `@promptbook/browser` | ||
* TODO: [🔼] !!! Export via `@promptbook/browser` | ||
* Note: [🔵] This code should never be published outside of `@promptbook/browser` | ||
*/ |
@@ -32,1 +32,4 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
} | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
*/ |
@@ -9,5 +9,4 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
/** | ||
* TODO: !!!! Export through `@promptbook/browser` | ||
* TODO: [🧠] Should this be named `makePromptbookStorageFromWebStorage` vs `createPromptbookStorageFromWebStorage` | ||
* TODO: [🌗] Maybe some checkers, not all valid JSONs are desired and valid values | ||
*/ |
@@ -24,1 +24,4 @@ import { Promisable } from 'type-fest'; | ||
} | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
*/ |
@@ -5,4 +5,4 @@ import type { FromtoItems } from '../../utils/FromtoItems'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
export declare function countWorkingDuration(items: FromtoItems): number; |
@@ -57,3 +57,3 @@ import type { number_model_temperature } from './typeAliases'; | ||
/** | ||
* TODO: [🈁] `seed` should maybe be somewhere else (not in `ModelRequirements`) (simmilar that `user` identification is not here) | ||
* TODO: [🧠][🈁] `seed` should maybe be somewhere else (not in `ModelRequirements`) (simmilar that `user` identification is not here) | ||
* TODO: [🧠][💱] Add more model options: `stop_token`, `logit_bias`, `logprobs` (`top_logprobs`), `top_k`, `top_p`, `presence_penalty`, `frequency_penalty`, `bestOf`, `logitBias`, `logitBiasType`,... | ||
@@ -60,0 +60,0 @@ * [💱] Probbably keep using just `temperature` in Promptbook (not `top_k` and `top_p`) |
@@ -17,3 +17,3 @@ import type { string_file_path } from '../typeAliases'; | ||
* | ||
* @see !!! https://github.com/webgptorg/promptbook#promptbook | ||
* @see @@@ https://github.com/webgptorg/promptbook#promptbook | ||
*/ | ||
@@ -20,0 +20,0 @@ export type PipelineJson = { |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @see !!! https://github.com/webgptorg/promptbook#promptbook | ||
* @see @@@ https://github.com/webgptorg/promptbook#promptbook | ||
*/ | ||
@@ -8,0 +8,0 @@ export type PipelineString = string & { |
@@ -8,3 +8,3 @@ import type { string_char_emoji } from '../types/typeAliasEmoji'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
* @deprecated Use /\p{Extended_Pictographic}/ instead | ||
@@ -17,3 +17,3 @@ */ | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
* @deprecated Use /\p{Extended_Pictographic}/ instead | ||
@@ -20,0 +20,0 @@ */ |
/** | ||
* Format either small or big number | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
export declare function formatNumber(value: number): string; |
@@ -13,1 +13,4 @@ /** | ||
export declare const isRunningInWebWorker: Function; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/utils` | ||
*/ |
@@ -6,3 +6,3 @@ import type { string_markdown } from '../../types/typeAliases'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
@@ -9,0 +9,0 @@ export declare function addAutoGeneratedSection(content: string_markdown, options: { |
@@ -31,3 +31,3 @@ import type { string_markdown } from '../../types/typeAliases'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
@@ -34,0 +34,0 @@ export declare function createMarkdownChart(options: CreateMarkdownChartOptions): string_markdown; |
@@ -6,4 +6,4 @@ import type { string_markdown } from '../../types/typeAliases'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
export declare function createMarkdownTable(table: Array<Array<string_markdown_text>>): string_markdown; |
/** | ||
* Formatting helper to put void to keep longer version of prettier | ||
* | ||
* @private within the repository | ||
*/ | ||
export type ___ = never; |
@@ -9,3 +9,4 @@ /** | ||
* @returns the same values | ||
* @private within the repository | ||
*/ | ||
export declare function just<T>(value?: T): T; |
@@ -10,3 +10,4 @@ import type { really_any } from './really_any'; | ||
* @returns void | ||
* @private within the repository | ||
*/ | ||
export declare function notUsing(...value: Array<really_any>): void; |
/** | ||
* Organizational helper to mark a place where to really use any | ||
* | ||
* @private within the repository | ||
*/ | ||
export type really_any = any; |
@@ -10,3 +10,4 @@ import type { really_any } from './really_any'; | ||
* @returns void | ||
* @private within the repository | ||
*/ | ||
export declare function TODO_USE(...value: Array<really_any>): void; |
/** | ||
* Organizational helper to better mark the place where the type is missing | ||
* | ||
* @private within the repository | ||
*/ | ||
export type TODO = any; |
@@ -7,1 +7,4 @@ import type { string_semantic_version } from './types/typeAliases'; | ||
export type string_promptbook_version = string_semantic_version; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/code` | ||
*/ |
{ | ||
"name": "@promptbook/fake-llm", | ||
"version": "0.61.0-11", | ||
"version": "0.61.0-12", | ||
"description": "Supercharge your use of large language models", | ||
@@ -51,3 +51,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.61.0-11" | ||
"@promptbook/core": "0.61.0-12" | ||
}, | ||
@@ -54,0 +54,0 @@ "main": "./umd/index.umd.js", |
@@ -299,3 +299,3 @@ (function (global, factory) { | ||
/** | ||
* TODO: !!! Use here `seed` | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
* TODO: Allow in spaceTrim: nesting with > ${block(prompt.request)}, same as replace params | ||
@@ -312,2 +312,3 @@ */ | ||
* @returns void | ||
* @private within the repository | ||
*/ | ||
@@ -328,2 +329,6 @@ function notUsing() { | ||
var CHARACTER_LOOP_LIMIT = 100000; | ||
/* | ||
TODO: !!! Just testing false-negative detection of [🟡][🟢][🔵][⚪] leak | ||
*/ | ||
// [🟡][🟢][🔵][⚪] | ||
@@ -880,3 +885,3 @@ /** | ||
notUsing(prompt); | ||
content = new Array(25).fill(0).map(function () { return Math.random() * 2 - 1; }); | ||
content = new Array(1024).fill(0).map(function () { return Math.random() * 2 - 1; }); | ||
result = { | ||
@@ -924,3 +929,3 @@ content: content, | ||
/** | ||
* TODO: !!! Use here `seed` | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ | ||
@@ -931,4 +936,7 @@ | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.61.0-10'; | ||
var PROMPTBOOK_VERSION = '0.61.0-11'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/code` | ||
*/ | ||
@@ -935,0 +943,0 @@ exports.MockedEchoLlmExecutionTools = MockedEchoLlmExecutionTools; |
@@ -8,1 +8,4 @@ import type { Command as Program } from 'commander'; | ||
export declare function initializeHelloCommand(program: Program): void; | ||
/** | ||
* Note: [🟡] This code should never be published outside of `@promptbook/cli` | ||
*/ |
@@ -8,1 +8,4 @@ import type { Command as Program } from 'commander'; | ||
export declare function initializeMakeCommand(program: Program): void; | ||
/** | ||
* Note: [🟡] This code should never be published outside of `@promptbook/cli` | ||
*/ |
@@ -8,1 +8,4 @@ import type { Command as Program } from 'commander'; | ||
export declare function initializePrettifyCommand(program: Program): void; | ||
/** | ||
* Note: [🟡] This code should never be published outside of `@promptbook/cli` | ||
*/ |
@@ -9,2 +9,3 @@ /** | ||
* Note: 11:11 | ||
* Note: [🟡] This code should never be published outside of `@promptbook/cli` | ||
*/ |
@@ -47,2 +47,3 @@ import type { PipelineStringToJsonOptions } from '../../conversion/pipelineStringToJson'; | ||
* TODO: !!!! [🧠] Library precompilation and do not mix markdown and json promptbooks | ||
* Note: [🟢] This code should never be published outside of `@promptbook/node` | ||
*/ |
@@ -8,3 +8,3 @@ import type { Promisable } from 'type-fest'; | ||
* | ||
* @see !!! https://github.com/webgptorg/pipeline#pipeline-collection | ||
* @see @@@ https://github.com/webgptorg/pipeline#pipeline-collection | ||
*/ | ||
@@ -11,0 +11,0 @@ export type PipelineCollection = { |
@@ -17,3 +17,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
* | ||
* @param promptbooks !!! | ||
* @param promptbooks @@@ | ||
* | ||
@@ -20,0 +20,0 @@ * @private Use instead `createCollectionFromJson` |
@@ -12,2 +12,3 @@ import type { CommandParser } from '../_common/types/CommandParser'; | ||
* TODO: [💐] Implement BOILERPLATE command into `pipelineStringToJsonSync` function | ||
* Note: [⚪] This should never be in any released package | ||
*/ |
@@ -31,3 +31,3 @@ import type { WritableDeep } from 'type-fest'; | ||
/** | ||
* TODO: !!!! Annotate | ||
* TODO: @@@ Annotate all | ||
* TODO: [🧠] Maybe put flag if it is for whole `.ptbk.md` file of just one section | ||
@@ -34,0 +34,0 @@ * TODO: [🍧] CommandParser should have applyToPipelineJson method |
@@ -11,5 +11,5 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: !!!!! Implement new features and commands into `promptTemplateParameterJsonToString` | ||
* TODO: !!!! Implement new features and commands into `promptTemplateParameterJsonToString` | ||
* TODO: [🧠] Is there a way to auto-detect missing features in pipelineJsonToString | ||
* TODO: Escape all | ||
*/ |
@@ -29,4 +29,6 @@ import type { PipelineJson } from '../../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: [🧠] !!!!! Validate new things | ||
* TODO: [🧠][🐣] !!!! Validate that all samples match expectations | ||
* TODO: [🧠][🐣] !!!! Validate that knowledge is valid (non-void) | ||
* TODO: [🧠] !!! Validationg not only logic itself but imports around - files and websites and rerefenced pipelines exists | ||
* TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools | ||
*/ | ||
*/ |
@@ -8,3 +8,4 @@ export type CommonExecutionToolsOptions = { | ||
/** | ||
* TODO: [🈁] Maybe add here `isDeterministic` | ||
* TODO: [🧠][💙] Distinct between options passed into ExecutionTools and to ExecutionTools.execute | ||
*/ |
@@ -11,2 +11,3 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `CsvFormatDefinition` implement `extractValues` | ||
* TODO: [🏢] Allow to expect something inside CSV objects and other formats | ||
*/ |
@@ -15,2 +15,3 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `JsonFormatDefinition` implement `extractValues` | ||
* TODO: [🏢] Allow to expect something inside JSON objects and other formats | ||
*/ |
@@ -13,2 +13,3 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `ListFormatDefinition` implement `extractValues` | ||
* TODO: [🏢] Allow to expect something inside each item of list and other formats | ||
*/ |
@@ -15,2 +15,3 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `XmlFormatDefinition` implement `extractValues` | ||
* TODO: [🏢] Allow to expect something inside XML and other formats | ||
*/ |
@@ -18,1 +18,4 @@ import type { CommonExecutionToolsOptions } from '../../../execution/CommonExecutionToolsOptions'; | ||
} | ||
/** | ||
* Note: [🔵] This code should never be published outside of `@promptbook/browser` | ||
*/ |
@@ -8,6 +8,6 @@ import type { PrepareOptions } from '../../../prepare/PrepareOptions'; | ||
* @see https://github.com/webgptorg/promptbook/discussions/41 | ||
* @private within the package | ||
*/ | ||
export declare function prepareKnowledgePieces(knowledgeSources: Array<KnowledgeSourceJson>, options: PrepareOptions): Promise<Array<Omit<KnowledgePiecePreparedJson, 'preparationIds'>>>; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
* TODO: [🧊] In future one preparation can take data from previous preparation and save tokens and time | ||
@@ -14,0 +14,0 @@ * Put `knowledgePieces` into `PrepareKnowledgeOptions` |
@@ -9,4 +9,5 @@ import type { PrepareOptions } from '../../../prepare/PrepareOptions'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/markdown` | ||
* TODO: [🪂] Do it in parallel 11:11 | ||
* Note: No need to aggregate usage here, it is done by intercepting the llmTools | ||
*/ |
@@ -9,2 +9,3 @@ import type { PrepareOptions } from '../../../prepare/PrepareOptions'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/pdf` | ||
* TODO: [🧺] In future, content can be alse File or Blob BUT for now for wider compatibility its only base64 | ||
@@ -11,0 +12,0 @@ * @see https://stackoverflow.com/questions/14653349/node-js-cant-create-blobs |
@@ -18,3 +18,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* Note: [🤖] Add models of new variant | ||
* TODO: !!!! Add embedding models OR Anthropic has only chat+completion models? | ||
* TODO: [🧠] !!! Add embedding models OR Anthropic has only chat+completion models? | ||
* TODO: [🧠] Some mechanism to propagate unsureness | ||
@@ -21,0 +21,0 @@ * TODO: [🧠][👮♀️] Put here more info like description, isVision, trainingDateCutoff, languages, strengths ( Top-level performance, intelligence, fluency, and understanding), contextWindow,... |
@@ -48,2 +48,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: Maybe make custom OpenaiError | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -47,2 +47,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: Maybe make custom AzureOpenaiError | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -13,1 +13,4 @@ import type { LlmExecutionTools } from '../../execution/LlmExecutionTools'; | ||
} | ||
/** | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -10,3 +10,3 @@ import type { OpenAiExecutionToolsOptions } from '../openai/OpenAiExecutionToolsOptions'; | ||
/** | ||
* TODO: !!! Use or remove | ||
* TODO: !! Use or remove | ||
*/ |
@@ -32,4 +32,4 @@ import type { CommonExecutionToolsOptions } from '../../execution/CommonExecutionToolsOptions'; | ||
/** | ||
* TODO: !!! Use here `seed` | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
* TODO: Allow in spaceTrim: nesting with > ${block(prompt.request)}, same as replace params | ||
*/ |
@@ -37,3 +37,3 @@ import type { CommonExecutionToolsOptions } from '../../execution/CommonExecutionToolsOptions'; | ||
/** | ||
* TODO: !!! Use here `seed` | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -7,3 +7,3 @@ /** | ||
* | ||
* @private within the package, used only as internal helper for `OPENAI_MODELS` and `computeUsage` | ||
* @private within the repository, used only as internal helper for `OPENAI_MODELS` and `computeUsage` | ||
*/ | ||
@@ -14,5 +14,5 @@ type string_model_price = `$${number}.${number} / ${number}M tokens`; | ||
* | ||
* @private within the package, used only as internal helper for `OPENAI_MODELS` | ||
* @private within the repository, used only as internal helper for `OPENAI_MODELS` | ||
*/ | ||
export declare function computeUsage(value: string_model_price): number; | ||
export {}; |
@@ -65,2 +65,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: Maybe make custom OpenaiError | ||
* TODO: [🧠][🈁] Maybe use `isDeterministic` from options | ||
*/ |
@@ -8,4 +8,9 @@ import type { PrepareOptions } from '../prepare/PrepareOptions'; | ||
* @see https://github.com/webgptorg/promptbook/discussions/22 | ||
* @private within the package | ||
*/ | ||
export declare function preparePersona(personaDescription: string_persona_description, options: PrepareOptions): Promise<PersonaPreparedJson['modelRequirements']>; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
* TODO: [🏢] !! Check validity of `modelName` in pipeline | ||
* TODO: [🏢] !! Check validity of `systemMessage` in pipeline | ||
* TODO: [🏢] !! Check validity of `temperature` in pipeline | ||
*/ |
@@ -11,7 +11,8 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
* TODO: Write tests for `preparePipeline` | ||
* TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch | ||
* TODO: [🧊] In future one preparation can take data from previous preparation and save tokens and time | ||
* TODO: !!!!! Use here countTotalUsage | ||
* TODO: [🎐] !!!! Use here countTotalUsage | ||
* TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools | ||
*/ |
@@ -7,3 +7,4 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
* TODO: Write tests for `preparePipeline` | ||
*/ |
@@ -23,3 +23,4 @@ import { Promisable } from 'type-fest'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/types` | ||
* TODO: [🧠][🛫] Constrain `TItem` to JSON-serializable objects only | ||
*/ |
export {}; | ||
/** | ||
* TODO: !!!!! Check that this files is not exported into build | ||
* Note: [⚪] This should never be in any released package | ||
* TODO: Is this a good pattern to do type testing? | ||
*/ |
@@ -27,3 +27,5 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/node` | ||
* TODO: [🌗] Maybe some checkers, not all valid JSONs are desired and valid values | ||
* Note: [🟢] This code should never be published outside of `@promptbook/node` | ||
*/ |
@@ -11,1 +11,4 @@ import type { string_folder_path } from '../../types/typeAliases'; | ||
}; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/types` | ||
*/ |
@@ -7,3 +7,4 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
/** | ||
* Export through `@promptbook/browser` | ||
* TODO: [🔼] !!! Export via `@promptbook/browser` | ||
* Note: [🔵] This code should never be published outside of `@promptbook/browser` | ||
*/ |
@@ -7,3 +7,4 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
/** | ||
* Export through `@promptbook/browser` | ||
* TODO: [🔼] !!! Export via `@promptbook/browser` | ||
* Note: [🔵] This code should never be published outside of `@promptbook/browser` | ||
*/ |
@@ -32,1 +32,4 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
} | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
*/ |
@@ -9,5 +9,4 @@ import type { PromptbookStorage } from '../_common/PromptbookStorage'; | ||
/** | ||
* TODO: !!!! Export through `@promptbook/browser` | ||
* TODO: [🧠] Should this be named `makePromptbookStorageFromWebStorage` vs `createPromptbookStorageFromWebStorage` | ||
* TODO: [🌗] Maybe some checkers, not all valid JSONs are desired and valid values | ||
*/ |
@@ -24,1 +24,4 @@ import { Promisable } from 'type-fest'; | ||
} | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/core` | ||
*/ |
@@ -5,4 +5,4 @@ import type { FromtoItems } from '../../utils/FromtoItems'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
export declare function countWorkingDuration(items: FromtoItems): number; |
@@ -57,3 +57,3 @@ import type { number_model_temperature } from './typeAliases'; | ||
/** | ||
* TODO: [🈁] `seed` should maybe be somewhere else (not in `ModelRequirements`) (simmilar that `user` identification is not here) | ||
* TODO: [🧠][🈁] `seed` should maybe be somewhere else (not in `ModelRequirements`) (simmilar that `user` identification is not here) | ||
* TODO: [🧠][💱] Add more model options: `stop_token`, `logit_bias`, `logprobs` (`top_logprobs`), `top_k`, `top_p`, `presence_penalty`, `frequency_penalty`, `bestOf`, `logitBias`, `logitBiasType`,... | ||
@@ -60,0 +60,0 @@ * [💱] Probbably keep using just `temperature` in Promptbook (not `top_k` and `top_p`) |
@@ -17,3 +17,3 @@ import type { string_file_path } from '../typeAliases'; | ||
* | ||
* @see !!! https://github.com/webgptorg/promptbook#promptbook | ||
* @see @@@ https://github.com/webgptorg/promptbook#promptbook | ||
*/ | ||
@@ -20,0 +20,0 @@ export type PipelineJson = { |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @see !!! https://github.com/webgptorg/promptbook#promptbook | ||
* @see @@@ https://github.com/webgptorg/promptbook#promptbook | ||
*/ | ||
@@ -8,0 +8,0 @@ export type PipelineString = string & { |
@@ -8,3 +8,3 @@ import type { string_char_emoji } from '../types/typeAliasEmoji'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
* @deprecated Use /\p{Extended_Pictographic}/ instead | ||
@@ -17,3 +17,3 @@ */ | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
* @deprecated Use /\p{Extended_Pictographic}/ instead | ||
@@ -20,0 +20,0 @@ */ |
/** | ||
* Format either small or big number | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
export declare function formatNumber(value: number): string; |
@@ -13,1 +13,4 @@ /** | ||
export declare const isRunningInWebWorker: Function; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/utils` | ||
*/ |
@@ -6,3 +6,3 @@ import type { string_markdown } from '../../types/typeAliases'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
@@ -9,0 +9,0 @@ export declare function addAutoGeneratedSection(content: string_markdown, options: { |
@@ -31,3 +31,3 @@ import type { string_markdown } from '../../types/typeAliases'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
@@ -34,0 +34,0 @@ export declare function createMarkdownChart(options: CreateMarkdownChartOptions): string_markdown; |
@@ -6,4 +6,4 @@ import type { string_markdown } from '../../types/typeAliases'; | ||
* | ||
* @private within the package | ||
* @private within the repository | ||
*/ | ||
export declare function createMarkdownTable(table: Array<Array<string_markdown_text>>): string_markdown; |
/** | ||
* Formatting helper to put void to keep longer version of prettier | ||
* | ||
* @private within the repository | ||
*/ | ||
export type ___ = never; |
@@ -9,3 +9,4 @@ /** | ||
* @returns the same values | ||
* @private within the repository | ||
*/ | ||
export declare function just<T>(value?: T): T; |
@@ -10,3 +10,4 @@ import type { really_any } from './really_any'; | ||
* @returns void | ||
* @private within the repository | ||
*/ | ||
export declare function notUsing(...value: Array<really_any>): void; |
/** | ||
* Organizational helper to mark a place where to really use any | ||
* | ||
* @private within the repository | ||
*/ | ||
export type really_any = any; |
@@ -10,3 +10,4 @@ import type { really_any } from './really_any'; | ||
* @returns void | ||
* @private within the repository | ||
*/ | ||
export declare function TODO_USE(...value: Array<really_any>): void; |
/** | ||
* Organizational helper to better mark the place where the type is missing | ||
* | ||
* @private within the repository | ||
*/ | ||
export type TODO = any; |
@@ -7,1 +7,4 @@ import type { string_semantic_version } from './types/typeAliases'; | ||
export type string_promptbook_version = string_semantic_version; | ||
/** | ||
* TODO: [🔼] !!! Export via `@promptbook/code` | ||
*/ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
715293
804
13511