Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

@promptbook/utils

Package Overview
Dependencies
Maintainers
0
Versions
470
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/utils - npm Package Compare versions

Comparing version 0.72.0-0 to 0.72.0-1

esm/typings/src/commands/FOREACH/ForeachJson.d.ts

4

esm/typings/src/_packages/cli.index.d.ts

@@ -8,3 +8,5 @@ import { PROMPTBOOK_VERSION } from '../version';

import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
import { _OpenAiAssistantMetadataRegistration } from '../llm-providers/openai/register-configuration';
import { _OpenAiRegistration } from '../llm-providers/openai/register-constructor';
import { _OpenAiAssistantRegistration } from '../llm-providers/openai/register-constructor';
export { PROMPTBOOK_VERSION };

@@ -17,2 +19,4 @@ export { _CLI };

export { _OpenAiMetadataRegistration };
export { _OpenAiAssistantMetadataRegistration };
export { _OpenAiRegistration };
export { _OpenAiAssistantRegistration };

@@ -20,2 +20,3 @@ import { PROMPTBOOK_VERSION } from '../version';

import { DEFAULT_REMOTE_URL_PATH } from '../config';
import { DEFAULT_CSV_SETTINGS } from '../config';
import { IS_VERBOSE } from '../config';

@@ -42,3 +43,3 @@ import { pipelineJsonToString } from '../conversion/pipelineJsonToString';

import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
import { createPipelineExecutor } from '../execution/createPipelineExecutor';
import { createPipelineExecutor } from '../execution/createPipelineExecutor/00-createPipelineExecutor';
import { embeddingVectorToString } from '../execution/embeddingVectorToString';

@@ -51,2 +52,5 @@ import { addUsage } from '../execution/utils/addUsage';

import { usageToWorktime } from '../execution/utils/usageToWorktime';
import { CsvFormatDefinition } from '../formats/csv/CsvFormatDefinition';
import { MANDATORY_CSV_SETTINGS } from '../formats/csv/CsvSettings';
import { TextFormatDefinition } from '../formats/text/TextFormatDefinition';
import { CallbackInterfaceTools } from '../knowledge/dialogs/callback/CallbackInterfaceTools';

@@ -66,2 +70,3 @@ import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions';

import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
import { _OpenAiAssistantMetadataRegistration } from '../llm-providers/openai/register-configuration';
import { preparePersona } from '../personas/preparePersona';

@@ -98,2 +103,3 @@ import { isPipelinePrepared } from '../prepare/isPipelinePrepared';

export { DEFAULT_REMOTE_URL_PATH };
export { DEFAULT_CSV_SETTINGS };
export { IS_VERBOSE };

@@ -128,2 +134,5 @@ export { pipelineJsonToString };

export { usageToWorktime };
export { CsvFormatDefinition };
export { MANDATORY_CSV_SETTINGS };
export { TextFormatDefinition };
export { CallbackInterfaceTools };

@@ -143,2 +152,3 @@ export type { CallbackInterfaceToolsOptions };

export { _OpenAiMetadataRegistration };
export { _OpenAiAssistantMetadataRegistration };
export { preparePersona };

@@ -145,0 +155,0 @@ export { isPipelinePrepared };

import { PROMPTBOOK_VERSION } from '../version';
import { createOpenAiAssistantExecutionTools } from '../llm-providers/openai/createOpenAiAssistantExecutionTools';
import { createOpenAiExecutionTools } from '../llm-providers/openai/createOpenAiExecutionTools';

@@ -9,3 +10,5 @@ import { OPENAI_MODELS } from '../llm-providers/openai/openai-models';

import { _OpenAiRegistration } from '../llm-providers/openai/register-constructor';
import { _OpenAiAssistantRegistration } from '../llm-providers/openai/register-constructor';
export { PROMPTBOOK_VERSION };
export { createOpenAiAssistantExecutionTools };
export { createOpenAiExecutionTools };

@@ -18,1 +21,2 @@ export { OPENAI_MODELS };

export { _OpenAiRegistration };
export { _OpenAiAssistantRegistration };

@@ -10,2 +10,3 @@ import type { PipelineCollection } from '../collection/PipelineCollection';

import type { ExpectCommand } from '../commands/EXPECT/ExpectCommand';
import type { ForeachJson } from '../commands/FOREACH/ForeachJson';
import type { FormatCommand } from '../commands/FORMAT/FormatCommand';

