Socket
Socket
Sign inDemoInstall

@promptbook/remote-client

Package Overview
Dependencies
Maintainers
0
Versions
401
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/remote-client - npm Package Compare versions

Comparing version 0.63.4 to 0.64.0-0

esm/typings/src/llm-providers/_common/config.d.ts

3

esm/index.es.js

@@ -7,3 +7,3 @@ import { io } from 'socket.io-client';

*/
var PROMPTBOOK_VERSION = '0.63.3';
var PROMPTBOOK_VERSION = '0.63.4';
// TODO: !!!! List here all the versions and annotate + put into script

@@ -224,2 +224,3 @@

* TODO: [🍜] Add anonymous option
* TODO: [🧠][🌰] Allow to pass `title` for tracking purposes
*/

@@ -226,0 +227,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/remote-client",
"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": {

@@ -11,3 +11,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

@@ -228,2 +228,3 @@

* TODO: [🍜] Add anonymous option
* TODO: [🧠][🌰] Allow to pass `title` for tracking purposes
*/

@@ -230,0 +231,0 @@

Sorry, the diff of this file is not supported yet

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