@promptbook/node 0.110.0-4 → 0.110.0-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.es.js +711 -438
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/openai.index.d.ts +0 -4
- package/esm/typings/src/_packages/types.index.d.ts +0 -2
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +0 -1
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +0 -1
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +40 -1
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +30 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +711 -438
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/llm-providers/openai/OpenAiAgentExecutionTools.d.ts +0 -43
- package/esm/typings/src/llm-providers/openai/createOpenAiAgentExecutionTools.d.ts +0 -11
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import OpenAI from 'openai';
|
|
2
|
-
import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
|
|
3
|
-
import type { ChatPromptResult } from '../../execution/PromptResult';
|
|
4
|
-
import type { Prompt } from '../../types/Prompt';
|
|
5
|
-
import type { string_markdown, string_markdown_text, string_title } from '../../types/typeAliases';
|
|
6
|
-
import type { OpenAiCompatibleExecutionToolsNonProxiedOptions } from './OpenAiCompatibleExecutionToolsOptions';
|
|
7
|
-
import { OpenAiExecutionTools } from './OpenAiExecutionTools';
|
|
8
|
-
/**
|
|
9
|
-
* Options for OpenAiAgentExecutionTools
|
|
10
|
-
*/
|
|
11
|
-
export type OpenAiAgentExecutionToolsOptions = OpenAiCompatibleExecutionToolsNonProxiedOptions & {
|
|
12
|
-
/**
|
|
13
|
-
* ID of the vector store to use for file search
|
|
14
|
-
*/
|
|
15
|
-
readonly vectorStoreId?: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Execution Tools for calling OpenAI API using the Responses API (Agents)
|
|
19
|
-
*
|
|
20
|
-
* @public exported from `@promptbook/openai`
|
|
21
|
-
*/
|
|
22
|
-
export declare class OpenAiAgentExecutionTools extends OpenAiExecutionTools implements LlmExecutionTools {
|
|
23
|
-
readonly vectorStoreId?: string;
|
|
24
|
-
constructor(options: OpenAiAgentExecutionToolsOptions);
|
|
25
|
-
get title(): string_title & string_markdown_text;
|
|
26
|
-
get description(): string_markdown;
|
|
27
|
-
/**
|
|
28
|
-
* Calls OpenAI API to use a chat model with streaming.
|
|
29
|
-
*/
|
|
30
|
-
callChatModelStream(prompt: Prompt, onProgress: (chunk: ChatPromptResult) => void): Promise<ChatPromptResult>;
|
|
31
|
-
/**
|
|
32
|
-
* Creates a vector store from knowledge sources
|
|
33
|
-
*/
|
|
34
|
-
static createVectorStore(client: OpenAI, name: string, knowledgeSources: ReadonlyArray<string>): Promise<string>;
|
|
35
|
-
/**
|
|
36
|
-
* Discriminant for type guards
|
|
37
|
-
*/
|
|
38
|
-
protected get discriminant(): string;
|
|
39
|
-
/**
|
|
40
|
-
* Type guard to check if given `LlmExecutionTools` are instanceof `OpenAiAgentExecutionTools`
|
|
41
|
-
*/
|
|
42
|
-
static isOpenAiAgentExecutionTools(llmExecutionTools: LlmExecutionTools): llmExecutionTools is OpenAiAgentExecutionTools;
|
|
43
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OpenAiAgentExecutionTools } from './OpenAiAgentExecutionTools';
|
|
2
|
-
import type { OpenAiAgentExecutionToolsOptions } from './OpenAiAgentExecutionTools';
|
|
3
|
-
/**
|
|
4
|
-
* Execution Tools for calling OpenAI API using Responses API
|
|
5
|
-
*
|
|
6
|
-
* @public exported from `@promptbook/openai`
|
|
7
|
-
*/
|
|
8
|
-
export declare const createOpenAiAgentExecutionTools: ((options: OpenAiAgentExecutionToolsOptions) => OpenAiAgentExecutionTools) & {
|
|
9
|
-
packageName: string;
|
|
10
|
-
className: string;
|
|
11
|
-
};
|