@@ -19,2 +20,4 @@ import type { TemplateType } from '../commands/TEMPLATE/TemplateTypes';

import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
import type { CreatePipelineExecutorOptions } from '../execution/createPipelineExecutor/00-CreatePipelineExecutorOptions';
import type { CreatePipelineExecutorSettings } from '../execution/createPipelineExecutor/00-CreatePipelineExecutorSettings';
import type { EmbeddingVector } from '../execution/EmbeddingVector';

@@ -37,2 +40,4 @@ import type { ExecutionTools } from '../execution/ExecutionTools';

import type { UserInterfaceToolsPromptDialogOptions } from '../execution/UserInterfaceTools';
import type { FormatSubvalueDefinition } from '../formats/_common/FormatSubvalueDefinition';
import type { CsvSettings } from '../formats/csv/CsvSettings';
import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions';

@@ -227,2 +232,3 @@ import type { LlmToolsConfiguration } from '../llm-providers/_common/LlmToolsConfiguration';

import type { string_snake_case } from '../utils/normalization/normalizeTo_snake_case';
import type { empty_object } from '../utils/organization/empty_object';
import type { really_any } from '../utils/organization/really_any';

@@ -240,2 +246,3 @@ import type { TODO_any } from '../utils/organization/TODO_any';

export type { ExpectCommand };
export type { ForeachJson };
export type { FormatCommand };

@@ -249,2 +256,4 @@ export type { TemplateType };

export type { CommonExecutionToolsOptions };
export type { CreatePipelineExecutorOptions };
export type { CreatePipelineExecutorSettings };
export type { EmbeddingVector };

@@ -267,2 +276,4 @@ export type { ExecutionTools };

export type { UserInterfaceToolsPromptDialogOptions };
export type { FormatSubvalueDefinition };
export type { CsvSettings };
export type { CallbackInterfaceToolsOptions };

@@ -457,4 +468,5 @@ export type { LlmToolsConfiguration };

export type { string_snake_case };
export type { empty_object };
export type { really_any };
export type { TODO_any };
export type { string_promptbook_version };

8

esm/typings/src/_packages/utils.index.d.ts

@@ -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 };

@@ -150,2 +150,5 @@ import type { WritableDeep } from 'type-fest';

* @@@
*
* @example 'PIPELINE_HEAD'
* @example 'PIPELINE_TEMPLATE'
*/

@@ -155,2 +158,5 @@ readonly usagePlace: CommandUsagePlace;

* @@@
*
* @example 'promptbook version 0.62.0'
* @example 'FOREACH Text Line `{customers}` -> `{customer}`'
*/

@@ -160,2 +166,5 @@ readonly raw: string_markdown_text;

* @@@
*
* @example '0.62.0'
* @example 'List Line `{customers}` -> `{customer}`'
*/

@@ -165,2 +174,5 @@ readonly rawArgs: string_markdown_text;

* @@@
*
* @example 'PROMPTBOOK_VERSION_0_62_0'
* @example 'FOREACH_LIST_LINE_CUSTOMERS_CUSTOMER'
*/

@@ -170,4 +182,7 @@ readonly normalized: string_name & string_SCREAMING_CASE;

* @@@
*
* @example [ '0.62.0' ]
* @example [ 'List', 'Line', '{customers}', '', '{customer}' ]
*/
readonly args: Array<string_name & string_SCREAMING_CASE>;
readonly args: Array<string_name>;
};

@@ -174,0 +189,0 @@ /**

@@ -0,3 +1,4 @@

import type { ForeachJson } from './ForeachJson';
/**
* Parsed FOREACH command <- Write [๐Ÿญ]
* Parsed FOREACH command which is used to iterate over a table of values
*

@@ -9,2 +10,2 @@ * @see ./foreachCommandParser.ts for more details

readonly type: 'FOREACH';
};
} & ForeachJson;

@@ -13,3 +13,3 @@ import type { PipelineTemplateCommandParser } from '../_common/types/CommandParser';

/**
* TODO: [๐Ÿญ] Make .ptbk.md file with examples of the FOREACH command and also with wrong parsing and logic
* TODO: [๐Ÿญ] Make .ptbk.md file with examples of the FOREACH with wrong parsing and logic
*/

