You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP โ†’
Socket
Sign inDemoInstall
Socket

@promptbook/fake-llm

Package Overview
Dependencies
Maintainers
0
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/fake-llm - npm Package Compare versions

Comparing version

to
0.89.0-1

esm/typings/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts

4

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

@@ -90,3 +90,3 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';

import { cacheLlmTools } from '../llm-providers/_common/utils/cache/cacheLlmTools';
import { countTotalUsage } from '../llm-providers/_common/utils/count-total-usage/countTotalUsage';
import { countUsage } from '../llm-providers/_common/utils/count-total-usage/countUsage';
import { limitTotalUsage } from '../llm-providers/_common/utils/count-total-usage/limitTotalUsage';

@@ -221,3 +221,3 @@ import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic-claude/register-configuration';

export { cacheLlmTools };
export { countTotalUsage };
export { countUsage };
export { limitTotalUsage };

@@ -224,0 +224,0 @@ export { _AnthropicClaudeMetadataRegistration };

@@ -109,2 +109,7 @@ import type { PipelineCollection } from '../collection/PipelineCollection';

import type { PipelineString } from '../pipeline/PipelineString';
import type { paths } from '../playground/brjapp-api-schema';
import type { webhooks } from '../playground/brjapp-api-schema';
import type { components } from '../playground/brjapp-api-schema';
import type { $defs } from '../playground/brjapp-api-schema';
import type { operations } from '../playground/brjapp-api-schema';
import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions';

@@ -393,2 +398,7 @@ import type { PromptbookServer_Identification } from '../remote-server/socket-types/_subtypes/PromptbookServer_Identification';

export type { PipelineString };
export type { paths };
export type { webhooks };
export type { components };
export type { $defs };
export type { operations };
export type { PrepareAndScrapeOptions };

@@ -395,0 +405,0 @@ export type { PromptbookServer_Identification };

@@ -0,1 +1,2 @@

import type { Observable } from 'rxjs';
import type { LlmExecutionTools } from '../../../../execution/LlmExecutionTools';

@@ -11,2 +12,8 @@ import type { PromptResultUsage } from '../../../../execution/PromptResultUsage';

getTotalUsage(): PromptResultUsage;
/**
* Observable of total cost of the execution up to this point
*
* Note: This does report the cost of the last prompt, not the total cost of the execution up to this point
*/
spending(): Observable<PromptResultUsage>;
};

@@ -13,0 +20,0 @@ /**

@@ -40,3 +40,4 @@ import type { LlmToolsConfiguration } from '../../../llm-providers/_common/register/LlmToolsConfiguration';

*
* Note: this is passed to the certain model providers to identify misuse
* Note: This can be either some id or email or any other identifier
* Note: In anonymous mode, this is passed to the certain model providers to identify misuse
* Note: In anonymous mode, there is no need to identify yourself, nor does it change the actual configuration of LLM Tools (unlike in application mode)

@@ -43,0 +44,0 @@ */

@@ -61,12 +61,24 @@ import type { Promisable } from 'type-fest';

/**
* @@@
* Identifier of the application
*
* Note: This is usefull when you use Promptbook remote server for multiple apps/frontends, if its used just for single app, use here just "app" or "your-app-name"
* Note: This can be some id or some semantic name like "email-agent"
*/
readonly appId: string_app_id | null;
/**
* @@@
* Identifier of the end user
*
* Note: This can be either some id or email or any other identifier
* Note: This is also passed to the certain model providers to identify misuse
*/
readonly userId?: string_user_id;
/**
* @@@
* Token of the user to verify its identity
*
* Note: This is passed for example to `createLlmExecutionTools`
*/
readonly userToken?: string_user_id;
/**
* Additional arbitrary options to identify the client or to pass custom metadata
*/
readonly customOptions?: TCustomOptions;

@@ -73,0 +85,0 @@ };

@@ -436,3 +436,3 @@ import type { TupleToUnion } from 'type-fest';

*/
export type string_app_id = id;
export type string_app_id = id | 'app';
/**

@@ -443,3 +443,3 @@ * End user identifier

*/
export type string_user_id = id;
export type string_user_id = id | string_email;
/**

@@ -446,0 +446,0 @@ * Semantic helper

{
"name": "@promptbook/fake-llm",
"version": "0.88.0-12",
"version": "0.89.0-1",
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",

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

"peerDependencies": {
"@promptbook/core": "0.88.0-12"
"@promptbook/core": "0.89.0-1"
},

@@ -53,0 +53,0 @@ "dependencies": {

@@ -64,2 +64,4 @@ <!-- โš ๏ธ WARNING: This code has been generated so that any manual changes will be overwritten -->

It's a revolution of writing software in **plain human language** that is understandable and executable by both humans and machines โ€“ and it's going to change everything!

@@ -132,2 +134,4 @@

We also have a community of developers and users of **Promptbook**:

@@ -139,6 +143,8 @@

- [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
- [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
- [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
And **Promptbook.studio** branded socials:
- [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)

@@ -150,2 +156,5 @@

- [Promptujeme.cz](https://www.promptujeme.cz/)

@@ -168,2 +177,4 @@ - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)

Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).

@@ -218,2 +229,4 @@

### **How:** Knowledge, Instruments and Actions

@@ -307,4 +320,8 @@

_Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
### ๐Ÿ’ฏ Core concepts

@@ -311,0 +328,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