@promptbook/remote-server
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -18,3 +18,3 @@ import { ExecutionType } from './ExecutionTypes'; | ||
* Note: This is supposed to be displayed to the user. | ||
* Note: This is trimmed and stripped of HTML tags and emojis with "🖋" prefix | ||
* Note: This is trimmed and stripped of HTML tags and emojis | ||
*/ | ||
@@ -21,0 +21,0 @@ readonly title: string_title; |
/** | ||
* Additional options for `unwrapResult` | ||
*/ | ||
interface UnwrapResultOptions { | ||
/** | ||
* If true, the text is trimmed before processing | ||
*/ | ||
isTrimmed?: boolean; | ||
/** | ||
* If true, the introduce sentence is removed | ||
* | ||
* For example: | ||
* - If `true`> 'Hello, "world"' -> 'world' | ||
* - If `false`> 'Hello, "world"' -> 'Hello, "world"' | ||
* | ||
* @default true | ||
*/ | ||
isIntroduceSentenceRemoved?: boolean; | ||
} | ||
/** | ||
* Removes quotes and optional introduce text from a string | ||
@@ -13,2 +32,6 @@ * | ||
*/ | ||
export declare function unwrapResult(text: string): string; | ||
export declare function unwrapResult(text: string, options?: UnwrapResultOptions): string; | ||
export {}; | ||
/** | ||
* TODO: [🧠] Should this also unwrap the (parenthesis) | ||
*/ |
{ | ||
"name": "@promptbook/remote-server", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -41,3 +41,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.15.0" | ||
"@promptbook/core": "0.16.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "main": "./umd/index.umd.js", |
@@ -18,3 +18,3 @@ import { ExecutionType } from './ExecutionTypes'; | ||
* Note: This is supposed to be displayed to the user. | ||
* Note: This is trimmed and stripped of HTML tags and emojis with "🖋" prefix | ||
* Note: This is trimmed and stripped of HTML tags and emojis | ||
*/ | ||
@@ -21,0 +21,0 @@ readonly title: string_title; |
/** | ||
* Additional options for `unwrapResult` | ||
*/ | ||
interface UnwrapResultOptions { | ||
/** | ||
* If true, the text is trimmed before processing | ||
*/ | ||
isTrimmed?: boolean; | ||
/** | ||
* If true, the introduce sentence is removed | ||
* | ||
* For example: | ||
* - If `true`> 'Hello, "world"' -> 'world' | ||
* - If `false`> 'Hello, "world"' -> 'Hello, "world"' | ||
* | ||
* @default true | ||
*/ | ||
isIntroduceSentenceRemoved?: boolean; | ||
} | ||
/** | ||
* Removes quotes and optional introduce text from a string | ||
@@ -13,2 +32,6 @@ * | ||
*/ | ||
export declare function unwrapResult(text: string): string; | ||
export declare function unwrapResult(text: string, options?: UnwrapResultOptions): string; | ||
export {}; | ||
/** | ||
* TODO: [🧠] Should this also unwrap the (parenthesis) | ||
*/ |
304043
4453