@promptbook/anthropic-claude
Advanced tools
Comparing version 0.61.0-24 to 0.61.0-25
@@ -543,2 +543,3 @@ import Anthropic from '@anthropic-ai/sdk'; | ||
deepFreeze([ | ||
'content', | ||
'context', | ||
@@ -556,2 +557,6 @@ 'knowledge', | ||
var RESERVED_PARAMETER_MISSING_VALUE = 'MISSING-' + REPLACING_NONCE; | ||
/** | ||
* @@@ | ||
*/ | ||
var RESERVED_PARAMETER_RESTRICTED = 'RESTRICTED-' + REPLACING_NONCE; | ||
/* | ||
@@ -595,2 +600,6 @@ TODO: !!! Just testing false-negative detection of [๐ก][๐ข][๐ต][โช] leak | ||
} | ||
else if (parameterValue === RESERVED_PARAMETER_RESTRICTED) { | ||
// TODO: [๐ต] | ||
throw new UnexpectedError("Parameter {".concat(parameterName, "} is restricted to use")); | ||
} | ||
} | ||
@@ -955,3 +964,3 @@ } | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.61.0-23'; | ||
var PROMPTBOOK_VERSION = '0.61.0-24'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -958,0 +967,0 @@ |
@@ -46,3 +46,3 @@ /** | ||
*/ | ||
export declare const RESERVED_PARAMETER_NAMES: readonly ["context", "knowledge", "samples", "modelName", "currentDate"]; | ||
export declare const RESERVED_PARAMETER_NAMES: readonly ["content", "context", "knowledge", "samples", "modelName", "currentDate"]; | ||
/** | ||
@@ -55,2 +55,6 @@ * @@@ | ||
*/ | ||
export declare const RESERVED_PARAMETER_RESTRICTED: string; | ||
/** | ||
* @@@ | ||
*/ | ||
export declare const DEBUG_ALLOW_PAYED_TESTING: boolean; | ||
@@ -57,0 +61,0 @@ /** |
@@ -10,5 +10,5 @@ import type { PromptTemplateJson } from '../../types/PipelineJson/PromptTemplateJson'; | ||
*/ | ||
export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'jokerParameterNames'>): Set<string_parameter_name>; | ||
export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>; | ||
/** | ||
* TODO: [๐ฃ] If script require contentLanguage | ||
*/ |
@@ -50,2 +50,4 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: !!!! return `preparedPipeline` from execution | ||
* TODO: !!!! `isNotPreparedWarningSupressed` | ||
* TODO: Use isVerbose here (not only pass to `preparePipeline`) | ||
@@ -52,0 +54,0 @@ * TODO: [๐ช] Use maxParallelCount here (not only pass to `preparePipeline`) |
@@ -7,3 +7,3 @@ import type { PrepareOptions } from '../../../prepare/PrepareOptions'; | ||
*/ | ||
export declare function prepareKnowledgeFromMarkdown(content: string_markdown, options: PrepareOptions): Promise<Array<Omit<KnowledgePiecePreparedJson, 'sources' | 'preparationIds'>>>; | ||
export declare function prepareKnowledgeFromMarkdown(knowledgeContent: string_markdown, options: PrepareOptions): Promise<Array<Omit<KnowledgePiecePreparedJson, 'sources' | 'preparationIds'>>>; | ||
/** | ||
@@ -10,0 +10,0 @@ * TODO: [๐][๐ผ] !!! Export via `@promptbook/markdown` |
@@ -10,1 +10,4 @@ import type { string_parameter_name } from '../types/typeAliases'; | ||
export declare function extractParameters(template: string_template): Set<string_parameter_name>; | ||
/** | ||
* TODO: !!!!! Rename to extractParameterNames | ||
*/ |
{ | ||
"name": "@promptbook/anthropic-claude", | ||
"version": "0.61.0-24", | ||
"version": "0.61.0-25", | ||
"description": "Supercharge your use of large language models", | ||
@@ -52,3 +52,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.61.0-24" | ||
"@promptbook/core": "0.61.0-25" | ||
}, | ||
@@ -55,0 +55,0 @@ "main": "./umd/index.umd.js", |
@@ -227,3 +227,3 @@ # ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook | ||
> - INPUTโฏโฏPARAM `{rawAssigment}` Automatically generated site entry from image recognition | ||
> - OUTPUTโฏPARAM `{content}` Web content | ||
> - OUTPUTโฏPARAM `{websiteContent}` Web content | ||
> - OUTPUTโฏPARAM `{keywords}` Keywords | ||
@@ -387,3 +387,3 @@ > | ||
> | ||
> `-> {content}` | ||
> `-> {websiteContent}` | ||
@@ -428,3 +428,3 @@ | ||
templateCombineTheContent--"{content}"-->output | ||
templateCombineTheContent--"{websiteContent}"-->output | ||
output((Output)):::output | ||
@@ -431,0 +431,0 @@ |
@@ -551,2 +551,3 @@ (function (global, factory) { | ||
deepFreeze([ | ||
'content', | ||
'context', | ||
@@ -564,2 +565,6 @@ 'knowledge', | ||
var RESERVED_PARAMETER_MISSING_VALUE = 'MISSING-' + REPLACING_NONCE; | ||
/** | ||
* @@@ | ||
*/ | ||
var RESERVED_PARAMETER_RESTRICTED = 'RESTRICTED-' + REPLACING_NONCE; | ||
/* | ||
@@ -603,2 +608,6 @@ TODO: !!! Just testing false-negative detection of [๐ก][๐ข][๐ต][โช] leak | ||
} | ||
else if (parameterValue === RESERVED_PARAMETER_RESTRICTED) { | ||
// TODO: [๐ต] | ||
throw new UnexpectedError("Parameter {".concat(parameterName, "} is restricted to use")); | ||
} | ||
} | ||
@@ -963,3 +972,3 @@ } | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.61.0-23'; | ||
var PROMPTBOOK_VERSION = '0.61.0-24'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -966,0 +975,0 @@ |
@@ -46,3 +46,3 @@ /** | ||
*/ | ||
export declare const RESERVED_PARAMETER_NAMES: readonly ["context", "knowledge", "samples", "modelName", "currentDate"]; | ||
export declare const RESERVED_PARAMETER_NAMES: readonly ["content", "context", "knowledge", "samples", "modelName", "currentDate"]; | ||
/** | ||
@@ -55,2 +55,6 @@ * @@@ | ||
*/ | ||
export declare const RESERVED_PARAMETER_RESTRICTED: string; | ||
/** | ||
* @@@ | ||
*/ | ||
export declare const DEBUG_ALLOW_PAYED_TESTING: boolean; | ||
@@ -57,0 +61,0 @@ /** |
@@ -10,5 +10,5 @@ import type { PromptTemplateJson } from '../../types/PipelineJson/PromptTemplateJson'; | ||
*/ | ||
export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'jokerParameterNames'>): Set<string_parameter_name>; | ||
export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>; | ||
/** | ||
* TODO: [๐ฃ] If script require contentLanguage | ||
*/ |
@@ -50,2 +50,4 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
/** | ||
* TODO: !!!! return `preparedPipeline` from execution | ||
* TODO: !!!! `isNotPreparedWarningSupressed` | ||
* TODO: Use isVerbose here (not only pass to `preparePipeline`) | ||
@@ -52,0 +54,0 @@ * TODO: [๐ช] Use maxParallelCount here (not only pass to `preparePipeline`) |
@@ -7,3 +7,3 @@ import type { PrepareOptions } from '../../../prepare/PrepareOptions'; | ||
*/ | ||
export declare function prepareKnowledgeFromMarkdown(content: string_markdown, options: PrepareOptions): Promise<Array<Omit<KnowledgePiecePreparedJson, 'sources' | 'preparationIds'>>>; | ||
export declare function prepareKnowledgeFromMarkdown(knowledgeContent: string_markdown, options: PrepareOptions): Promise<Array<Omit<KnowledgePiecePreparedJson, 'sources' | 'preparationIds'>>>; | ||
/** | ||
@@ -10,0 +10,0 @@ * TODO: [๐][๐ผ] !!! Export via `@promptbook/markdown` |
@@ -10,1 +10,4 @@ import type { string_parameter_name } from '../types/typeAliases'; | ||
export declare function extractParameters(template: string_template): Set<string_parameter_name>; | ||
/** | ||
* TODO: !!!!! Rename to extractParameterNames | ||
*/ |
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
767385
14609