@@ -0,1 +1,2 @@

import type { CsvSettings } from './formats/csv/CsvSettings';
/**

@@ -145,2 +146,8 @@ * Warning message for the generated sections and files files

*/
export declare const DEFAULT_CSV_SETTINGS: CsvSettings;
/**
* @@@
*
* @public exported from `@promptbook/core`
*/
export declare const IS_VERBOSE = false;

@@ -152,5 +159,11 @@ /**

*/
export declare const DEBUG_ALLOW_PAYED_TESTING: boolean;
export declare const IS_PIPELINE_LOGIC_VALIDATED: boolean;
/**
* @@@
*
* @private within the repository
*/
export declare const IS_COST_PREVENTED: boolean;
/**
* TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteUrl and path into single value
*/

@@ -25,4 +25,7 @@ import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';

/**
* TODO: !!!!! FOREACH in mermaid graph
* TODO: !!!!! Knowledge in mermaid graph
* TODO: !!!!! Personas in mermaid graph
* TODO: Maybe use some Mermaid package instead of string templating
* TODO: [๐Ÿ•Œ] When more than 2 functionalities, split into separate functions
*/

@@ -0,1 +1,2 @@

import type { ReadonlyDeep } from 'type-fest';
import type { TemplateJson } from '../../types/PipelineJson/TemplateJson';

@@ -11,5 +12,5 @@ import type { string_parameter_name } from '../../types/typeAliases';

*/
export declare function extractParameterNamesFromTemplate(template: Pick<TemplateJson, 'title' | 'description' | 'templateType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
export declare function extractParameterNamesFromTemplate(template: ReadonlyDeep<Pick<TemplateJson, 'title' | 'description' | 'templateType' | 'content' | 'preparedContent' | 'jokerParameterNames' | 'foreach'>>): Set<string_parameter_name>;
/**
* TODO: [๐Ÿ”ฃ] If script require contentLanguage
*/

@@ -19,2 +19,7 @@ import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';

/**
* @private internal function for `validatePipeline`
*/
export declare function validatePipelineCore(pipeline: PipelineJson): void;
/**
* TODO: !!!!! [๐Ÿงžโ€โ™€๏ธ] Do not allow joker + foreach
* TODO: [๐Ÿง ] Work with promptbookVersion

@@ -21,0 +26,0 @@ * TODO: Use here some json-schema, Zod or something similar and change it to:

@@ -0,5 +1,6 @@

import { ReadonlyDeep } from 'type-fest';
import type { ErrorJson } from '../errors/utils/ErrorJson';
import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
import type { Parameters } from '../types/typeAliases';
import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
import type { ErrorJson } from '../errors/utils/ErrorJson';
import type { PromptResultUsage } from './PromptResultUsage';

@@ -17,3 +18,3 @@ /**

*/
readonly outputParameters: Parameters;
readonly outputParameters: Readonly<Parameters>;
/**

@@ -26,15 +27,15 @@ * Whether the execution was successful, details are aviable in `executionReport`

*/
readonly usage: PromptResultUsage;
readonly usage: ReadonlyDeep<PromptResultUsage>;
/**
* Errors that occured during the execution, details are aviable in `executionReport`
*/
readonly errors: Array<ErrorJson>;
readonly errors: ReadonlyDeep<Array<ErrorJson>>;
/**
* Warnings that occured during the execution, details are aviable in `executionReport`
*/
readonly warnings: Array<ErrorJson>;
readonly warnings: ReadonlyDeep<Array<ErrorJson>>;
/**
* The report of the execution with all details
*/
readonly executionReport: ExecutionReportJson;
readonly executionReport: ReadonlyDeep<ExecutionReportJson>;
/**

@@ -46,3 +47,3 @@ * The prepared pipeline that was used for the execution

*/
readonly preparedPipeline: PipelineJson;
readonly preparedPipeline: ReadonlyDeep<PipelineJson>;
};

