@promptbook/node
Advanced tools
Comparing version 0.76.0 to 0.77.0-0
@@ -11,3 +11,3 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version'; | ||
import { isValidJsonString } from '../formats/json/utils/isValidJsonString'; | ||
import { $currentDate } from '../utils/$currentDate'; | ||
import { $getCurrentDate } from '../utils/$getCurrentDate'; | ||
import { $isRunningInBrowser } from '../utils/environment/$isRunningInBrowser'; | ||
@@ -86,3 +86,3 @@ import { $isRunningInNode } from '../utils/environment/$isRunningInNode'; | ||
export { isValidJsonString }; | ||
export { $currentDate }; | ||
export { $getCurrentDate }; | ||
export { $isRunningInBrowser }; | ||
@@ -89,0 +89,0 @@ export { $isRunningInNode }; |
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version'; | ||
import { createExecutionToolsFromVercelProvider } from '../llm-providers/vercel/createExecutionToolsFromVercelProvider'; | ||
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION }; | ||
export { createExecutionToolsFromVercelProvider }; |
@@ -0,1 +1,2 @@ | ||
import type { string_user_id } from '../types/typeAliases'; | ||
/** | ||
@@ -8,2 +9,9 @@ * @@@ | ||
/** | ||
* A unique identifier representing your end-user | ||
* | ||
* Note: For example it can help to detect abuse | ||
* For example for OpenAi @see https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids | ||
*/ | ||
readonly userId?: string_user_id; | ||
/** | ||
* If true, the internal executions will be logged | ||
@@ -14,4 +22,5 @@ */ | ||
/** | ||
* TODO: [๐ง ][๐คบ] Maybe allow overriding of `userId` for each prompt | ||
* TODO: [๐] Maybe add here `isDeterministic` | ||
* TODO: [๐ง ][๐] Distinct between options passed into ExecutionTools and to ExecutionTools.execute | ||
*/ |
@@ -21,3 +21,3 @@ import type { string_user_id } from '../../../types/typeAliases'; | ||
*/ | ||
readonly userId?: string_user_id | null; | ||
readonly userId?: string_user_id; | ||
}; | ||
@@ -24,0 +24,0 @@ /** |
@@ -36,3 +36,3 @@ import type { CommonToolsOptions } from '../../execution/CommonToolsOptions'; | ||
*/ | ||
readonly userId: string_user_id | null; | ||
readonly userId?: string_user_id; | ||
}; |
import type { ClientOptions } from 'openai'; | ||
import type { CommonToolsOptions } from '../../execution/CommonToolsOptions'; | ||
import type { string_user_id } from '../../types/typeAliases'; | ||
/** | ||
@@ -12,10 +11,2 @@ * Options for `OpenAiExecutionTools` | ||
*/ | ||
export type OpenAiExecutionToolsOptions = CommonToolsOptions & ClientOptions & { | ||
/** | ||
* A unique identifier representing your end-user, which can help OpenAI to monitor | ||
* and detect abuse. | ||
* | ||
* @see https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids | ||
*/ | ||
userId: string_user_id | null; | ||
}; | ||
export type OpenAiExecutionToolsOptions = CommonToolsOptions & ClientOptions; |
@@ -27,3 +27,3 @@ import type { string_user_id } from '../../../types/typeAliases'; | ||
*/ | ||
readonly userId: string_user_id | null; | ||
readonly userId?: string_user_id; | ||
/** | ||
@@ -30,0 +30,0 @@ * Configuration for the LLM tools |
@@ -32,3 +32,3 @@ import type { Prompt } from '../../../types/Prompt'; | ||
*/ | ||
readonly userId: string_user_id | null; | ||
readonly userId?: string_user_id; | ||
/** | ||
@@ -35,0 +35,0 @@ * Configuration for the LLM tools |
@@ -44,3 +44,3 @@ import type { CommonToolsOptions } from '../../../execution/CommonToolsOptions'; | ||
*/ | ||
readonly userId: string_user_id | null; | ||
readonly userId?: string_user_id; | ||
} | ({ | ||
@@ -47,0 +47,0 @@ /** |
@@ -65,3 +65,3 @@ import type { Promisable } from 'type-fest'; | ||
*/ | ||
readonly userId: string_user_id | null; | ||
readonly userId?: string_user_id; | ||
/** | ||
@@ -68,0 +68,0 @@ * @@@ |
{ | ||
"name": "@promptbook/node", | ||
"version": "0.76.0", | ||
"version": "0.77.0-0", | ||
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin", | ||
@@ -57,3 +57,3 @@ "--note-0": " <- [๐]", | ||
"peerDependencies": { | ||
"@promptbook/core": "0.76.0" | ||
"@promptbook/core": "0.77.0-0" | ||
}, | ||
@@ -60,0 +60,0 @@ "dependencies": { |
@@ -26,2 +26,6 @@ <!-- โ ๏ธ WARNING: This code has been generated so that any manual changes will be overwritten --> | ||
<blockquote style="color: #ff8811"> | ||
<b>โ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>. | ||
</blockquote> | ||
## ๐ฆ Package `@promptbook/node` | ||
@@ -28,0 +32,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
2076094
606
32023
421