@workglow/openai 0.3.38 → 0.3.40

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.
Files changed (40) hide show
  1. package/dist/ai/OpenAiProvider.d.ts +2 -64
  2. package/dist/ai/OpenAiProvider.d.ts.map +1 -1
  3. package/dist/ai/OpenAiQueuedProvider.d.ts +2 -64
  4. package/dist/ai/OpenAiQueuedProvider.d.ts.map +1 -1
  5. package/dist/ai/common/OpenAI_CacheCheckpoint.d.ts +48 -0
  6. package/dist/ai/common/OpenAI_CacheCheckpoint.d.ts.map +1 -0
  7. package/dist/ai/common/OpenAI_Capabilities.d.ts +1 -1
  8. package/dist/ai/common/OpenAI_Capabilities.d.ts.map +1 -1
  9. package/dist/ai/common/OpenAI_CapabilitySets.d.ts +2 -1
  10. package/dist/ai/common/OpenAI_CapabilitySets.d.ts.map +1 -1
  11. package/dist/ai/common/OpenAI_Client.d.ts +34 -8
  12. package/dist/ai/common/OpenAI_Client.d.ts.map +1 -1
  13. package/dist/ai/common/OpenAI_JobRunFns.browser.d.ts.map +1 -1
  14. package/dist/ai/common/OpenAI_JobRunFns.d.ts.map +1 -1
  15. package/dist/ai/common/OpenAI_ModelInfo.d.ts +4 -3
  16. package/dist/ai/common/OpenAI_ModelInfo.d.ts.map +1 -1
  17. package/dist/ai/common/OpenAI_ModelSchema.d.ts +70 -3
  18. package/dist/ai/common/OpenAI_ModelSchema.d.ts.map +1 -1
  19. package/dist/ai/common/OpenAI_StructuredGeneration.d.ts.map +1 -1
  20. package/dist/ai/common/OpenAI_TextEmbedding.d.ts.map +1 -1
  21. package/dist/ai/common/OpenAI_TextGeneration.d.ts.map +1 -1
  22. package/dist/ai/common/OpenAI_TextRewriter.d.ts.map +1 -1
  23. package/dist/ai/common/OpenAI_TextSummary.d.ts.map +1 -1
  24. package/dist/ai/common/OpenAI_ToolCalling.d.ts +3 -2
  25. package/dist/ai/common/OpenAI_ToolCalling.d.ts.map +1 -1
  26. package/dist/ai/index.d.ts +5 -24
  27. package/dist/ai/index.d.ts.map +1 -1
  28. package/dist/ai/runtime.browser.d.ts +1 -0
  29. package/dist/ai/runtime.browser.d.ts.map +1 -1
  30. package/dist/ai/runtime.d.ts +1 -0
  31. package/dist/ai/runtime.d.ts.map +1 -1
  32. package/dist/ai-runtime.browser.js +238 -74
  33. package/dist/ai-runtime.browser.js.map +16 -15
  34. package/dist/ai-runtime.js +235 -69
  35. package/dist/ai-runtime.js.map +15 -14
  36. package/dist/ai.browser.js +31 -5
  37. package/dist/ai.browser.js.map +6 -6
  38. package/dist/ai.js +235 -72
  39. package/dist/ai.js.map +17 -16
  40. package/package.json +13 -12
@@ -5,70 +5,8 @@
5
5
  */
6
6
  import type { Capability, ModelRecord } from "@workglow/ai/worker";
7
7
  import { AiProvider } from "@workglow/ai/worker";