@@ -49,0 +50,0 @@ /**

@@ -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
*/
import type { string_mime_type } from '../../types/typeAliases';
import type { string_name } from '../../types/typeAliases';
import type { string_SCREAMING_CASE } from '../../utils/normalization/normalizeTo_SCREAMING_CASE';
import type { empty_object } from '../../utils/organization/empty_object';
import type { FormatSubvalueDefinition } from './FormatSubvalueDefinition';
/**
* A format definition is a set of functions that define how to validate, heal and convert response from LLM
*
* @@@ Describe setting vs schema
*
* @see https://github.com/webgptorg/promptbook/discussions/36
* @private still in development [๐Ÿข]
*/
export type FormatDefinition<TValue extends TPartialValue, TPartialValue extends string, TSchema extends object> = {
export type FormatDefinition<TValue extends TPartialValue, TPartialValue extends string, TSettings extends empty_object, TSchema extends empty_object> = {
/**

@@ -15,7 +20,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>;
/**

@@ -33,3 +38,3 @@ * The mime type of the format (if any)

*/
isValid(value: string, schema?: TSchema): value is TValue;
isValid(value: string, settings?: TSettings, schema?: TSchema): value is TValue;
/**

@@ -43,3 +48,3 @@ * Check if a first part of a value is valid

*/
canBeValid(partialValue: string, schema?: TSchema): partialValue is TPartialValue;
canBeValid(partialValue: string, settings?: TSettings, schema?: TSchema): partialValue is TPartialValue;
/**

@@ -55,13 +60,7 @@ * Heal a value to make it valid if possible

*/
heal(value: string, scheme?: TSchema): TValue;
heal(value: string, settings?: TSettings, scheme?: TSchema): TValue;
/**
* 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, TSettings>>;
};

@@ -68,0 +67,0 @@ /**

@@ -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, any, any>, import("./_common/FormatDefinition").FormatDefinition<string, string, any, any>, import("./_common/FormatDefinition").FormatDefinition<string, string, any, any>, import("./_common/FormatDefinition").FormatDefinition<string, string, import("./csv/CsvSettings").CsvSettings, any>];

@@ -0,1 +1,2 @@

import type { TODO_any } from '../../utils/organization/TODO_any';
import type { FormatDefinition } from '../_common/FormatDefinition';

@@ -7,7 +8,7 @@ /**

*/
export declare const JsonFormatDefinition: FormatDefinition<string, string, object>;
export declare const JsonFormatDefinition: FormatDefinition<string, string, TODO_any, TODO_any>;
/**
* TODO: [๐Ÿง ] Maybe propper instance of object
* TODO: [0] Make string_serialized_json
* TODO: [1] Make type for JSON Schema
* TODO: [1] Make type for JSON Settings and Schema
* TODO: [๐Ÿง ] What to use for validating JSONs - JSON Schema, ZoD, typescript types/interfaces,...?

@@ -17,4 +18,4 @@ * TODO: [๐Ÿ“] In `JsonFormatDefinition` implement simple `isValid`

* 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
*/

@@ -0,1 +1,2 @@

import type { TODO_any } from '../../utils/organization/TODO_any';
import type { FormatDefinition } from '../_common/FormatDefinition';

@@ -7,7 +8,7 @@ /**

*/
export declare const XmlFormatDefinition: FormatDefinition<string, string, object>;
export declare const XmlFormatDefinition: FormatDefinition<string, string, TODO_any, TODO_any>;
/**
* TODO: [๐Ÿง ] Maybe propper instance of object
* TODO: [0] Make string_serialized_xml
* TODO: [1] Make type for XML Schema
* TODO: [1] Make type for XML Settings and Schema
* TODO: [๐Ÿง ] What to use for validating XMLs - XSD,...

@@ -17,4 +18,4 @@ * TODO: [๐Ÿ“] In `XmlFormatDefinition` implement simple `isValid`

* 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
*/

@@ -23,3 +23,3 @@ import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';

*/
constructor(options?: OpenAiAssistantExecutionToolsOptions);
constructor(options: OpenAiAssistantExecutionToolsOptions);
get title(): string_title & string_markdown_text;

@@ -26,0 +26,0 @@ get description(): string_markdown;

@@ -13,3 +13,3 @@ import type { ClientOptions } from 'openai';

*/
assistantId?: string_token;
assistantId: string_token;
};

@@ -11,2 +11,4 @@ import OpenAI from 'openai';

import type { string_title } from '../../types/typeAliases';
import type { string_token } from '../../types/typeAliases';
import { OpenAiAssistantExecutionTools } from './OpenAiAssistantExecutionTools';
import type { OpenAiExecutionToolsOptions } from './OpenAiExecutionToolsOptions';

@@ -34,2 +36,9 @@ /**

/**
* Create (sub)tools for calling OpenAI API Assistants
*
* @param assistantId Which assistant to use
* @returns Tools for calling OpenAI API Assistants with same token
*/
createAssistantSubtools(assistantId: string_token): OpenAiAssistantExecutionTools;
/**
* Check the `options` passed to `constructor`

@@ -36,0 +45,0 @@ */

@@ -10,1 +10,10 @@ /**

export declare const _OpenAiMetadataRegistration: void;
/**
* @@@ registration1 of default configuration for Open AI
*
* Note: [๐Ÿ] Configurations registrations are done in @@@ BUT constructor @@@
*
* @public exported from `@promptbook/core`
* @public exported from `@promptbook/cli`
*/
export declare const _OpenAiAssistantMetadataRegistration: void;

@@ -11,3 +11,12 @@ /**

/**
* @@@ registration2
*
* Note: [๐Ÿ] Configurations registrations are done in @@@ BUT constructor @@@
*
* @public exported from `@promptbook/openai`
* @public exported from `@promptbook/cli`
*/
export declare const _OpenAiAssistantRegistration: void;
/**
* TODO: [๐ŸŽถ] Naming "constructor" vs "creator" vs "factory"
*/

@@ -42,1 +42,4 @@ import type { string_markdown_text } from '../typeAliases';

};
/**
* TODO: !!!!!! FOREACH in report
*/

