@promptbook/azure-openai
Advanced tools
Comparing version 0.69.0-4 to 0.69.0-5
@@ -9,3 +9,3 @@ import { OpenAIClient, AzureKeyCredential } from '@azure/openai'; | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.69.0-3'; | ||
var PROMPTBOOK_VERSION = '0.69.0-4'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -12,0 +12,0 @@ |
@@ -41,3 +41,3 @@ import { PROMPTBOOK_VERSION } from '../version'; | ||
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful'; | ||
import { createPipelineExecutor } from '../execution/createPipelineExecutor/createPipelineExecutor'; | ||
import { createPipelineExecutor } from '../execution/createPipelineExecutor/00-createPipelineExecutor'; | ||
import { embeddingVectorToString } from '../execution/embeddingVectorToString'; | ||
@@ -44,0 +44,0 @@ import { ZERO_USAGE } from '../execution/utils/addUsage'; |
@@ -19,4 +19,4 @@ import type { PipelineCollection } from '../collection/PipelineCollection'; | ||
import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions'; | ||
import type { CreatePipelineExecutorOptions } from '../execution/createPipelineExecutor/CreatePipelineExecutorOptions'; | ||
import type { CreatePipelineExecutorSettings } from '../execution/createPipelineExecutor/CreatePipelineExecutorSettings'; | ||
import type { CreatePipelineExecutorOptions } from '../execution/createPipelineExecutor/00-CreatePipelineExecutorOptions'; | ||
import type { CreatePipelineExecutorSettings } from '../execution/createPipelineExecutor/00-CreatePipelineExecutorSettings'; | ||
import type { EmbeddingVector } from '../execution/EmbeddingVector'; | ||
@@ -23,0 +23,0 @@ import type { ExecutionTools } from '../execution/ExecutionTools'; |
@@ -6,4 +6,30 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
/** | ||
* @private @@@ | ||
* @@@ | ||
* | ||
* @private internal type of `createPipelineExecutor` | ||
*/ | ||
export declare function filterJustOutputParameters(preparedPipeline: ReadonlyDeep<PipelineJson>, parametersToPass: Readonly<Parameters>, $warnings: PipelineExecutionError[], pipelineIdentification: string): Parameters; | ||
type FilterJustOutputParametersOptions = { | ||
/** | ||
* @@@ | ||
*/ | ||
readonly preparedPipeline: ReadonlyDeep<PipelineJson>; | ||
/** | ||
* @@@ | ||
*/ | ||
readonly parametersToPass: Readonly<Parameters>; | ||
/** | ||
* @@@ | ||
*/ | ||
readonly $warnings: PipelineExecutionError[]; | ||
/** | ||
* @@@ | ||
*/ | ||
readonly pipelineIdentification: string; | ||
}; | ||
/** | ||
* @@@ | ||
* | ||
* @private internal utility of `createPipelineExecutor` | ||
*/ | ||
export declare function filterJustOutputParameters(options: FilterJustOutputParametersOptions): Parameters; | ||
export {}; |
@@ -6,4 +6,6 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
/** | ||
* @private @@@ | ||
* @@@ | ||
* | ||
* @private internal utility of `createPipelineExecutor` | ||
*/ | ||
export declare function getContextForTemplate(template: ReadonlyDeep<TemplateJson>): Promise<string_parameter_value & string_markdown>; |
@@ -7,4 +7,22 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
/** | ||
* @private @@@ | ||
* @@@ | ||
* | ||
* @private internal type of `getKnowledgeForTemplate` | ||
*/ | ||
export declare function getKnowledgeForTemplate(preparedPipeline: ReadonlyDeep<PipelineJson>, template: ReadonlyDeep<TemplateJson>): Promise<string_parameter_value & string_markdown>; | ||
type GetKnowledgeForTemplateOptions = { | ||
/** | ||
* @@@ | ||
*/ | ||
readonly preparedPipeline: ReadonlyDeep<PipelineJson>; | ||
/** | ||
* @@@ | ||
*/ | ||
readonly template: ReadonlyDeep<TemplateJson>; | ||
}; | ||
/** | ||
* @@@ | ||
* | ||
* @private internal utility of `createPipelineExecutor` | ||
*/ | ||
export declare function getKnowledgeForTemplate(options: GetKnowledgeForTemplateOptions): Promise<string_parameter_value & string_markdown>; | ||
export {}; |
@@ -6,4 +6,26 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
/** | ||
* @private @@@ | ||
* @@@ | ||
* | ||
* @private internal type of `getReservedParametersForTemplate` | ||
*/ | ||
export declare function getReservedParametersForTemplate(preparedPipeline: ReadonlyDeep<PipelineJson>, template: ReadonlyDeep<TemplateJson>, pipelineIdentification: string): Promise<Readonly<ReservedParameters>>; | ||
type GetReservedParametersForTemplateOptions = { | ||
/** | ||
* @@@ | ||
*/ | ||
readonly preparedPipeline: ReadonlyDeep<PipelineJson>; | ||
/** | ||
* @@@ | ||
*/ | ||
readonly template: ReadonlyDeep<TemplateJson>; | ||
/** | ||
* @@@ | ||
*/ | ||
readonly pipelineIdentification: string; | ||
}; | ||
/** | ||
* @@@ | ||
* | ||
* @private internal utility of `createPipelineExecutor` | ||
*/ | ||
export declare function getReservedParametersForTemplate(options: GetReservedParametersForTemplateOptions): Promise<Readonly<ReservedParameters>>; | ||
export {}; |
@@ -6,4 +6,6 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
/** | ||
* @private @@@ | ||
* @@@ | ||
* | ||
* @private internal utility of `createPipelineExecutor` | ||
*/ | ||
export declare function getSamplesForTemplate(template: ReadonlyDeep<TemplateJson>): Promise<string_parameter_value & string_markdown>; |
@@ -0,5 +1,6 @@ | ||
import { ReadonlyDeep } from 'type-fest'; | ||
import type { ErrorJson } from '../errors/utils/ErrorJson'; | ||
import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson'; | ||
import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
import type { Parameters } from '../types/typeAliases'; | ||
import type { PipelineJson } from '../types/PipelineJson/PipelineJson'; | ||
import type { ErrorJson } from '../errors/utils/ErrorJson'; | ||
import type { PromptResultUsage } from './PromptResultUsage'; | ||
@@ -44,7 +45,8 @@ /** | ||
*/ | ||
readonly preparedPipeline: PipelineJson; | ||
readonly preparedPipeline: ReadonlyDeep<PipelineJson>; | ||
}; | ||
/** | ||
* TODO: !!!!!! Maybe add ReadonlyDeep< to all | ||
* TODO: [🧠] Should this file be in /execution or /types folder? | ||
* TODO: [🧠] Maybe constrain `ErrorJson` -> `ErrorJson & { name: 'PipelineExecutionError' | 'Error' }` | ||
*/ |
{ | ||
"name": "@promptbook/azure-openai", | ||
"version": "0.69.0-4", | ||
"version": "0.69.0-5", | ||
"description": "Supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.69.0-4" | ||
"@promptbook/core": "0.69.0-5" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
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
633412
498
11939