Socket
Socket
Sign inDemoInstall

@promptbook/remote-client

Package Overview
Dependencies
Maintainers
1
Versions
415
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.55.0-1 to 0.55.0-2

esm/typings/execution/utils/addUsage.d.ts

5

esm/typings/_packages/core.index.d.ts

@@ -14,3 +14,2 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';

import { UnexpectedError } from '../errors/UnexpectedError';
import { addPromptResultUsage } from '../execution/addPromptResultUsage';
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';

@@ -22,3 +21,5 @@ import { createPromptbookExecutor } from '../execution/createPromptbookExecutor';

import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools';
import { addUsage } from '../execution/utils/addUsage';
import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
import { usageToWorktime } from '../execution/utils/usageToWorktime';
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory';

@@ -36,3 +37,3 @@ import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';

export { ExecutionTypes, PROMPTBOOK_VERSION };
export { addPromptResultUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, };
export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, };
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };

@@ -39,0 +40,0 @@ export { SimplePromptInterfaceTools };

11

esm/typings/execution/PromptbookExecutor.d.ts

@@ -5,2 +5,3 @@ import type { Promisable } from 'type-fest';

import type { string_name } from '../types/typeAliases';
import type { PromptResultUsage } from './PromptResult';
/**

@@ -17,11 +18,15 @@ * Executor is a simple async function that takes INPUT PARAMETERs and returns result parameters _(along with all intermediate parameters and INPUT PARAMETERs = it extends input object)_.

/**
* Whether the execution was successful
* Whether the execution was successful, details are aviable in `executionReport`
*/
isSuccessful: boolean;
/**
* Errors that occured during the execution
* Added usage of whole execution, detailed usage is aviable in `executionReport`
*/
usage: PromptResultUsage;
/**
* Errors that occured during the execution, details are aviable in `executionReport`
*/
errors: Array<Error>;
/**
* The report of the execution
* The report of the execution with all details
*/

@@ -28,0 +33,0 @@ executionReport: ExecutionReportJson;

{
"name": "@promptbook/remote-client",
"version": "0.55.0-1",
"version": "0.55.0-2",
"description": "Library to supercharge your use of large language models",

@@ -50,3 +50,3 @@ "private": false,

"peerDependencies": {
"@promptbook/core": "0.55.0-1"
"@promptbook/core": "0.55.0-2"
},

@@ -53,0 +53,0 @@ "main": "./umd/index.umd.js",

@@ -14,3 +14,2 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';

import { UnexpectedError } from '../errors/UnexpectedError';
import { addPromptResultUsage } from '../execution/addPromptResultUsage';
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';

@@ -22,3 +21,5 @@ import { createPromptbookExecutor } from '../execution/createPromptbookExecutor';

import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools';
import { addUsage } from '../execution/utils/addUsage';
import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
import { usageToWorktime } from '../execution/utils/usageToWorktime';
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory';

@@ -36,3 +37,3 @@ import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';

export { ExecutionTypes, PROMPTBOOK_VERSION };
export { addPromptResultUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, };
export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, };
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };

@@ -39,0 +40,0 @@ export { SimplePromptInterfaceTools };

@@ -5,2 +5,3 @@ import type { Promisable } from 'type-fest';

import type { string_name } from '../types/typeAliases';
import type { PromptResultUsage } from './PromptResult';
/**

@@ -17,11 +18,15 @@ * Executor is a simple async function that takes INPUT PARAMETERs and returns result parameters _(along with all intermediate parameters and INPUT PARAMETERs = it extends input object)_.

/**
* Whether the execution was successful
* Whether the execution was successful, details are aviable in `executionReport`
*/
isSuccessful: boolean;
/**
* Errors that occured during the execution
* Added usage of whole execution, detailed usage is aviable in `executionReport`
*/
usage: PromptResultUsage;
/**
* Errors that occured during the execution, details are aviable in `executionReport`
*/
errors: Array<Error>;
/**
* The report of the execution
* The report of the execution with all details
*/

@@ -28,0 +33,0 @@ executionReport: ExecutionReportJson;

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