@promptbook/anthropic-claude
Advanced tools
Comparing version 0.63.4 to 0.64.0-0
@@ -9,3 +9,3 @@ import Anthropic from '@anthropic-ai/sdk'; | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.63.3'; | ||
var PROMPTBOOK_VERSION = '0.63.4'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -1005,2 +1005,3 @@ | ||
* TODO: [๐] Auto use anonymous server in browser | ||
* TODO: [๐ง ][๐ฐ] Allow to pass `title` for tracking purposes | ||
*/ | ||
@@ -1007,0 +1008,0 @@ |
declare const _default: ({ | ||
title: string; | ||
pipelineUrl: string; | ||
sourceFile: string; | ||
title: string; | ||
promptbookVersion: string; | ||
@@ -27,61 +26,7 @@ parameters: { | ||
personas: never[]; | ||
preparations: { | ||
id: number; | ||
promptbookVersion: string; | ||
usage: { | ||
price: { | ||
value: number; | ||
}; | ||
input: { | ||
tokensCount: { | ||
value: number; | ||
}; | ||
charactersCount: { | ||
value: number; | ||
}; | ||
wordsCount: { | ||
value: number; | ||
}; | ||
sentencesCount: { | ||
value: number; | ||
}; | ||
linesCount: { | ||
value: number; | ||
}; | ||
paragraphsCount: { | ||
value: number; | ||
}; | ||
pagesCount: { | ||
value: number; | ||
}; | ||
}; | ||
output: { | ||
tokensCount: { | ||
value: number; | ||
}; | ||
charactersCount: { | ||
value: number; | ||
}; | ||
wordsCount: { | ||
value: number; | ||
}; | ||
sentencesCount: { | ||
value: number; | ||
}; | ||
linesCount: { | ||
value: number; | ||
}; | ||
paragraphsCount: { | ||
value: number; | ||
}; | ||
pagesCount: { | ||
value: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
preparations: never[]; | ||
sourceFile: string; | ||
} | { | ||
title: string; | ||
pipelineUrl: string; | ||
sourceFile: string; | ||
title: string; | ||
promptbookVersion: string; | ||
@@ -115,61 +60,7 @@ parameters: { | ||
personas: never[]; | ||
preparations: { | ||
id: number; | ||
promptbookVersion: string; | ||
usage: { | ||
price: { | ||
value: number; | ||
}; | ||
input: { | ||
tokensCount: { | ||
value: number; | ||
}; | ||
charactersCount: { | ||
value: number; | ||
}; | ||
wordsCount: { | ||
value: number; | ||
}; | ||
sentencesCount: { | ||
value: number; | ||
}; | ||
linesCount: { | ||
value: number; | ||
}; | ||
paragraphsCount: { | ||
value: number; | ||
}; | ||
pagesCount: { | ||
value: number; | ||
}; | ||
}; | ||
output: { | ||
tokensCount: { | ||
value: number; | ||
}; | ||
charactersCount: { | ||
value: number; | ||
}; | ||
wordsCount: { | ||
value: number; | ||
}; | ||
sentencesCount: { | ||
value: number; | ||
}; | ||
linesCount: { | ||
value: number; | ||
}; | ||
paragraphsCount: { | ||
value: number; | ||
}; | ||
pagesCount: { | ||
value: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
preparations: never[]; | ||
sourceFile: string; | ||
} | { | ||
title: string; | ||
pipelineUrl: string; | ||
sourceFile: string; | ||
title: string; | ||
promptbookVersion: string; | ||
@@ -198,58 +89,5 @@ parameters: { | ||
personas: never[]; | ||
preparations: { | ||
id: number; | ||
promptbookVersion: string; | ||
usage: { | ||
price: { | ||
value: number; | ||
}; | ||
input: { | ||
tokensCount: { | ||
value: number; | ||
}; | ||
charactersCount: { | ||
value: number; | ||
}; | ||
wordsCount: { | ||
value: number; | ||
}; | ||
sentencesCount: { | ||
value: number; | ||
}; | ||
linesCount: { | ||
value: number; | ||
}; | ||
paragraphsCount: { | ||
value: number; | ||
}; | ||
pagesCount: { | ||
value: number; | ||
}; | ||
}; | ||
output: { | ||
tokensCount: { | ||
value: number; | ||
}; | ||
charactersCount: { | ||
value: number; | ||
}; | ||
wordsCount: { | ||
value: number; | ||
}; | ||
sentencesCount: { | ||
value: number; | ||
}; | ||
linesCount: { | ||
value: number; | ||
}; | ||
paragraphsCount: { | ||
value: number; | ||
}; | ||
pagesCount: { | ||
value: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
preparations: never[]; | ||
sourceFile: string; | ||
})[]; | ||
export default _default; |
import { PROMPTBOOK_VERSION } from '../version'; | ||
import { createCollectionFromDirectory } from '../collection/constructors/createCollectionFromDirectory'; | ||
import { LLM_CONFIGURATION_BOILERPLATES } from '../llm-providers/_common/config'; | ||
import { createLlmToolsFromConfiguration } from '../llm-providers/_common/createLlmToolsFromConfiguration'; | ||
import { createLlmToolsFromConfigurationFromEnv } from '../llm-providers/_common/createLlmToolsFromConfigurationFromEnv'; | ||
import { createLlmToolsFromEnv } from '../llm-providers/_common/createLlmToolsFromEnv'; | ||
@@ -7,3 +10,6 @@ import { FilesStorage } from '../storage/files-storage/FilesStorage'; | ||
export { createCollectionFromDirectory }; | ||
export { LLM_CONFIGURATION_BOILERPLATES }; | ||
export { createLlmToolsFromConfiguration }; | ||
export { createLlmToolsFromConfigurationFromEnv }; | ||
export { createLlmToolsFromEnv }; | ||
export { FilesStorage }; |
@@ -33,2 +33,3 @@ import type { PipelineCollection } from '../collection/PipelineCollection'; | ||
import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions'; | ||
import type { LlmToolsConfiguration } from '../llm-providers/_common/LlmConfiguration'; | ||
import type { CacheItem } from '../llm-providers/_common/utils/cache/CacheItem'; | ||
@@ -108,3 +109,3 @@ import type { CacheLlmToolsOptions } from '../llm-providers/_common/utils/cache/CacheLlmToolsOptions'; | ||
import type { string_persona_description } from '../types/typeAliases'; | ||
import type { string_knowledge_source } from '../types/typeAliases'; | ||
import type { string_knowledge_source_content } from '../types/typeAliases'; | ||
import type { string_knowledge_source_link } from '../types/typeAliases'; | ||
@@ -242,2 +243,4 @@ import type { string_html } from '../types/typeAliases'; | ||
export type { CallbackInterfaceToolsOptions }; | ||
export type { LlmToolsConfiguration }; | ||
export type { LlmToolsConfiguration }; | ||
export type { CacheItem }; | ||
@@ -317,3 +320,3 @@ export type { CacheLlmToolsOptions }; | ||
export type { string_persona_description }; | ||
export type { string_knowledge_source }; | ||
export type { string_knowledge_source_content }; | ||
export type { string_knowledge_source_link }; | ||
@@ -320,0 +323,0 @@ export type { string_html }; |
@@ -1,2 +0,2 @@ | ||
import type { string_knowledge_source } from '../../types/typeAliases'; | ||
import type { string_knowledge_source_content } from '../../types/typeAliases'; | ||
/** | ||
@@ -10,3 +10,3 @@ * Parsed KNOWLEDGE command | ||
readonly type: 'KNOWLEDGE'; | ||
readonly source: string_knowledge_source; | ||
readonly sourceContent: string_knowledge_source_content; | ||
}; |
@@ -1,19 +0,7 @@ | ||
import type { LlmExecutionTools } from '../../execution/LlmExecutionTools'; | ||
import { MultipleLlmExecutionTools } from '../multiple/MultipleLlmExecutionTools'; | ||
import type { CreateLlmToolsFromConfigurationOptions } from './createLlmToolsFromConfiguration'; | ||
/** | ||
* Options for `createLlmToolsFromEnv` | ||
* | ||
* @private internal type for `createLlmToolsFromEnv` and `getLlmToolsForTestingAndScriptsAndPlayground` | ||
*/ | ||
export type CreateLlmToolsFromEnvOptions = { | ||
/** | ||
* This will will be passed to the created `LlmExecutionTools` | ||
* | ||
* @default false | ||
*/ | ||
isVerbose?: boolean; | ||
}; | ||
/** | ||
* @@@ | ||
* | ||
* Note: This function is not cached, every call creates new instance of `LlmExecutionTools` | ||
* Note: This function is not cached, every call creates new instance of `MultipleLlmExecutionTools` | ||
* | ||
@@ -29,13 +17,10 @@ * @@@ .env | ||
*/ | ||
export declare function createLlmToolsFromEnv(options?: CreateLlmToolsFromEnvOptions): LlmExecutionTools; | ||
export declare function createLlmToolsFromEnv(options?: CreateLlmToolsFromConfigurationOptions): MultipleLlmExecutionTools; | ||
/** | ||
* TODO: [๐] Use `createLlmToolsFromConfiguration` | ||
* TODO: @@@ write discussion about this - wizzard | ||
* TODO: Add Azure | ||
* TODO: [๐ง ] Which name is better `createLlmToolsFromEnv` or `createLlmToolsFromEnvironment`? | ||
* TODO: @@@ write `createLlmToolsFromEnv` vs `createLlmToolsFromConfigurationFromEnv` vs `createLlmToolsFromConfiguration` | ||
* TODO: [๐ง ][๐] Which name is better `createLlmToolsFromEnv` or `createLlmToolsFromEnvironment`? | ||
* TODO: [๐ง ] Is there some meaningfull way how to test this util | ||
* TODO: [๐ง ] Maybe pass env as argument | ||
* Note: [๐ข] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli` | ||
* TODO: [๐ทโโ๏ธ] @@@ Manual about construction of llmTools | ||
* TODO: [๐ฅ] Allow `ptbk make` without llm tools | ||
* TODO: This should be maybe not under `_common` but under `utils` | ||
*/ |
@@ -21,2 +21,3 @@ import type { LlmExecutionToolsWithTotalUsage } from './utils/count-total-usage/LlmExecutionToolsWithTotalUsage'; | ||
* TODO: [๐ฅ] Allow `ptbk make` without llm tools | ||
* TODO: This should be maybe not under `_common` but under `utils-internal` / `utils/internal` | ||
*/ |
@@ -1,4 +0,4 @@ | ||
import type { CreateLlmToolsFromEnvOptions } from './createLlmToolsFromEnv'; | ||
import type { CreateLlmToolsFromConfigurationOptions } from './createLlmToolsFromConfiguration'; | ||
import type { LlmExecutionToolsWithTotalUsage } from './utils/count-total-usage/LlmExecutionToolsWithTotalUsage'; | ||
type GetLlmToolsForTestingAndScriptsAndPlaygroundOptions = CreateLlmToolsFromEnvOptions & { | ||
type GetLlmToolsForTestingAndScriptsAndPlaygroundOptions = CreateLlmToolsFromConfigurationOptions & { | ||
/** | ||
@@ -21,2 +21,3 @@ * @@@ | ||
* TODO: [๐ทโโ๏ธ] @@@ Manual about construction of llmTools | ||
* TODO: This should be maybe not under `_common` but under `utils-internal` / `utils/internal` | ||
*/ |
@@ -52,2 +52,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: [๐] Auto use anonymous server in browser | ||
* TODO: [๐ง ][๐ฐ] Allow to pass `title` for tracking purposes | ||
*/ |
@@ -50,2 +50,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: [๐ง ][๐] Maybe use `isDeterministic` from options | ||
* TODO: [๐ง ][๐ฐ] Allow to pass `title` for tracking purposes | ||
*/ |
@@ -68,2 +68,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: [๐ง ][๐] Maybe use `isDeterministic` from options | ||
* TODO: [๐ง ][๐ฐ] Allow to pass `title` for tracking purposes | ||
*/ |
@@ -56,2 +56,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: [๐] Add anonymous option | ||
* TODO: [๐ง ][๐ฐ] Allow to pass `title` for tracking purposes | ||
*/ |
@@ -8,2 +8,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
* Note: This function acts as part of compilation process | ||
* Note: When the pipeline is already prepared, it returns the same pipeline | ||
* @public exported from `@promptbook/core` | ||
@@ -10,0 +11,0 @@ */ |
import type { number_id } from '../typeAliases'; | ||
import type { string_knowledge_source } from '../typeAliases'; | ||
import type { string_knowledge_source_content } from '../typeAliases'; | ||
import type { string_name } from '../typeAliases'; | ||
@@ -11,4 +11,10 @@ /** | ||
export type KnowledgeSourceJson = { | ||
/** | ||
* @@@ | ||
*/ | ||
readonly name: string_name; | ||
readonly source: string_knowledge_source; | ||
/** | ||
* @@@ | ||
*/ | ||
readonly sourceContent: string_knowledge_source_content; | ||
}; | ||
@@ -15,0 +21,0 @@ /** |
@@ -88,3 +88,3 @@ import type { TupleToUnion } from 'type-fest'; | ||
* | ||
* For example `"eventName"` | ||
* For example `"eventTitle"` | ||
*/ | ||
@@ -146,3 +146,3 @@ export type string_parameter_name = string_name; | ||
*/ | ||
export type string_knowledge_source = string_knowledge_source_link | string_markdown; | ||
export type string_knowledge_source_content = string_knowledge_source_link | string_markdown; | ||
/** | ||
@@ -149,0 +149,0 @@ * One link to knowledge source |
{ | ||
"name": "@promptbook/anthropic-claude", | ||
"version": "0.63.4", | ||
"version": "0.64.0-0", | ||
"description": "Supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.63.4" | ||
"@promptbook/core": "0.64.0-0" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
@@ -17,3 +17,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.63.3'; | ||
var PROMPTBOOK_VERSION = '0.63.4'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -1013,2 +1013,3 @@ | ||
* TODO: [๐] Auto use anonymous server in browser | ||
* TODO: [๐ง ][๐ฐ] Allow to pass `title` for tracking purposes | ||
*/ | ||
@@ -1015,0 +1016,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
516531
440
9459