8
- declare const OpenAiProvider_base: new (promiseRunFns?: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
9
- capabilities?: string[] | undefined;
10
- description?: string | undefined;
11
- metadata?: {
12
- [x: string]: unknown;
13
- } | undefined;
14
- model_id?: string | undefined;
15
- provider: "OPENAI";
16
- provider_config: {
17
- base_url?: string | undefined;
18
- credential_key?: string | undefined;
19
- model_name: string;
20
- organization?: string | undefined;
21
- prompt_cache_key?: string | undefined;
22
- reasoning?: {
23
- effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
24
- mode?: "pro" | undefined;
25
- } | undefined;
26
- trustedBaseUrl?: boolean | undefined;
27
- };
28
- title?: string | undefined;
29
- }>[] | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, {
30
- capabilities?: string[] | undefined;
31
- description?: string | undefined;
32
- metadata?: {
33
- [x: string]: unknown;
34
- } | undefined;
35
- model_id?: string | undefined;
36
- provider: "OPENAI";
37
- provider_config: {
38
- base_url?: string | undefined;
39
- credential_key?: string | undefined;
40
- model_name: string;
41
- organization?: string | undefined;
42
- prompt_cache_key?: string | undefined;
43
- reasoning?: {
44
- effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
45
- mode?: "pro" | undefined;
46
- } | undefined;
47
- trustedBaseUrl?: boolean | undefined;
48
- };
49
- title?: string | undefined;
50
- }>> | undefined) => AiProvider<{
51
- capabilities?: string[] | undefined;
52
- description?: string | undefined;
53
- metadata?: {
54
- [x: string]: unknown;
55
- } | undefined;
56
- model_id?: string | undefined;
57
- provider: "OPENAI";
58
- provider_config: {
59
- base_url?: string | undefined;
60
- credential_key?: string | undefined;
61
- model_name: string;
62
- organization?: string | undefined;
63
- prompt_cache_key?: string | undefined;
64
- reasoning?: {
65
- effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
66
- mode?: "pro" | undefined;
67
- } | undefined;
68
- trustedBaseUrl?: boolean | undefined;
69
- };
70
- title?: string | undefined;
71
- }> & {
8
+ import type { OpenAiModelConfig } from "./common/OpenAI_ModelSchema";
9
+ declare const OpenAiProvider_base: new (promiseRunFns?: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, OpenAiModelConfig>[] | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, OpenAiModelConfig>> | undefined) => AiProvider<OpenAiModelConfig> & {
72
10
  readonly name: string;
73
11
  readonly displayName: string;
74
12
  readonly isLocal: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAiProvider.d.ts","sourceRoot":"","sources":["../../src/ai/OpenAiProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKjD;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,mBAGlC;IACS,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,UAAU,EAAE,CAEpE;IAED,UAAmB,gBAAgB,IAAI,SAAS;QAAE,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;KAAE,EAAE,CAElF;CACF"}
1
+ {"version":3,"file":"OpenAiProvider.d.ts","sourceRoot":"","sources":["../../src/ai/OpenAiProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;;;;;;;;AAErE;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,mBAGlC;IACS,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,UAAU,EAAE,CAEpE;IAED,UAAmB,gBAAgB,IAAI,SAAS;QAAE,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;KAAE,EAAE,CAElF;CACF"}
@@ -5,70 +5,8 @@
5
5
  */
6
6
  import type { Capability, ModelRecord } from "@workglow/ai";
7
7
  import { AiProvider } from "@workglow/ai";
8
- declare const OpenAiQueuedProvider_base: new (promiseRunFns?: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
9
- capabilities?: string[] | undefined;
10
- description?: string | undefined;
11
- metadata?: {
12
- [x: string]: unknown;
13
- } | undefined;
14
- model_id?: string | undefined;
15
- provider: "OPENAI";
16
- provider_config: {
17
- base_url?: string | undefined;
18
- credential_key?: string | undefined;
19
- model_name: string;
20
- organization?: string | undefined;
21
- prompt_cache_key?: string | undefined;
22
- reasoning?: {
23
- effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
24
- mode?: "pro" | undefined;
25
- } | undefined;
26
- trustedBaseUrl?: boolean | undefined;
27
- };
28
- title?: string | undefined;
29
- }>[] | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, {
30
- capabilities?: string[] | undefined;
31
- description?: string | undefined;
32
- metadata?: {
33
- [x: string]: unknown;
34
- } | undefined;
35
- model_id?: string | undefined;
36
- provider: "OPENAI";
37
- provider_config: {
38
- base_url?: string | undefined;
39
- credential_key?: string | undefined;
40
- model_name: string;
41
- organization?: string | undefined;
42
- prompt_cache_key?: string | undefined;
43
- reasoning?: {
44
- effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
45
- mode?: "pro" | undefined;
46
- } | undefined;
47
- trustedBaseUrl?: boolean | undefined;
48
- };
49
- title?: string | undefined;
50
- }>> | undefined) => AiProvider<{
51
- capabilities?: string[] | undefined;
52
- description?: string | undefined;
53
- metadata?: {
54
- [x: string]: unknown;
55
- } | undefined;
56
- model_id?: string | undefined;
57
- provider: "OPENAI";
58
- provider_config: {
59
- base_url?: string | undefined;
60
- credential_key?: string | undefined;
61
- model_name: string;
62
- organization?: string | undefined;
63
- prompt_cache_key?: string | undefined;
64
- reasoning?: {
65
- effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
66
- mode?: "pro" | undefined;
67
- } | undefined;
68
- trustedBaseUrl?: boolean | undefined;
69
- };
70
- title?: string | undefined;
71
- }> & {
8
+ import type { OpenAiModelConfig } from "./common/OpenAI_ModelSchema";
9
+ declare const OpenAiQueuedProvider_base: new (promiseRunFns?: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, OpenAiModelConfig>[] | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, OpenAiModelConfig>> | undefined) => AiProvider<OpenAiModelConfig> & {
72
10
  readonly name: string;
73
11
  readonly displayName: string;
74
12
  readonly isLocal: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAiQueuedProvider.d.ts","sourceRoot":"","sources":["../../src/ai/OpenAiQueuedProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAM1C;;;;;GAKG;AACH,qBAAa,oBAAqB,SAAQ,yBAGxC;IACS,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,UAAU,EAAE,CAEpE;IAED,UAAmB,gBAAgB,IAAI,SAAS;QAAE,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;KAAE,EAAE,CAElF;CACF"}
1
+ {"version":3,"file":"OpenAiQueuedProvider.d.ts","sourceRoot":"","sources":["../../src/ai/OpenAiQueuedProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;;;;;;;;AAErE;;;;;GAKG;AACH,qBAAa,oBAAqB,SAAQ,yBAGxC;IACS,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,UAAU,EAAE,CAEpE;IAED,UAAmB,gBAAgB,IAAI,SAAS;QAAE,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;KAAE,EAAE,CAElF;CACF"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { AiProviderRunFn, AiSessionContext, CacheCheckpointTaskInput, CacheCheckpointTaskOutput, ChatMessage, ToolDefinition } from "@workglow/ai";
7
+ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
8
+ /**
9
+ * Merges a checkpoint prefix into the unified generation input: the prefix's
10
+ * messages come first, the caller's tail follows (its `messages`, or its
11
+ * `prompt` lifted into a user message — the shared message builders only fall
12
+ * back to `prompt` when the message list is empty), the prefix system prompt
13
+ * applies when the call carries none (an explicit `""` falls through too —
14
+ * suppressing the warmed instructions would diverge the replayed prefix), and
15
+ * the effective `tools` are the caller's when it declares any, else the
16
+ * prefix's — tools precede the conversation in the serialized request, so a
17
+ * tools-warmed prefix consumed without them never shares the warm-up's cached
18
+ * prefix. Returns undefined when the session has no prefix so plain calls
19
+ * take the unmodified path.
20
+ *
21
+ * OpenAI's prompt caching is automatic and keyed on the request's literal
22
+ * token prefix, so replaying identical prefix content is both the correctness
23
+ * path and the cache-hit path — no per-request cache annotations exist.
24
+ */
25
+ export declare function mergeOpenAICheckpointPrefix(session: AiSessionContext | undefined, input: {
26
+ readonly messages?: readonly unknown[] | undefined;
27
+ readonly systemPrompt?: string | undefined;
28
+ readonly prompt?: unknown;
29
+ readonly tools?: readonly ToolDefinition[] | undefined;
30
+ }): {
31
+ messages: readonly ChatMessage[];
32
+ systemPrompt: string | undefined;
33
+ tools: readonly ToolDefinition[] | undefined;
34
+ } | undefined;
35
+ /**
36
+ * Warm-up run-fn for `["cache.checkpoint"]` on OpenAI. Sends the prefix once
37
+ * (minimal `max_output_tokens` — the Responses API floor is 16) so the
38
+ * server-side automatic prompt cache is populated before consumers arrive.
39
+ *
40
+ * The warm-up is advisory: OpenAI caches long prompt prefixes on its own and
41
+ * may evict at any time, so consumption never depends on this call having
42
+ * succeeded — consumers always replay the full prefix content.
43
+ * {@link finalizeResponsesRequest} derives the `prompt_cache_key` from the
44
+ * request's model + instructions + tools, so this warm-up and every consumer
45
+ * replaying the same prefix converge on the same key without coordination.
46
+ */
47
+ export declare const OpenAI_CacheCheckpoint_Stream: AiProviderRunFn<CacheCheckpointTaskInput, CacheCheckpointTaskOutput, OpenAiModelConfig>;
48
+ //# sourceMappingURL=OpenAI_CacheCheckpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAI_CacheCheckpoint.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_CacheCheckpoint.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EACzB,WAAW,EACX,cAAc,EACf,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,gBAAgB,GAAG,SAAS,EACrC,KAAK,EAAE;IACL,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,CAAC;CACxD,GAEC;IACE,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,CAAC;CAC9C,GACD,SAAS,CAYZ;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B,EAAE,eAAe,CACzD,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,CAqClB,CAAC"}
@@ -11,7 +11,7 @@ import type { Capability, ModelRecord } from "@workglow/ai/worker";
11
11
  * requests to the worker proxy.
12
12
  */
13
13
  export declare const OPENAI_RUN_FN_SPECS: {
14
- serves: ["image.editing"] | ["image.generation"] | ["model.count-tokens"] | ["model.info"] | ["model.search"] | ["text.embedding"] | ["text.generation"] | ["text.rewriter"] | ["text.summary"] | ["text.generation", "json-mode"] | ["text.generation", "tool-use"];
14
+ serves: ["cache.checkpoint"] | ["image.editing"] | ["image.generation"] | ["model.count-tokens"] | ["model.info"] | ["model.search"] | ["text.embedding"] | ["text.generation"] | ["text.rewriter"] | ["text.summary"] | ["text.generation", "json-mode"] | ["text.generation", "tool-use"];
15
15
  }[];
16
16
  export declare function openAiWorkerRunFnSpecs(): readonly {
17
17
  readonly serves: readonly Capability[];
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_Capabilities.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_Capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGnE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;GAAuD,CAAC;AAExF,wBAAgB,sBAAsB,IAAI,SAAS;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,EAAE,CAE9F;AAED;;;;GAIG;AACH,KAAK,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAE1F;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,UAAU,EAAE,CAgDrF"}
1
+ {"version":3,"file":"OpenAI_Capabilities.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_Capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGnE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;GAAuD,CAAC;AAExF,wBAAgB,sBAAsB,IAAI,SAAS;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,EAAE,CAE9F;AAED;;;;GAIG;AACH,KAAK,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAE1F;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,UAAU,EAAE,CAiDrF"}
@@ -25,6 +25,7 @@ export declare const OPENAI_IMAGE_EDITING: ["image.editing"];
25
25
  export declare const OPENAI_COUNT_TOKENS: ["model.count-tokens"];
26
26
  export declare const OPENAI_MODEL_SEARCH: ["model.search"];
27
27
  export declare const OPENAI_MODEL_INFO: ["model.info"];
28
+ export declare const OPENAI_CACHE_CHECKPOINT: ["cache.checkpoint"];
28
29
  /** Aggregated list — for `workerRunFnSpecs()` derivation. Order MUST match `OPENAI_RUN_FNS`. */
29
- export declare const OPENAI_CAPABILITY_SETS: readonly [["text.generation"], ["text.generation", "tool-use"], ["text.generation", "json-mode"], ["text.rewriter"], ["text.summary"], ["text.embedding"], ["image.generation"], ["image.editing"], ["model.count-tokens"], ["model.search"], ["model.info"]];
30
+ export declare const OPENAI_CAPABILITY_SETS: readonly [["text.generation"], ["text.generation", "tool-use"], ["text.generation", "json-mode"], ["text.rewriter"], ["text.summary"], ["text.embedding"], ["image.generation"], ["image.editing"], ["model.count-tokens"], ["model.search"], ["model.info"], ["cache.checkpoint"]];
30
31
  //# sourceMappingURL=OpenAI_CapabilitySets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_CapabilitySets.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_CapabilitySets.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,qBAAsD,CAAC;AAC1F,eAAO,MAAM,eAAe,iCAAkE,CAAC;AAC/F,eAAO,MAAM,gBAAgB,kCAAmE,CAAC;AACjG,eAAO,MAAM,oBAAoB,mBAAoD,CAAC;AACtF,eAAO,MAAM,mBAAmB,kBAAmD,CAAC;AACpF,eAAO,MAAM,qBAAqB,oBAAqD,CAAC;AACxF,eAAO,MAAM,uBAAuB,sBAAuD,CAAC;AAC5F,eAAO,MAAM,oBAAoB,mBAAoD,CAAC;AACtF,eAAO,MAAM,mBAAmB,wBAAyD,CAAC;AAC1F,eAAO,MAAM,mBAAmB,kBAAmD,CAAC;AACpF,eAAO,MAAM,iBAAiB,gBAAiD,CAAC;AAEhF,gGAAgG;AAChG,eAAO,MAAM,sBAAsB,+PAYzB,CAAC"}
1
+ {"version":3,"file":"OpenAI_CapabilitySets.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_CapabilitySets.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,qBAAsD,CAAC;AAC1F,eAAO,MAAM,eAAe,iCAAkE,CAAC;AAC/F,eAAO,MAAM,gBAAgB,kCAAmE,CAAC;AACjG,eAAO,MAAM,oBAAoB,mBAAoD,CAAC;AACtF,eAAO,MAAM,mBAAmB,kBAAmD,CAAC;AACpF,eAAO,MAAM,qBAAqB,oBAAqD,CAAC;AACxF,eAAO,MAAM,uBAAuB,sBAAuD,CAAC;AAC5F,eAAO,MAAM,oBAAoB,mBAAoD,CAAC;AACtF,eAAO,MAAM,mBAAmB,wBAAyD,CAAC;AAC1F,eAAO,MAAM,mBAAmB,kBAAmD,CAAC;AACpF,eAAO,MAAM,iBAAiB,gBAAiD,CAAC;AAChF,eAAO,MAAM,uBAAuB,sBAAuD,CAAC;AAE5F,gGAAgG;AAChG,eAAO,MAAM,sBAAsB,qRAazB,CAAC"}
@@ -11,13 +11,30 @@ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
11
11
  export declare const OPENAI_ALLOWED_HOSTS: readonly string[];
12
12
  type OpenAIClientClass = new (config: any) => any;
13
13
  export declare function loadOpenAISDK(): Promise<OpenAIClientClass>;
14
+ /**
15
+ * Override the client returned by {@link getClient} so runtime tests can
16
+ * capture the requests the OpenAI run-fns build without a live SDK, API key,
17
+ * or network call. Pass `undefined` to restore normal SDK-backed creation.
18
+ * This lives in the runtime module (not a `vi.mock` of `openai`) so it works
19
+ * identically whether the provider resolves to `src` or the bundled `dist`,
20
+ * and is immune to duplicate SDK copies across the workspace defeating
21
+ * module-level mocks.
22
+ */
23
+ declare function setOpenAIClientForTests(client: unknown): void;
24
+ /**
25
+ * @internal Symbols exported only for use by `@workglow/test`. Not part of the
26
+ * stable public API. Surfaced on the `ai-runtime` barrel (via `export *`) and
27
+ * merged into the `/ai` barrel's `_testOnly`.
28
+ */
29
+ export declare const _testOnly: {
30
+ readonly setOpenAIClientForTests: typeof setOpenAIClientForTests;
31
+ };
14
32
  export declare function getClient(model: OpenAiModelConfig | undefined): Promise<any>;
15
33
  export declare function getModelName(model: OpenAiModelConfig | undefined): string;
16
34
  /**
17
- * Resolves the configured `reasoning` object for reasoning-capable models
18
- * (the GPT-5.6 sol/terra/luna family and the o-series), sent verbatim as the
19
- * Responses `reasoning` parameter. Returns `undefined` when unset so
20
- * non-reasoning models and callers that don't opt in send no reasoning field.
35
+ * Resolves the `reasoning` object for reasoning-capable models (GPT-5.6
36
+ * sol/terra/luna and the o-series). Native `provider_config.reasoning` wins;
37
+ * otherwise map `model.effort`. Returns `undefined` when neither is set.
21
38
  */
22
39
  export declare function getReasoningConfig(model: OpenAiModelConfig | undefined): {
23
40
  effort?: string;
@@ -38,10 +55,19 @@ export declare function resolvePromptCacheKey(model: OpenAiModelConfig | undefin
38
55
  }): string;
39
56
  /**
40
57
  * Applies the per-request Responses fields common to every OpenAI text run-fn:
41
- * the model's `reasoning` config (when set) and a stable `prompt_cache_key`.
42
- * Mutates and returns `params` so callers can inline it into the create call.
43
- * Call this last, after model/instructions/tools are populated, so the cache
44
- * key sees the full prefix.
58
+ * the model's `reasoning` config and a stable `prompt_cache_key`. Mutates and
59
+ * returns `params` so callers can inline it into the create call. Call this
60
+ * last, after model/instructions/tools/temperature are populated, so the cache
61
+ * key sees the full prefix and the reasoning default can see the temperature.
62
+ *
63
+ * When the caller pinned a `temperature` but expressed no reasoning preference,
64
+ * reasoning is forced off. The two are not independently selectable on the
65
+ * reasoning families: `gpt-5.6-luna` answers `temperature` alone with
66
+ * `400 Unsupported parameter: 'temperature' is not supported with this model`,
67
+ * yet accepts `{reasoning: {effort: "none"}, temperature: 0}`. A caller asking
68
+ * for a specific temperature is asking for controlled sampling, so honouring
69
+ * that request — rather than failing it — is the useful reading. An explicit
70
+ * `reasoning` in the model config always wins.
45
71
  */
46
72
  export declare function finalizeResponsesRequest(model: OpenAiModelConfig | undefined, params: Record<string, unknown>): Record<string, unknown>;
47
73
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_Client.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_Client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAA4C,CAAC;AAE/F,KAAK,iBAAiB,GAAG,KAAK,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;AAKlD,wBAAsB,aAAa,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAShE;AAkBD,wBAAsB,SAAS,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,gBA4BnE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAMzE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,iBAAiB,GAAG,SAAS,GACnC;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAMhD;AAYD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,iBAAiB,GAAG,SAAS,EACpC,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAA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AA;CAAE,GACnE,MAAM,CASR;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,iBAAiB,GAAG,SAAS,EACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_JobRunFns.browser.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_JobRunFns.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAcxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAiBzE;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,EAY7F,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,MAAM,EACN,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,CAGpD,CAAC"}
1
+ {"version":3,"file":"OpenAI_JobRunFns.browser.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_JobRunFns.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAexF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAkBzE;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,EAa7F,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,MAAM,EACN,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,CAGpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_JobRunFns.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_JobRunFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAcxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAczE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,EAY7F,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,MAAM,EACN,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,CAGpD,CAAC"}
1
+ {"version":3,"file":"OpenAI_JobRunFns.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_JobRunFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAexF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAezE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,EAa7F,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,MAAM,EACN,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,CAGpD,CAAC"}
@@ -6,9 +6,10 @@
6
6
  import type { AiProviderRunFn, ModelInfoTaskInput, ModelInfoTaskOutput } from "@workglow/ai";
7
7
  import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
8
8
  /**
9
- * One-shot run-fn for `["model.info"]`. Returns a synchronous
10
- * info record from the in-process embedding-dimensions table; OpenAI does not
11
- * expose an HTTP endpoint for this metadata. Emits a single `finish` event.
9
+ * One-shot run-fn for `["model.info"]`. Verifies the model exists via
10
+ * OpenAI's `models.retrieve`, then emits a remote info record. When
11
+ * `detail` is `"dimensions"`, attaches known embedding dimensions after
12
+ * the existence check.
12
13
  */
13
14
  export declare const OpenAI_ModelInfo_Stream: AiProviderRunFn<ModelInfoTaskInput, ModelInfoTaskOutput, OpenAiModelConfig>;
14
15
  //# sourceMappingURL=OpenAI_ModelInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_ModelInfo.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_ModelInfo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAS9D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,eAAe,CACnD,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,CAiDlB,CAAC"}
1
+ {"version":3,"file":"OpenAI_ModelInfo.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_ModelInfo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAG7F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AA8D9D;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,eAAe,CACnD,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,CA+BlB,CAAC"}
@@ -3,7 +3,8 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { FromSchema } from "@workglow/util/worker";
6
+ import type { WithModelPricing } from "@workglow/ai/worker";
7
+ import type { FromSchema } from "@workglow/util/worker";
7
8
  export declare const OpenAiModelSchema: {
8
9
  readonly type: "object";
9
10
  readonly properties: {
@@ -90,11 +91,44 @@ export declare const OpenAiModelRecordSchema: {
90
91
  readonly type: "string";
91
92
  readonly "x-ui-editor": "textarea";
92
93
  };
94
+ readonly effort: {
95
+ readonly type: "string";
96
+ readonly enum: readonly ["none", "low", "medium", "high", "extra", "ultra"];
97
+ readonly description: "Coarse thinking/reasoning dial. Native provider_config thinking knobs always win when set.";
98
+ };
93
99
  readonly metadata: {
94
100
  readonly type: "object";
95
101
  readonly default: {};
96
102
  readonly "x-ui-hidden": true;
97
103
  };
104
+ readonly pricing: {
105
+ readonly type: "object";
106
+ readonly description: "Per-million-token rates. Declared by the caller; the library ships none.";
107
+ readonly properties: {
108
+ readonly currency: {
109
+ readonly type: "string";
110
+ readonly default: "USD";
111
+ };
112
+ readonly input: {
113
+ readonly type: "number";
114
+ };
115
+ readonly output: {
116
+ readonly type: "number";
117
+ };
118
+ readonly cached: {
119
+ readonly type: "number";
120
+ };
121
+ readonly cacheWrite: {
122
+ readonly type: "number";
123
+ };
124
+ readonly cacheStoragePerHour: {
125
+ readonly type: "number";
126
+ };
127
+ };
128
+ readonly required: readonly ["currency"];
129
+ readonly additionalProperties: false;
130
+ readonly "x-ui-hidden": true;
131
+ };
98
132
  readonly provider: {
99
133
  readonly const: "OPENAI";
100
134
  readonly description: "Discriminator: OpenAI cloud provider.";
@@ -158,7 +192,7 @@ export declare const OpenAiModelRecordSchema: {
158
192
  readonly required: readonly ["model_id", "capabilities", "provider", "title", "description", "provider_config", "metadata", "provider", "provider_config"];
159
193
  readonly additionalProperties: false;
160
194
  };
161
- export type OpenAiModelRecord = FromSchema<typeof OpenAiModelRecordSchema>;
195
+ export type OpenAiModelRecord = WithModelPricing<FromSchema<typeof OpenAiModelRecordSchema>>;
162
196
  export declare const OpenAiModelConfigSchema: {
163
197
  readonly type: "object";
164
198
  readonly properties: {
@@ -179,11 +213,44 @@ export declare const OpenAiModelConfigSchema: {
179
213
  readonly type: "string";
180
214
  readonly "x-ui-editor": "textarea";
181
215
  };
216
+ readonly effort: {
217
+ readonly type: "string";
218
+ readonly enum: readonly ["none", "low", "medium", "high", "extra", "ultra"];
219
+ readonly description: "Coarse thinking/reasoning dial. Native provider_config thinking knobs always win when set.";
220
+ };
182
221
  readonly metadata: {
183
222
  readonly type: "object";
184
223
  readonly default: {};
185
224
  readonly "x-ui-hidden": true;
186
225
  };
226
+ readonly pricing: {
227
+ readonly type: "object";
228
+ readonly description: "Per-million-token rates. Declared by the caller; the library ships none.";
229
+ readonly properties: {
230
+ readonly currency: {
231
+ readonly type: "string";
232
+ readonly default: "USD";
233
+ };
234
+ readonly input: {
235
+ readonly type: "number";
236
+ };
237
+ readonly output: {
238
+ readonly type: "number";
239
+ };
240
+ readonly cached: {
241
+ readonly type: "number";
242
+ };
243
+ readonly cacheWrite: {
244
+ readonly type: "number";
245
+ };
246
+ readonly cacheStoragePerHour: {
247
+ readonly type: "number";
248
+ };
249
+ };
250
+ readonly required: readonly ["currency"];
251
+ readonly additionalProperties: false;
252
+ readonly "x-ui-hidden": true;
253
+ };
187
254
  readonly provider: {
188
255
  readonly const: "OPENAI";
189
256
  readonly description: "Discriminator: OpenAI cloud provider.";
@@ -247,5 +314,5 @@ export declare const OpenAiModelConfigSchema: {
247
314
  readonly required: readonly ["provider", "provider_config", "provider", "provider_config"];
248
315
  readonly additionalProperties: false;
249
316
  };
250
- export type OpenAiModelConfig = FromSchema<typeof OpenAiModelConfigSchema>;
317
+ export type OpenAiModelConfig = WithModelPricing<FromSchema<typeof OpenAiModelConfigSchema>>;
251
318
  //# sourceMappingURL=OpenAI_ModelSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_ModelSchema.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_ModelSchema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAwB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGzE,eAAO,MAAM,iBAAiB;mBACtB,QAAQ;;iBAEZ,QAAQ;qBACN,KAAK;qBACL,WAAW,EAAE,uCAAuC;;iBAEtD,eAAe;qBACb,IAAI,EAAE,QAAQ;qBACd,WAAW,EAAE,gCAAgC;qBAC7C,UAAU;yBACR,UAAU;6BACR,IAAI,EAAE,QAAQ;6BACd,WAAW,EAAE,yEAAyE;;yBAExF,cAAc;6BACZ,IAAI,EAAE,QAAQ;6BACd,MAAM,EAAE,YAAY;6BACpB,WAAW,EAAE,yDAAyD;6BACtE,aAAa;;yBAEf,QAAQ;6BACN,IAAI,EAAE,QAAQ;6BACd,WAAW,EAAE,wEAAwE;6BACrF,OAAO,EAAE,2BAA2B;;yBAEtC,cAAc;6BACZ,IAAI,EAAE,SAAS;6BACf,WAAW,EACT,gOAAgO;6BAClO,OAAO;6BACP,aAAa;;yBAEf,YAAY;6BACV,IAAI,EAAE,QAAQ;6BACd,WAAW,EAAE,oCAAoC;;yBAEnD,gBAAgB;6BACd,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,uLAAuL;6BACzL,aAAa;;yBAEf,SAAS;6BACP,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,sHAAsH;6BACxH,UAAU;iCACR,MAAM;qCACJ,IAAI,EAAE,QAAQ;qCACd,IAAI;qCACJ,WAAW,EAAE,sEAAsE;;iCAErF,IAAI;qCACF,IAAI,EAAE,QAAQ;qCACd,IAAI;qCACJ,WAAW,EACT,2EAA2E;;;6BAGjF,oBAAoB;;;qBAG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AAI,EAAE,QAAQ;6BACd,WAAW,EAAE,wEAAwE;6BACrF,OAAO,EAAE,2BAA2B;;yBAEtC,cAAc;6BACZ,IAAI,EAAE,SAAS;6BACf,WAAW,EACT,gOAAgO;6BAClO,OAAO;6BACP,aAAa;;yBAEf,YAAY;6BACV,IAAI,EAAE,QAAQ;6BACd,WAAW,EAAE,oCAAoC;;yBAEnD,gBAAgB;6BACd,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,uLAAuL;6BACzL,aAAa;;yBAEf,SAAS;6BACP,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,sHAAsH;6BACxH,UAAU;iCACR,MAAM;qCACJ,IAAI,EAAE,QAAQ;qCACd,IAAI;qCACJ,WAAW,EAAE,sEAAsE;;iCAErF,IAAI;qCACF,IAAI,EAAE,QAAQ;qCACd,IAAI;qCACJ,WAAW,EACT,2EAA2E;;;6BAGjF,oBAAoB;;;qBAGxB,QAAQ;qBACR,oBAAoB;;;;;CA2Be,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_StructuredGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_StructuredGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAwB,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAG7F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,EAAE,eAAe,CAC9D,6BAA6B,EAC7B,8BAA8B,EAC9B,iBAAiB,CAkElB,CAAC"}
1
+ {"version":3,"file":"OpenAI_StructuredGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_StructuredGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,8BAA8B,EAE/B,MAAM,cAAc,CAAC;AACtB,OAAO,EAGL,wBAAwB,EAEzB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,EAAE,eAAe,CAC9D,6BAA6B,EAC7B,8BAA8B,EAC9B,iBAAiB,CAmFlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_TextEmbedding.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextEmbedding.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,eAAe,CACvD,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,CA6BlB,CAAC"}
1
+ {"version":3,"file":"OpenAI_TextEmbedding.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextEmbedding.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,eAAe,CACvD,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,CA2ClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_TextGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAmE9D;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,EAAE,eAAe,CACxD,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,CAsBlB,CAAC"}
1
+ {"version":3,"file":"OpenAI_TextGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAYtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAmE9D;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,EAAE,eAAe,CACxD,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,CA2ClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_TextRewriter.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextRewriter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAGnG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,eAAe,CACtD,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,CAkBlB,CAAC"}
1
+ {"version":3,"file":"OpenAI_TextRewriter.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextRewriter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAOnG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,eAAe,CACtD,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,CAuBlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_TextSummary.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextSummary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGjG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,CAkBlB,CAAC"}
1
+ {"version":3,"file":"OpenAI_TextSummary.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_TextSummary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAOjG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,CAuBlB,CAAC"}
@@ -11,8 +11,9 @@ import type { OpenAiModelConfig } from "./OpenAI_ModelSchema";
11
11
  * {@link accumulateOpenAIResponsesStream}, which emits `text-delta` and tool-call
12
12
  * `object-delta` events plus a final empty `finish`.
13
13
  *
14
- * Defence-in-depth: each tool-call `object-delta` is filtered against
15
- * `input.tools` so a hallucinated function name never reaches the consumer.
14
+ * Defence-in-depth: each tool-call `object-delta` is filtered against the
15
+ * effective tool declarations (the caller's tools, or the checkpoint prefix's
16
+ * on fallback) so a hallucinated function name never reaches the consumer.
16
17
  */
17
18
  export declare const OpenAI_ToolCalling_Stream: AiProviderRunFn<ToolCallingTaskInput, ToolCallingTaskOutput, OpenAiModelConfig>;
18
19
  //# sourceMappingURL=OpenAI_ToolCalling.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAI_ToolCalling.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_ToolCalling.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,CAyClB,CAAC"}
1
+ {"version":3,"file":"OpenAI_ToolCalling.d.ts","sourceRoot":"","sources":["../../../src/ai/common/OpenAI_ToolCalling.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAYtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,CA6DlB,CAAC"}
@@ -9,7 +9,7 @@ export * from "./common/OpenAI_ImageValidation";
9
9
  export * from "./common/OpenAI_ModelSchema";
10
10
  export * from "./common/OpenAI_ModelSearch";
11
11
  export * from "./registerOpenAi";
12
- import { getReasoningConfig, resolvePromptCacheKey } from "./common/OpenAI_Client";
12
+ import { finalizeResponsesRequest, getReasoningConfig, resolvePromptCacheKey } from "./common/OpenAI_Client";
13
13
  import { _resetOpenAIResponsesWarnings, warnPenaltyDroppedOnce, warnStrictDowngradedOnce } from "./common/OpenAI_ResponsesWarnings";
14
14
  import { isStrictCompatibleSchema } from "./common/OpenAI_StructuredGeneration";
15
15
  import { OpenAiQueuedProvider } from "./OpenAiQueuedProvider";
@@ -19,35 +19,16 @@ import { OpenAiQueuedProvider } from "./OpenAiQueuedProvider";
19
19
  export declare const _testOnly: {
20
20
  readonly OpenAiQueuedProvider: typeof OpenAiQueuedProvider;
21
21
  readonly OPENAI_RUN_FN_SPECS: {
22
- serves: ["image.editing"] | ["image.generation"] | ["model.count-tokens"] | ["model.info"] | ["model.search"] | ["text.embedding"] | ["text.generation"] | ["text.rewriter"] | ["text.summary"] | ["text.generation", "json-mode"] | ["text.generation", "tool-use"];
22
+ serves: ["cache.checkpoint"] | ["image.editing"] | ["image.generation"] | ["model.count-tokens"] | ["model.info"] | ["model.search"] | ["text.embedding"] | ["text.generation"] | ["text.rewriter"] | ["text.summary"] | ["text.generation", "json-mode"] | ["text.generation", "tool-use"];
23
23
  }[];
24
- readonly OPENAI_RUN_FNS: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
25
- capabilities?: string[] | undefined;
26
- description?: string | undefined;
27
- metadata?: {
28
- [x: string]: unknown;
29
- } | undefined;
30
- model_id?: string | undefined;
31
- provider: "OPENAI";
32
- provider_config: {
33
- base_url?: string | undefined;
34
- credential_key?: string | undefined;
35
- model_name: string;
36
- organization?: string | undefined;
37
- prompt_cache_key?: string | undefined;
38
- reasoning?: {
39
- effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
40
- mode?: "pro" | undefined;
41
- } | undefined;
42
- trustedBaseUrl?: boolean | undefined;
43
- };
44
- title?: string | undefined;
45
- }>[];
24
+ readonly OPENAI_RUN_FNS: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, import("./index.browser").OpenAiModelConfig>[];
25
+ readonly finalizeResponsesRequest: typeof finalizeResponsesRequest;
46
26
  readonly getReasoningConfig: typeof getReasoningConfig;
47
27
  readonly resolvePromptCacheKey: typeof resolvePromptCacheKey;
48
28
  readonly isStrictCompatibleSchema: typeof isStrictCompatibleSchema;
49
29
  readonly warnPenaltyDroppedOnce: typeof warnPenaltyDroppedOnce;
50
30
  readonly warnStrictDowngradedOnce: typeof warnStrictDowngradedOnce;
51
31
  readonly _resetOpenAIResponsesWarnings: typeof _resetOpenAIResponsesWarnings;
32
+ readonly setOpenAIClientForTests: (client: unknown) => void;
52
33
  };
53
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEnF,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUZ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EAEL,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAYZ,CAAC"}
@@ -9,6 +9,7 @@
9
9
  *
10
10
  * Use `export *` (not `export { … } from "…"`) so the Bun bundler keeps the module graph.
11
11
  */
12
+ export * from "./common/OpenAI_CacheCheckpoint";
12
13
  export * from "./common/OpenAI_Client";
13
14
  export * from "./registerOpenAiInline.browser";
14
15
  export * from "./registerOpenAiWorker.browser";
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.browser.d.ts","sourceRoot":"","sources":["../../src/ai/runtime.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAGH,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"runtime.browser.d.ts","sourceRoot":"","sources":["../../src/ai/runtime.browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAGH,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC"}
@@ -10,6 +10,7 @@
10
10
  *
11
11
  * Use `export *` (not `export { … } from "…"`) so the Bun bundler keeps the module graph.
12
12
  */
13
+ export * from "./common/OpenAI_CacheCheckpoint";
13
14
  export * from "./common/OpenAI_Client";
14
15
  export * from "./registerOpenAiInline";
15
16
  export * from "./registerOpenAiWorker";
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/ai/runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AAGH,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/ai/runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AAGH,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}