@promptbook/remote-client
Advanced tools
Comparing version 0.69.0-8 to 0.69.0-10
@@ -8,3 +8,3 @@ import { io } from 'socket.io-client'; | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.69.0-7'; | ||
var PROMPTBOOK_VERSION = '0.69.0-9'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -11,0 +11,0 @@ |
@@ -48,2 +48,4 @@ import { PROMPTBOOK_VERSION } from '../version'; | ||
import { usageToWorktime } from '../execution/utils/usageToWorktime'; | ||
import { CsvFormatDefinition } from '../formats/csv/CsvFormatDefinition'; | ||
import { TextFormatDefinition } from '../formats/text/TextFormatDefinition'; | ||
import { CallbackInterfaceTools } from '../knowledge/dialogs/callback/CallbackInterfaceTools'; | ||
@@ -122,2 +124,4 @@ import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions'; | ||
export { usageToWorktime }; | ||
export { CsvFormatDefinition }; | ||
export { TextFormatDefinition }; | ||
export { CallbackInterfaceTools }; | ||
@@ -124,0 +128,0 @@ export type { CallbackInterfaceToolsOptions }; |
@@ -38,2 +38,3 @@ import type { PipelineCollection } from '../collection/PipelineCollection'; | ||
import type { UserInterfaceToolsPromptDialogOptions } from '../execution/UserInterfaceTools'; | ||
import type { FormatSubvalueDefinition } from '../formats/_common/FormatSubvalueDefinition'; | ||
import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions'; | ||
@@ -267,2 +268,3 @@ import type { LlmToolsConfiguration } from '../llm-providers/_common/LlmToolsConfiguration'; | ||
export type { UserInterfaceToolsPromptDialogOptions }; | ||
export type { FormatSubvalueDefinition }; | ||
export type { CallbackInterfaceToolsOptions }; | ||
@@ -269,0 +271,0 @@ export type { LlmToolsConfiguration }; |
@@ -23,3 +23,2 @@ import { PROMPTBOOK_VERSION } from '../version'; | ||
import { CountUtils } from '../utils/expectation-counters/index'; | ||
import { extractParameterNames } from '../utils/extractParameterNames'; | ||
import { capitalize } from '../utils/normalization/capitalize'; | ||
@@ -47,2 +46,4 @@ import { decapitalize } from '../utils/normalization/decapitalize'; | ||
import { searchKeywords } from '../utils/normalization/searchKeywords'; | ||
import { extractParameterNames } from '../utils/parameters/extractParameterNames'; | ||
import { replaceParameters } from '../utils/parameters/replaceParameters'; | ||
import { parseNumber } from '../utils/parseNumber'; | ||
@@ -52,3 +53,2 @@ import { $randomSeed } from '../utils/random/$randomSeed'; | ||
import { removeQuotes } from '../utils/removeQuotes'; | ||
import { replaceParameters } from '../utils/replaceParameters'; | ||
import { $deepFreeze } from '../utils/serialization/$deepFreeze'; | ||
@@ -97,3 +97,2 @@ import { checkSerializableAsJson } from '../utils/serialization/checkSerializableAsJson'; | ||
export { CountUtils }; | ||
export { extractParameterNames }; | ||
export { capitalize }; | ||
@@ -121,2 +120,4 @@ export { decapitalize }; | ||
export { searchKeywords }; | ||
export { extractParameterNames }; | ||
export { replaceParameters }; | ||
export { parseNumber }; | ||
@@ -126,3 +127,2 @@ export { $randomSeed }; | ||
export { removeQuotes }; | ||
export { replaceParameters }; | ||
export { $deepFreeze }; | ||
@@ -129,0 +129,0 @@ export { checkSerializableAsJson }; |
@@ -159,3 +159,3 @@ import type { WritableDeep } from 'type-fest'; | ||
* @example 'promptbook version 0.62.0' | ||
* @example 'FOREACH List Line `{customers}` -> `{customer}`' | ||
* @example 'FOREACH Text Line `{customers}` -> `{customer}`' | ||
*/ | ||
@@ -162,0 +162,0 @@ readonly raw: string_markdown_text; |
export {}; | ||
/** | ||
* TODO: [🧠][🦥] Better (less confusing) name for "cell" / "subvalue" / "subparameter" | ||
*/ |
@@ -13,4 +13,5 @@ import type { PipelineTemplateCommandParser } from '../_common/types/CommandParser'; | ||
/** | ||
* TODO: !!!!!! Comment console logs | ||
* TODO: !!!!!! Remove console logs | ||
* TODO: [🧠][🦥] Better (less confusing) name for "cell" / "subvalue" / "subparameter" | ||
* TODO: [🍭] !!!!!! Make .ptbk.md file with examples of the FOREACH command and also with wrong parsing and logic | ||
*/ |
@@ -22,6 +22,6 @@ import type { string_parameter_name } from '../../types/typeAliases'; | ||
*/ | ||
readonly subparameterName: string_parameter_name; | ||
readonly subparameterNames: Array<string_parameter_name>; | ||
}; | ||
/** | ||
* TODO: [🧠] Betetr name for `parameterName` and `subparameterName` | ||
* TODO: [🧠][🦥] Better (less confusing) name for "cell" / "subvalue" / "subparameter" | ||
*/ |
@@ -23,2 +23,3 @@ import type { PipelineJson } from '../../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: !!!!!! [🧞♀️] Do not allow joker + foreach | ||
* TODO: [🧠] Work with promptbookVersion | ||
@@ -25,0 +26,0 @@ * TODO: Use here some json-schema, Zod or something similar and change it to: |
@@ -16,1 +16,7 @@ import type { TODO_any } from '../../utils/organization/TODO_any'; | ||
export {}; | ||
/** | ||
* TODO: !!!!!! Make pipelineIdentification more precise | ||
* TODO: !!!!!! How FOREACH execution looks in the report | ||
* TODO: [🧠][🦥] Better (less confusing) name for "cell" / "subvalue" / "subparameter" | ||
* TODO: [] | ||
*/ |
@@ -8,6 +8,4 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
import type { string_parameter_name } from '../../types/typeAliases'; | ||
import type { TODO_any } from '../../utils/organization/TODO_any'; | ||
import type { TODO_string } from '../../utils/organization/TODO_string'; | ||
import type { ExecutionTools } from '../ExecutionTools'; | ||
import type { $OngoingTemplateResult } from './$OngoingTemplateResult'; | ||
import type { CreatePipelineExecutorSettings } from './00-CreatePipelineExecutorSettings'; | ||
@@ -23,6 +21,2 @@ /** | ||
*/ | ||
readonly $ongoingTemplateResult: $OngoingTemplateResult; | ||
/** | ||
* @@@ | ||
*/ | ||
readonly jokerParameterNames: Readonly<Array<string_parameter_name>>; | ||
@@ -79,5 +73,5 @@ /** | ||
*/ | ||
export declare function executeAttempts(options: ExecuteAttemptsOptions): Promise<TODO_any>; | ||
export declare function executeAttempts(options: ExecuteAttemptsOptions): Promise<TODO_string>; | ||
/** | ||
* TODO: Break into smaller functions | ||
*/ |
@@ -27,2 +27,4 @@ import type { Expectations } from '../../types/PipelineJson/Expectations'; | ||
* TODO: [💝] Unite object for expecting amount and format | ||
* TODO: [🧠][🤠] This should be part of `TextFormatDefinition` | ||
* Note: [💝] and [🤠] are interconnected together | ||
*/ |
@@ -10,9 +10,8 @@ import type { string_markdown } from '../../types/typeAliases'; | ||
/** | ||
* TODO: Use "$1" not "1 USD" | ||
* TODO: Use markdown formatting like "Cost approximately **$1**" | ||
* TODO: Report in minutes, seconds, days NOT 0.1 hours | ||
* TODO: [🍓][🧞♂️] Use "$1" not "1 USD" | ||
* TODO: [🍓][🧞♂️] Use markdown formatting like "Cost approximately **$1**" | ||
* TODO: [🍓][🧞♂️] Report in minutes, seconds, days NOT 0.1 hours | ||
* TODO: [🧠] Maybe make from `uncertainNumberToHuman` separate exported utility | ||
* TODO: When negligible usage, report "Negligible" or just don't report it | ||
* TODO: [🧠] Maybe use "~" instead of "approximately" | ||
* TODO: [🏛] Maybe make some markdown builder | ||
*/ |
@@ -0,3 +1,5 @@ | ||
import type { string_SCREAMING_CASE } from '../../utils/normalization/normalizeTo_SCREAMING_CASE'; | ||
import type { string_mime_type } from '../../types/typeAliases'; | ||
import type { string_name } from '../../types/typeAliases'; | ||
import type { FormatSubvalueDefinition } from './FormatSubvalueDefinition'; | ||
/** | ||
@@ -9,3 +11,3 @@ * A format definition is a set of functions that define how to validate, heal and convert response from LLM | ||
*/ | ||
export type FormatDefinition<TValue extends TPartialValue, TPartialValue extends string, TSchema extends object> = { | ||
export type FormatDefinition<TValue extends TPartialValue, TPartialValue extends string, TSchema> = { | ||
/** | ||
@@ -16,7 +18,7 @@ * The name of the format used in .ptbk.md files | ||
*/ | ||
readonly name: string_name; | ||
readonly formatName: string_name & string_SCREAMING_CASE; | ||
/** | ||
* Aliases for the name | ||
* Aliases for the `formatName` | ||
*/ | ||
readonly aliases?: Array<string_name>; | ||
readonly aliases?: Array<string_name & string_SCREAMING_CASE>; | ||
/** | ||
@@ -56,13 +58,8 @@ * The mime type of the format (if any) | ||
/** | ||
* Parses just the values and removes structural information | ||
* | ||
* Note: This is useful when you want to combine format expectations with counting words, characters,... | ||
* | ||
* @param value The value to check, for example "{\"name\": "John Smith"}" | ||
* @param schema Optional schema | ||
* @example "{\"name\": "John Smith"}" -> ["John Smith"] | ||
* @@@ | ||
*/ | ||
extractValues(value: string, schema?: TSchema): Array<string>; | ||
readonly subvalueDefinitions: Array<FormatSubvalueDefinition<TValue>>; | ||
}; | ||
/** | ||
* TODO: [🧠][🦥] Better (less confusing) name for "cell" / "subvalue" / "subparameter" | ||
* TODO: [♏] Add some prepare hook to modify prompt according to the format | ||
@@ -69,0 +66,0 @@ * TODO: [🍓]`name` and `aliases` should be UPPERCASE only and interpreted as case-insensitive (via normalization) |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare const FORMAT_DEFINITIONS: import("./_common/FormatDefinition").FormatDefinition<string, string, object>[]; | ||
export declare const FORMAT_DEFINITIONS: readonly [import("./_common/FormatDefinition").FormatDefinition<string, string, object>, import("./_common/FormatDefinition").FormatDefinition<string, string, object>, import("./_common/FormatDefinition").FormatDefinition<string, string, never>, import("./_common/FormatDefinition").FormatDefinition<string, string, object>]; |
@@ -16,4 +16,4 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `JsonFormatDefinition` implement `heal | ||
* TODO: [🍓] In `JsonFormatDefinition` implement `extractValues` | ||
* TODO: [🍓] In `JsonFormatDefinition` implement `subvalueDefinitions` | ||
* TODO: [🏢] Allow to expect something inside JSON objects and other formats | ||
*/ |
@@ -16,4 +16,4 @@ import type { FormatDefinition } from '../_common/FormatDefinition'; | ||
* TODO: [🍓] In `XmlFormatDefinition` implement `heal | ||
* TODO: [🍓] In `XmlFormatDefinition` implement `extractValues` | ||
* TODO: [🍓] In `XmlFormatDefinition` implement `subvalueDefinitions` | ||
* TODO: [🏢] Allow to expect something inside XML and other formats | ||
*/ |
@@ -9,1 +9,4 @@ import type { ExpectationAmount } from '../../types/PipelineJson/Expectations'; | ||
export declare const CountUtils: Record<ExpectationUnit, (text: string) => ExpectationAmount>; | ||
/** | ||
* TODO: [🧠][🤠] This should be probbably as part of `TextFormatDefinition` | ||
*/ |
{ | ||
"name": "@promptbook/remote-client", | ||
"version": "0.69.0-8", | ||
"version": "0.69.0-10", | ||
"description": "Supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.69.0-8" | ||
"@promptbook/core": "0.69.0-10" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
@@ -15,3 +15,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.69.0-7'; | ||
var PROMPTBOOK_VERSION = '0.69.0-9'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -18,0 +18,0 @@ |
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
528261
503
10369