@@ -36,4 +36,5 @@ import type { string_markdown_text } from '../typeAliases';

/**
* TODO: [๐Ÿง ] !!!!!! Should be here registered subparameter from foreach or not?
* TODO: [โ™ˆ] Probbably move expectations from templates to parameters
* TODO: [๐Ÿ™] Make some standard order of json properties
*/

@@ -0,1 +1,2 @@

import type { ForeachJson } from '../../commands/FOREACH/ForeachJson';
import type { FormatCommand } from '../../commands/FORMAT/FormatCommand';

@@ -46,2 +47,6 @@ import type { TemplateType } from '../../commands/TEMPLATE/TemplateTypes';

/**
* @@@
*/
readonly foreach?: ForeachJson;
/**
* Type of the execution

@@ -48,0 +53,0 @@ * This determines if the template is send to LLM, user or some scripting evaluation

@@ -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/utils",
"version": "0.72.0-0",
"version": "0.72.0-1",
"description": "Supercharge your use of large language models",

@@ -15,17 +15,21 @@ "private": false,

"keywords": [
"ai",
"llm",
"prompt",
"template",
"language-model",
"chatgpt",
"autogpt",
"machine-learning",
"natural-language-processing",
"nlp",
"openai",
"gpt-3",
"gpt-4",
"chatgpt",
"ai",
"machine-learning",
"natural-language-processing",
"nlp",
"prompt",
"template",
"pipeline",
"automation",
"text-generation",
"language-model"
"gpt-4o",
"gpt-4o-mini",
"o1",
"o1-mini",
"o1-preview",
"anthropic"
],

@@ -32,0 +36,0 @@ "license": "CC-BY-4.0",

@@ -19,2 +19,6 @@ <!-- โš ๏ธ WARNING: This code has been generated so that any manual changes will be overwritten -->

## โœจ New Features
- โœจ **Support of [OpenAI o1 model](https://openai.com/o1/)**
## ๐Ÿ“ฆ Package `@promptbook/utils`

@@ -32,3 +36,3 @@

# Install just this package to save space
npm i @promptbook/utils
npm install @promptbook/utils
```

@@ -164,6 +168,2 @@

# โœจ New Features
- โœจ **Support [OpenAI o1 model](https://openai.com/o1/)**
## ๐Ÿค The Promptbook Whitepaper

@@ -215,3 +215,2 @@

> - PIPELINE URL https://promptbook.studio/webgpt/write-website-content.ptbk.md
> - PROMPTBOOK VERSION 0.0.1
> - INPUTโ€ฏโ€ฏPARAM `{rawTitle}` Automatically suggested a site name or empty text

@@ -218,0 +217,0 @@ > - INPUTโ€ฏโ€ฏPARAM `{rawAssigment}` Automatically generated site entry from image recognition

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc