@promptbook/node 0.103.0-32 → 0.103.0-34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.es.js +41 -18
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/cli.index.d.ts +0 -2
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -2
- package/esm/typings/src/_packages/wizard.index.d.ts +0 -2
- package/esm/typings/src/book-2.0/agent-source/padBook.d.ts +1 -1
- package/esm/typings/src/execution/ExecutionTask.d.ts +12 -3
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +5 -0
- package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +5 -0
- package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +5 -0
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +5 -0
- package/esm/typings/src/execution/utils/logLlmCall.d.ts +8 -0
- package/esm/typings/src/transpilers/_common/BookTranspiler.d.ts +26 -17
- package/esm/typings/src/transpilers/_common/BookTranspilerOptions.d.ts +2 -3
- package/esm/typings/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +2 -2
- package/esm/typings/src/transpilers/openai/OpenAiSdkTranspiler.d.ts +9 -9
- package/esm/typings/src/types/LlmCall.d.ts +20 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +41 -18
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/transpilers/_common/BookTranspilerDefinition.d.ts +0 -37
- package/esm/typings/src/transpilers/langchain/LangchainTranspiler.d.ts +0 -7
- package/esm/typings/src/transpilers/langchain/register.d.ts +0 -15
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
2
|
-
import type { string_name, string_title } from '../../types/typeAliases';
|
|
3
|
-
import type { Registered } from '../../utils/misc/$Register';
|
|
4
|
-
import type { BookTranspiler } from './BookTranspiler';
|
|
5
|
-
/**
|
|
6
|
-
* Definition of a book transpiler.
|
|
7
|
-
*
|
|
8
|
-
* @see https://github.com/webgptorg/promptbook/issues/249
|
|
9
|
-
*/
|
|
10
|
-
export type BookTranspilerDefinition = Registered & {
|
|
11
|
-
/**
|
|
12
|
-
* The name of the transpiler.
|
|
13
|
-
* It is used to identify the transpiler in the register.
|
|
14
|
-
*
|
|
15
|
-
* @example 'python-langchain'
|
|
16
|
-
*/
|
|
17
|
-
readonly name: string_name;
|
|
18
|
-
/**
|
|
19
|
-
* The title of the transpiler.
|
|
20
|
-
* It is used to display the transpiler in the UI.
|
|
21
|
-
*
|
|
22
|
-
* @example 'Python Langchain'
|
|
23
|
-
*/
|
|
24
|
-
readonly title: string_title;
|
|
25
|
-
/**
|
|
26
|
-
* The factory function to create a transpiler instance.
|
|
27
|
-
* It can be async.
|
|
28
|
-
*
|
|
29
|
-
* @param tools the execution tools that can be used by the transpiler
|
|
30
|
-
* @returns the transpiler instance
|
|
31
|
-
*/
|
|
32
|
-
readonly new: (tools: ExecutionTools) => BookTranspiler | Promise<BookTranspiler>;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* TODO: [🧠] What other information should be in the public profile of the transpiler?
|
|
36
|
-
* - input format, output format, version, description, icon, etc.
|
|
37
|
-
*/
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BookTranspilerDefinition } from '../_common/BookTranspilerDefinition';
|
|
2
|
-
/**
|
|
3
|
-
* Transpiler to Python code using LangChain library.
|
|
4
|
-
*
|
|
5
|
-
* @private TODO: !!!! Which package should export this?
|
|
6
|
-
*/
|
|
7
|
-
export declare const LangchainTranspiler: BookTranspilerDefinition;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Registration } from '../../_packages/types.index';
|
|
2
|
-
/**
|
|
3
|
-
* Registration of LLM provider
|
|
4
|
-
*
|
|
5
|
-
* Warning: This is not useful for the end user, it is just a side effect of the mechanism that handles all available LLM tools
|
|
6
|
-
*
|
|
7
|
-
* @public exported from `@promptbook/wizard`
|
|
8
|
-
* @public exported from `@promptbook/cli`
|
|
9
|
-
*
|
|
10
|
-
* TODO: !!!! Which package should export this? - `@promptbook/core` vs `@promptbook/transpilers` vs `@promptbook/langchain`
|
|
11
|
-
*/
|
|
12
|
-
export declare const _LangchainTranspilerRegistration: Registration;
|
|
13
|
-
/**
|
|
14
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
15
|
-
*/
|