@promptbook/azure-openai
Advanced tools
Comparing version 0.52.0-6 to 0.52.0-7
@@ -12,2 +12,3 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations'; | ||
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory'; | ||
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise'; | ||
@@ -23,3 +24,3 @@ import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources'; | ||
export { assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, }; | ||
export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { SimplePromptInterfaceTools }; | ||
@@ -26,0 +27,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson }; |
@@ -1,20 +0,7 @@ | ||
import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
import { JavascriptExecutionToolsOptions } from './JavascriptExecutionToolsOptions'; | ||
import { JavascriptEvalExecutionTools } from './JavascriptEvalExecutionTools'; | ||
/** | ||
* ScriptExecutionTools for JavaScript implemented via vm2 | ||
* Placeholder for better implementation of JavascriptExecutionTools - some propper sandboxing | ||
* | ||
* Warning: This is not implemented yet | ||
* @alias JavascriptExecutionTools | ||
*/ | ||
export declare class JavascriptExecutionTools implements ScriptExecutionTools { | ||
private readonly options; | ||
constructor(options?: JavascriptExecutionToolsOptions); | ||
/** | ||
* Executes a JavaScript | ||
*/ | ||
execute(options: ScriptExecutionToolsExecuteOptions): Promise<string>; | ||
} | ||
/** | ||
* TODO: !! Pass isVerbose to constructor and use it | ||
* TODO: !! Probbably make some common util createStatementToEvaluate | ||
* TODO: !! Implement via vm2 | ||
*/ | ||
export declare const JavascriptExecutionTools: typeof JavascriptEvalExecutionTools; |
{ | ||
"name": "@promptbook/azure-openai", | ||
"version": "0.52.0-6", | ||
"version": "0.52.0-7", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -51,3 +51,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.52.0-6" | ||
"@promptbook/core": "0.52.0-7" | ||
}, | ||
@@ -54,0 +54,0 @@ "main": "./umd/index.umd.js", |
@@ -12,2 +12,3 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations'; | ||
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory'; | ||
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise'; | ||
@@ -23,3 +24,3 @@ import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources'; | ||
export { assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, }; | ||
export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { SimplePromptInterfaceTools }; | ||
@@ -26,0 +27,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson }; |
@@ -1,20 +0,7 @@ | ||
import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
import { JavascriptExecutionToolsOptions } from './JavascriptExecutionToolsOptions'; | ||
import { JavascriptEvalExecutionTools } from './JavascriptEvalExecutionTools'; | ||
/** | ||
* ScriptExecutionTools for JavaScript implemented via vm2 | ||
* Placeholder for better implementation of JavascriptExecutionTools - some propper sandboxing | ||
* | ||
* Warning: This is not implemented yet | ||
* @alias JavascriptExecutionTools | ||
*/ | ||
export declare class JavascriptExecutionTools implements ScriptExecutionTools { | ||
private readonly options; | ||
constructor(options?: JavascriptExecutionToolsOptions); | ||
/** | ||
* Executes a JavaScript | ||
*/ | ||
execute(options: ScriptExecutionToolsExecuteOptions): Promise<string>; | ||
} | ||
/** | ||
* TODO: !! Pass isVerbose to constructor and use it | ||
* TODO: !! Probbably make some common util createStatementToEvaluate | ||
* TODO: !! Implement via vm2 | ||
*/ | ||
export declare const JavascriptExecutionTools: typeof JavascriptEvalExecutionTools; |
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
500720
8527