Socket
Socket
Sign inDemoInstall

@promptbook/remote-client

Package Overview
Dependencies
Maintainers
1
Versions
366
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.24.0 to 0.25.0

14

esm/typings/classes/PromptTemplatePipelineLibrary.d.ts

@@ -9,5 +9,14 @@ import { string_name } from '.././types/typeAliases';

import { PromptTemplatePipeline } from './PromptTemplatePipeline';
/**
* Options for PromptTemplatePipelineLibrary
*/
type PromptTemplatePipelineLibraryOptions = {
/**
* The library of prompt template pipelines
*/
readonly library: Record<string_name, PromptTemplatePipeline>;
readonly settings: CreatePtpExecutorSettings;
/**
* Optional settings for creating a PromptTemplatePipelineExecutor
*/
readonly settings?: Partial<CreatePtpExecutorSettings>;
};

@@ -32,5 +41,6 @@ /**

* @param ptbkSources contents of .ptbk.md or .ptbk.json files
* @param settings settings for creating executor functions
* @returns PromptTemplatePipelineLibrary
*/
static fromSources(ptbkSources: Record<string_name, PromptTemplatePipelineJson | PromptTemplatePipelineString>, settings: CreatePtpExecutorSettings): PromptTemplatePipelineLibrary;
static fromSources(ptbkSources: Record<string_name, PromptTemplatePipelineJson | PromptTemplatePipelineString>, settings?: Partial<CreatePtpExecutorSettings>): PromptTemplatePipelineLibrary;
private constructor();

@@ -37,0 +47,0 @@ /**

@@ -8,10 +8,22 @@ import { PromptTemplatePipeline } from '../classes/PromptTemplatePipeline';

*
* !!!!!!! Make default in version 24.1.0
* @default 3
*/
readonly maxNaturalExecutionAttempts: number;
}
/**
* Options for creating a PTP (Prompt Template Pipeline) executor
*/
interface CreatePtpExecutorOptions {
/**
* The Prompt Template Pipeline (PTP) to be executed
*/
readonly ptp: PromptTemplatePipeline;
/**
* The execution tools to be used during the execution of the PTP
*/
readonly tools: ExecutionTools;
readonly settings: CreatePtpExecutorSettings;
/**
* Optional settings for the PTP executor
*/
readonly settings?: Partial<CreatePtpExecutorSettings>;
}

@@ -18,0 +30,0 @@ /**

4

package.json
{
"name": "@promptbook/remote-client",
"version": "0.24.0",
"version": "0.25.0",
"description": "Library to supercharge your use of large language models",

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

"peerDependencies": {
"@promptbook/core": "0.24.0"
"@promptbook/core": "0.25.0"
},

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

@@ -9,5 +9,14 @@ import { string_name } from '.././types/typeAliases';

import { PromptTemplatePipeline } from './PromptTemplatePipeline';
/**
* Options for PromptTemplatePipelineLibrary
*/
type PromptTemplatePipelineLibraryOptions = {
/**
* The library of prompt template pipelines
*/
readonly library: Record<string_name, PromptTemplatePipeline>;
readonly settings: CreatePtpExecutorSettings;
/**
* Optional settings for creating a PromptTemplatePipelineExecutor
*/
readonly settings?: Partial<CreatePtpExecutorSettings>;
};

@@ -32,5 +41,6 @@ /**

* @param ptbkSources contents of .ptbk.md or .ptbk.json files
* @param settings settings for creating executor functions
* @returns PromptTemplatePipelineLibrary
*/
static fromSources(ptbkSources: Record<string_name, PromptTemplatePipelineJson | PromptTemplatePipelineString>, settings: CreatePtpExecutorSettings): PromptTemplatePipelineLibrary;
static fromSources(ptbkSources: Record<string_name, PromptTemplatePipelineJson | PromptTemplatePipelineString>, settings?: Partial<CreatePtpExecutorSettings>): PromptTemplatePipelineLibrary;
private constructor();

@@ -37,0 +47,0 @@ /**

@@ -8,10 +8,22 @@ import { PromptTemplatePipeline } from '../classes/PromptTemplatePipeline';

*
* !!!!!!! Make default in version 24.1.0
* @default 3
*/
readonly maxNaturalExecutionAttempts: number;
}
/**
* Options for creating a PTP (Prompt Template Pipeline) executor
*/
interface CreatePtpExecutorOptions {
/**
* The Prompt Template Pipeline (PTP) to be executed
*/
readonly ptp: PromptTemplatePipeline;
/**
* The execution tools to be used during the execution of the PTP
*/
readonly tools: ExecutionTools;
readonly settings: CreatePtpExecutorSettings;
/**
* Optional settings for the PTP executor
*/
readonly settings?: Partial<CreatePtpExecutorSettings>;
}

@@ -18,0 +30,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc