@lostgradient/operative-openai 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,213 @@
1
+ import { buildState, findBlock, ProviderContractError } from '@lostgradient/operative/provider-kit';
2
+ /**
3
+ * Normalizes an OpenAI Chat Completions streaming response into a
4
+ * provider-agnostic AsyncIterable of StreamEvents.
5
+ *
6
+ * Handles `delta.content` for text, `delta.tool_calls` for tool calls,
7
+ * `finish_reason` for completion, and `usage` for token tracking.
8
+ */
9
+ export async function* normalizeOpenAIStream(stream, dependencies = {
10
+ buildState,
11
+ findBlock,
12
+ }, options = {}) {
13
+ const messageId = options.messageId ?? 'message';
14
+ let textPartSequence = 0;
15
+ let textPartComplete = false;
16
+ const { buildState: dependencyBuildState, findBlock: dependencyFindBlock } = dependencies;
17
+ const state = {
18
+ blocks: [],
19
+ hasUsageData: false,
20
+ promptTokens: undefined,
21
+ completionTokens: undefined,
22
+ };
23
+ const { blocks } = state;
24
+ /** Map from OpenAI tool call index → our tracker */
25
+ const toolTrackers = new Map();
26
+ let accumulatedText = '';
27
+ let textBlockId;
28
+ for await (const chunk of stream) {
29
+ // Handle usage before checking for choices — OpenAI sends a final
30
+ // usage-only chunk with choices: [] when stream_options.include_usage
31
+ // is enabled.
32
+ if (chunk.usage) {
33
+ state.hasUsageData = true;
34
+ state.promptTokens = chunk.usage.prompt_tokens ?? 0;
35
+ state.completionTokens = chunk.usage.completion_tokens ?? 0;
36
+ yield {
37
+ type: 'stream:usage',
38
+ usage: {
39
+ prompt: state.promptTokens,
40
+ completion: state.completionTokens,
41
+ total: chunk.usage.total_tokens ?? state.promptTokens + state.completionTokens,
42
+ },
43
+ };
44
+ }
45
+ const choice = chunk.choices[0];
46
+ if (!choice)
47
+ continue;
48
+ const { delta, finish_reason } = choice;
49
+ for (const field of ['audio', 'function_call']) {
50
+ if (delta[field] !== undefined && delta[field] !== null) {
51
+ // The stream ends at its error: nothing follows it, not even `stream:complete`.
52
+ yield {
53
+ type: 'stream:error',
54
+ error: new ProviderContractError({
55
+ provider: 'openai',
56
+ reason: 'unlisted-block',
57
+ blockType: field,
58
+ partIndex: 0,
59
+ usage: undefined,
60
+ }),
61
+ };
62
+ return;
63
+ }
64
+ }
65
+ // Handle text content
66
+ if (delta.content !== undefined && delta.content !== null && delta.content !== '') {
67
+ // Lazily create a text block
68
+ if (!textBlockId) {
69
+ textBlockId = `text-${blocks.length}`;
70
+ const block = {
71
+ id: textBlockId,
72
+ type: 'text',
73
+ index: blocks.length,
74
+ content: '',
75
+ complete: false,
76
+ };
77
+ blocks.push(block);
78
+ yield { type: 'stream:block-start', block: { ...block } };
79
+ }
80
+ if (textPartSequence === 0)
81
+ yield { type: 'stream:part-start', messageId, partIndex: 0, kind: 'text' };
82
+ textPartSequence += 1;
83
+ yield {
84
+ type: 'stream:part-delta',
85
+ messageId,
86
+ partIndex: 0,
87
+ sequence: textPartSequence,
88
+ delta: { kind: 'text', text: delta.content },
89
+ };
90
+ const block = dependencyFindBlock(blocks, textBlockId);
91
+ if (block) {
92
+ block.content += delta.content;
93
+ accumulatedText += delta.content;
94
+ yield {
95
+ type: 'stream:block-delta',
96
+ block: { ...block },
97
+ delta: delta.content,
98
+ };
99
+ yield {
100
+ type: 'stream:text-delta',
101
+ content: delta.content,
102
+ accumulated: accumulatedText,
103
+ };
104
+ }
105
+ }
106
+ // Handle tool calls
107
+ if (delta.tool_calls) {
108
+ for (const toolCall of delta.tool_calls) {
109
+ const { index } = toolCall;
110
+ let tracker = toolTrackers.get(index);
111
+ if (!tracker && toolCall.id && toolCall.function?.name) {
112
+ // New tool call
113
+ const blockId = toolCall.id;
114
+ const toolName = toolCall.function.name;
115
+ tracker = { blockId, toolName, arguments: '' };
116
+ toolTrackers.set(index, tracker);
117
+ const block = {
118
+ id: blockId,
119
+ type: 'tool-call',
120
+ index: blocks.length,
121
+ content: '',
122
+ complete: false,
123
+ toolName,
124
+ partialArguments: '',
125
+ };
126
+ blocks.push(block);
127
+ yield { type: 'stream:block-start', block: { ...block } };
128
+ yield { type: 'stream:tool-call-start', toolName, blockId };
129
+ }
130
+ if (tracker && toolCall.function?.arguments) {
131
+ const args = toolCall.function.arguments;
132
+ tracker.arguments += args;
133
+ const block = dependencyFindBlock(blocks, tracker.blockId);
134
+ if (block) {
135
+ block.content += args;
136
+ block.partialArguments = tracker.arguments;
137
+ }
138
+ yield {
139
+ type: 'stream:block-delta',
140
+ block: block
141
+ ? { ...block }
142
+ : {
143
+ id: tracker.blockId,
144
+ type: 'tool-call',
145
+ index: 0,
146
+ content: tracker.arguments,
147
+ complete: false,
148
+ toolName: tracker.toolName,
149
+ partialArguments: tracker.arguments,
150
+ },
151
+ delta: args,
152
+ };
153
+ yield {
154
+ type: 'stream:tool-call-delta',
155
+ toolName: tracker.toolName,
156
+ blockId: tracker.blockId,
157
+ partialArguments: tracker.arguments,
158
+ };
159
+ }
160
+ }
161
+ }
162
+ // Handle finish — complete blocks immediately but defer the
163
+ // stream:complete event until after the loop so that a trailing
164
+ // usage-only chunk (OpenAI's stream_options.include_usage) is captured.
165
+ if (finish_reason) {
166
+ if (textPartSequence > 0 && !textPartComplete) {
167
+ textPartComplete = true;
168
+ yield {
169
+ type: 'stream:part-complete',
170
+ messageId,
171
+ partIndex: 0,
172
+ part: { type: 'text', text: accumulatedText },
173
+ };
174
+ }
175
+ // Complete the text block if one exists
176
+ if (textBlockId) {
177
+ const textBlock = dependencyFindBlock(blocks, textBlockId);
178
+ if (textBlock) {
179
+ textBlock.complete = true;
180
+ yield { type: 'stream:block-complete', block: { ...textBlock } };
181
+ }
182
+ }
183
+ // Complete all tool call blocks
184
+ for (const [, tracker] of toolTrackers) {
185
+ const block = dependencyFindBlock(blocks, tracker.blockId);
186
+ if (block) {
187
+ block.complete = true;
188
+ yield { type: 'stream:block-complete', block: { ...block } };
189
+ }
190
+ let parsedArgs = tracker.arguments;
191
+ try {
192
+ parsedArgs = JSON.parse(tracker.arguments);
193
+ }
194
+ catch {
195
+ // Keep as string if not valid JSON
196
+ }
197
+ yield {
198
+ type: 'stream:tool-call-complete',
199
+ toolName: tracker.toolName,
200
+ blockId: tracker.blockId,
201
+ arguments: parsedArgs,
202
+ };
203
+ }
204
+ }
205
+ }
206
+ // Emit stream:complete after the loop so any trailing usage-only chunk
207
+ // has been processed and buildState() includes the final usage data.
208
+ const finalState = {
209
+ ...dependencyBuildState(state),
210
+ complete: true,
211
+ };
212
+ yield { type: 'stream:complete', state: finalState };
213
+ }
@@ -0,0 +1,19 @@
1
+ import type { OpenAIChatCompletion, OpenAIChatCompletionChunk } from "../openai-types.js";
2
+ /** A completion with one text choice and usage. */
3
+ export declare const openAITextResponse: OpenAIChatCompletion;
4
+ /** A completion whose only content is a tool call, with usage. */
5
+ export declare const openAIToolCallResponse: OpenAIChatCompletion;
6
+ /** A completion carrying both text and a tool call, with usage. */
7
+ export declare const openAIMixedResponse: OpenAIChatCompletion;
8
+ /** A completion that omits usage. */
9
+ export declare const openAINoUsageResponse: OpenAIChatCompletion;
10
+ /** A stream of text deltas ending in a finish reason and usage. */
11
+ export declare const openAIStreamTextChunks: OpenAIChatCompletionChunk[];
12
+ /** A stream that builds one tool call across deltas. */
13
+ export declare const openAIStreamToolCallChunks: OpenAIChatCompletionChunk[];
14
+ /** A stream that carries text and then a tool call. */
15
+ export declare const openAIStreamMixedChunks: OpenAIChatCompletionChunk[];
16
+ /** A stream with no content, only a finish reason and usage. */
17
+ export declare const openAIStreamEmptyChunks: OpenAIChatCompletionChunk[];
18
+ /** A stream that builds several tool calls, one per index. */
19
+ export declare const openAIStreamMultiToolChunks: OpenAIChatCompletionChunk[];
@@ -0,0 +1,229 @@
1
+ /** A completion with one text choice and usage. */
2
+ export const openAITextResponse = {
3
+ choices: [
4
+ {
5
+ message: { content: 'Hello from OpenAI!' },
6
+ finish_reason: 'stop',
7
+ },
8
+ ],
9
+ usage: { prompt_tokens: 10, completion_tokens: 5, total_tokens: 15 },
10
+ };
11
+ /** A completion whose only content is a tool call, with usage. */
12
+ export const openAIToolCallResponse = {
13
+ choices: [
14
+ {
15
+ message: {
16
+ content: null,
17
+ tool_calls: [
18
+ {
19
+ id: 'call_01',
20
+ type: 'function',
21
+ function: {
22
+ name: 'get_weather',
23
+ arguments: '{"location":"San Francisco"}',
24
+ },
25
+ },
26
+ ],
27
+ },
28
+ finish_reason: 'tool_calls',
29
+ },
30
+ ],
31
+ usage: { prompt_tokens: 15, completion_tokens: 20, total_tokens: 35 },
32
+ };
33
+ /** A completion carrying both text and a tool call, with usage. */
34
+ export const openAIMixedResponse = {
35
+ choices: [
36
+ {
37
+ message: {
38
+ content: 'Let me check the weather.',
39
+ tool_calls: [
40
+ {
41
+ id: 'call_02',
42
+ type: 'function',
43
+ function: {
44
+ name: 'get_weather',
45
+ arguments: '{"location":"New York"}',
46
+ },
47
+ },
48
+ ],
49
+ },
50
+ finish_reason: 'tool_calls',
51
+ },
52
+ ],
53
+ usage: { prompt_tokens: 20, completion_tokens: 25, total_tokens: 45 },
54
+ };
55
+ /** A completion that omits usage. */
56
+ export const openAINoUsageResponse = {
57
+ choices: [
58
+ {
59
+ message: { content: 'No usage info.' },
60
+ finish_reason: 'stop',
61
+ },
62
+ ],
63
+ };
64
+ /** A stream of text deltas ending in a finish reason and usage. */
65
+ export const openAIStreamTextChunks = [
66
+ { choices: [{ delta: { content: 'Hello ' }, finish_reason: null }], usage: null },
67
+ { choices: [{ delta: { content: 'from OpenAI!' }, finish_reason: null }], usage: null },
68
+ {
69
+ choices: [{ delta: {}, finish_reason: 'stop' }],
70
+ usage: { prompt_tokens: 10, completion_tokens: 5, total_tokens: 15 },
71
+ },
72
+ ];
73
+ /** A stream that builds one tool call across deltas. */
74
+ export const openAIStreamToolCallChunks = [
75
+ {
76
+ choices: [
77
+ {
78
+ delta: {
79
+ tool_calls: [
80
+ {
81
+ index: 0,
82
+ id: 'call_01',
83
+ type: 'function',
84
+ function: { name: 'get_weather', arguments: '' },
85
+ },
86
+ ],
87
+ },
88
+ finish_reason: null,
89
+ },
90
+ ],
91
+ usage: null,
92
+ },
93
+ {
94
+ choices: [
95
+ {
96
+ delta: {
97
+ tool_calls: [{ index: 0, function: { arguments: '{"location":' } }],
98
+ },
99
+ finish_reason: null,
100
+ },
101
+ ],
102
+ usage: null,
103
+ },
104
+ {
105
+ choices: [
106
+ {
107
+ delta: {
108
+ tool_calls: [{ index: 0, function: { arguments: '"San Francisco"}' } }],
109
+ },
110
+ finish_reason: null,
111
+ },
112
+ ],
113
+ usage: null,
114
+ },
115
+ {
116
+ choices: [{ delta: {}, finish_reason: 'tool_calls' }],
117
+ usage: { prompt_tokens: 15, completion_tokens: 20, total_tokens: 35 },
118
+ },
119
+ ];
120
+ /** A stream that carries text and then a tool call. */
121
+ export const openAIStreamMixedChunks = [
122
+ { choices: [{ delta: { content: 'Checking ' }, finish_reason: null }], usage: null },
123
+ { choices: [{ delta: { content: 'weather.' }, finish_reason: null }], usage: null },
124
+ {
125
+ choices: [
126
+ {
127
+ delta: {
128
+ tool_calls: [
129
+ {
130
+ index: 0,
131
+ id: 'call_mixed_01',
132
+ type: 'function',
133
+ function: { name: 'get_weather', arguments: '{"location":' },
134
+ },
135
+ ],
136
+ },
137
+ finish_reason: null,
138
+ },
139
+ ],
140
+ usage: null,
141
+ },
142
+ {
143
+ choices: [
144
+ {
145
+ delta: {
146
+ tool_calls: [{ index: 0, function: { arguments: '"NYC"}' } }],
147
+ },
148
+ finish_reason: null,
149
+ },
150
+ ],
151
+ usage: null,
152
+ },
153
+ {
154
+ choices: [{ delta: {}, finish_reason: 'stop' }],
155
+ usage: { prompt_tokens: 10, completion_tokens: 8, total_tokens: 18 },
156
+ },
157
+ ];
158
+ /** A stream with no content, only a finish reason and usage. */
159
+ export const openAIStreamEmptyChunks = [
160
+ {
161
+ choices: [{ delta: {}, finish_reason: 'stop' }],
162
+ usage: { prompt_tokens: 5, completion_tokens: 0, total_tokens: 5 },
163
+ },
164
+ ];
165
+ /** A stream that builds several tool calls, one per index. */
166
+ export const openAIStreamMultiToolChunks = [
167
+ {
168
+ choices: [
169
+ {
170
+ delta: {
171
+ tool_calls: [
172
+ {
173
+ index: 0,
174
+ id: 'call_multi_01',
175
+ type: 'function',
176
+ function: { name: 'get_weather', arguments: '' },
177
+ },
178
+ ],
179
+ },
180
+ finish_reason: null,
181
+ },
182
+ ],
183
+ usage: null,
184
+ },
185
+ {
186
+ choices: [
187
+ {
188
+ delta: {
189
+ tool_calls: [{ index: 0, function: { arguments: '{"location":"Paris"}' } }],
190
+ },
191
+ finish_reason: null,
192
+ },
193
+ ],
194
+ usage: null,
195
+ },
196
+ {
197
+ choices: [
198
+ {
199
+ delta: {
200
+ tool_calls: [
201
+ {
202
+ index: 1,
203
+ id: 'call_multi_02',
204
+ type: 'function',
205
+ function: { name: 'get_weather', arguments: '' },
206
+ },
207
+ ],
208
+ },
209
+ finish_reason: null,
210
+ },
211
+ ],
212
+ usage: null,
213
+ },
214
+ {
215
+ choices: [
216
+ {
217
+ delta: {
218
+ tool_calls: [{ index: 1, function: { arguments: '{"location":"London"}' } }],
219
+ },
220
+ finish_reason: null,
221
+ },
222
+ ],
223
+ usage: null,
224
+ },
225
+ {
226
+ choices: [{ delta: {}, finish_reason: 'tool_calls' }],
227
+ usage: { prompt_tokens: 25, completion_tokens: 30, total_tokens: 55 },
228
+ },
229
+ ];
@@ -0,0 +1,36 @@
1
+ import type { OpenAIChatCompletion, OpenAIChatCompletionChunk, OpenAIChatCompletionCreateRequest, OpenAIClient, OpenAIRequestOptions, OpenAIStreamingClient } from "../openai-types.js";
2
+ /** A client that returns queued Chat Completions responses and records what it was called with. */
3
+ export interface MockOpenAIClient extends OpenAIClient {
4
+ /** The request bodies received, in call order. */
5
+ _calls: OpenAIChatCompletionCreateRequest[];
6
+ /** The request options (second `create` argument) recorded per call. */
7
+ _requestOptions: Array<OpenAIRequestOptions | undefined>;
8
+ /** The queued responses, returned in order. */
9
+ _responses: OpenAIChatCompletion[];
10
+ /** The queued errors; each is thrown, in order, before any response is returned. */
11
+ _errors: Error[];
12
+ }
13
+ /**
14
+ * Creates a mock OpenAI client that records calls and returns queued responses.
15
+ */
16
+ export declare function createMockOpenAIClient(responses: OpenAIChatCompletion[], errors?: Error[]): MockOpenAIClient;
17
+ /** A streaming client that yields queued chunk sequences and records what it was called with. */
18
+ export interface MockOpenAIStreamingClient extends OpenAIStreamingClient {
19
+ /** The request bodies received, in call order. */
20
+ _calls: OpenAIChatCompletionCreateRequest[];
21
+ /** The request options (second `create` argument) recorded per call. */
22
+ _requestOptions: Array<OpenAIRequestOptions | undefined>;
23
+ /** The queued chunk sequences, one per call, in order. */
24
+ _chunkSequences: OpenAIChatCompletionChunk[][];
25
+ /** The queued errors, thrown in order. */
26
+ _errors: Error[];
27
+ }
28
+ /**
29
+ * Creates a mock OpenAI streaming client that yields queued chunk sequences.
30
+ *
31
+ * When `errorAfterEvents` is set, the async generator yields that many chunks
32
+ * from the current sequence before throwing the next error from `errors`.
33
+ */
34
+ export declare function createMockOpenAIStreamingClient(chunkSequences: OpenAIChatCompletionChunk[][], errors?: Error[], options?: {
35
+ errorAfterEvents?: number;
36
+ }): MockOpenAIStreamingClient;
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Creates a mock OpenAI client that records calls and returns queued responses.
3
+ */
4
+ export function createMockOpenAIClient(responses, errors = []) {
5
+ const calls = [];
6
+ const requestOptions = [];
7
+ let responseIndex = 0;
8
+ let errorIndex = 0;
9
+ return {
10
+ _calls: calls,
11
+ _requestOptions: requestOptions,
12
+ _responses: responses,
13
+ _errors: errors,
14
+ chat: {
15
+ completions: {
16
+ async create(params, options) {
17
+ calls.push(params);
18
+ requestOptions.push(options);
19
+ const error = errors[errorIndex];
20
+ if (error && errorIndex < errors.length) {
21
+ errorIndex++;
22
+ throw error;
23
+ }
24
+ const response = responses[responseIndex];
25
+ if (!response) {
26
+ throw new Error(`MockOpenAIClient: no response at index ${responseIndex} (${responses.length} total)`);
27
+ }
28
+ responseIndex++;
29
+ return response;
30
+ },
31
+ },
32
+ },
33
+ };
34
+ }
35
+ /**
36
+ * Creates a mock OpenAI streaming client that yields queued chunk sequences.
37
+ *
38
+ * When `errorAfterEvents` is set, the async generator yields that many chunks
39
+ * from the current sequence before throwing the next error from `errors`.
40
+ */
41
+ export function createMockOpenAIStreamingClient(chunkSequences, errors = [], options) {
42
+ const calls = [];
43
+ const requestOptions = [];
44
+ let sequenceIndex = 0;
45
+ let errorIndex = 0;
46
+ const errorAfterEvents = options?.errorAfterEvents;
47
+ return {
48
+ _calls: calls,
49
+ _requestOptions: requestOptions,
50
+ _chunkSequences: chunkSequences,
51
+ _errors: errors,
52
+ chat: {
53
+ completions: {
54
+ create(params, createOptions) {
55
+ calls.push(params);
56
+ requestOptions.push(createOptions);
57
+ const error = errors[errorIndex];
58
+ if (error && errorIndex < errors.length && errorAfterEvents === undefined) {
59
+ errorIndex++;
60
+ throw error;
61
+ }
62
+ const chunks = chunkSequences[sequenceIndex++] ?? [];
63
+ const midStreamError = errorAfterEvents !== undefined && errorIndex < errors.length
64
+ ? errors[errorIndex++]
65
+ : undefined;
66
+ const threshold = errorAfterEvents ?? 0;
67
+ return (async function* () {
68
+ let yielded = 0;
69
+ for (const chunk of chunks) {
70
+ if (midStreamError && yielded >= threshold) {
71
+ throw midStreamError;
72
+ }
73
+ yield chunk;
74
+ yielded++;
75
+ }
76
+ if (midStreamError && yielded <= threshold) {
77
+ throw midStreamError;
78
+ }
79
+ })();
80
+ },
81
+ },
82
+ },
83
+ };
84
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Test doubles for the OpenAI provider — `@lostgradient/operative-openai/testing`.
3
+ *
4
+ * Canned Chat Completions responses and streaming chunks, and mock clients that record the
5
+ * requests they receive, so a test can drive `createOpenAIProvider` and its siblings without the
6
+ * OpenAI SDK or a network.
7
+ *
8
+ * @module operative-openai/testing
9
+ */
10
+ export { openAIMixedResponse, openAINoUsageResponse, openAIStreamEmptyChunks, openAIStreamMixedChunks, openAIStreamMultiToolChunks, openAIStreamTextChunks, openAIStreamToolCallChunks, openAITextResponse, openAIToolCallResponse, } from "./test/openai-fixtures.js";
11
+ export { createMockOpenAIClient, createMockOpenAIStreamingClient, } from "./test/openai-mock-clients.js";
12
+ export type { MockOpenAIClient, MockOpenAIStreamingClient } from "./test/openai-mock-clients.js";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Test doubles for the OpenAI provider — `@lostgradient/operative-openai/testing`.
3
+ *
4
+ * Canned Chat Completions responses and streaming chunks, and mock clients that record the
5
+ * requests they receive, so a test can drive `createOpenAIProvider` and its siblings without the
6
+ * OpenAI SDK or a network.
7
+ *
8
+ * @module operative-openai/testing
9
+ */
10
+ export { openAIMixedResponse, openAINoUsageResponse, openAIStreamEmptyChunks, openAIStreamMixedChunks, openAIStreamMultiToolChunks, openAIStreamTextChunks, openAIStreamToolCallChunks, openAITextResponse, openAIToolCallResponse, } from "./test/openai-fixtures.js";
11
+ export { createMockOpenAIClient, createMockOpenAIStreamingClient, } from "./test/openai-mock-clients.js";
package/package.json CHANGED
@@ -1,6 +1,34 @@
1
1
  {
2
2
  "name": "@lostgradient/operative-openai",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "The OpenAI model provider for Operative: a lazy-loading generate function for the Chat Completions API and any OpenAI-compatible endpoint, streaming, batches, the embedder, and the test doubles that exercise them.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/stevekinney/corvidae.git",
11
+ "directory": "packages/operative-openai"
12
+ },
13
+ "engines": {
14
+ "node": ">=22",
15
+ "bun": ">=1.4.0"
16
+ },
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "./testing": {
23
+ "types": "./dist/testing.d.ts",
24
+ "default": "./dist/testing.js"
25
+ }
26
+ },
27
+ "dependencies": {
28
+ "@lostgradient/operative": "0.18.0",
29
+ "armorer": "2.5.0",
30
+ "conversationalist": "2.2.0",
31
+ "openai": "^7.8.0"
32
+ },
33
+ "peerDependencies": {}
6
34
  }