@workglow/anthropic 0.2.34 → 0.2.36

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 (41) hide show
  1. package/dist/ai/AnthropicProvider.d.ts +16 -22
  2. package/dist/ai/AnthropicProvider.d.ts.map +1 -1
  3. package/dist/ai/AnthropicQueuedProvider.d.ts +22 -22
  4. package/dist/ai/AnthropicQueuedProvider.d.ts.map +1 -1
  5. package/dist/ai/common/Anthropic_Capabilities.d.ts +38 -0
  6. package/dist/ai/common/Anthropic_Capabilities.d.ts.map +1 -0
  7. package/dist/ai/common/Anthropic_CapabilitySets.d.ts +32 -0
  8. package/dist/ai/common/Anthropic_CapabilitySets.d.ts.map +1 -0
  9. package/dist/ai/common/Anthropic_CountTokens.d.ts +1 -1
  10. package/dist/ai/common/Anthropic_CountTokens.d.ts.map +1 -1
  11. package/dist/ai/common/Anthropic_JobRunFns.d.ts +12 -3
  12. package/dist/ai/common/Anthropic_JobRunFns.d.ts.map +1 -1
  13. package/dist/ai/common/Anthropic_ModelInfo.d.ts +1 -1
  14. package/dist/ai/common/Anthropic_ModelInfo.d.ts.map +1 -1
  15. package/dist/ai/common/Anthropic_ModelSchema.d.ts +3 -3
  16. package/dist/ai/common/Anthropic_ModelSearch.d.ts +1 -1
  17. package/dist/ai/common/Anthropic_ModelSearch.d.ts.map +1 -1
  18. package/dist/ai/common/Anthropic_StructuredGeneration.d.ts +14 -3
  19. package/dist/ai/common/Anthropic_StructuredGeneration.d.ts.map +1 -1
  20. package/dist/ai/common/Anthropic_TextGeneration.d.ts +13 -3
  21. package/dist/ai/common/Anthropic_TextGeneration.d.ts.map +1 -1
  22. package/dist/ai/common/Anthropic_TextRewriter.d.ts +2 -3
  23. package/dist/ai/common/Anthropic_TextRewriter.d.ts.map +1 -1
  24. package/dist/ai/common/Anthropic_TextSummary.d.ts +2 -3
  25. package/dist/ai/common/Anthropic_TextSummary.d.ts.map +1 -1
  26. package/dist/ai/common/Anthropic_ToolCalling.d.ts +2 -3
  27. package/dist/ai/common/Anthropic_ToolCalling.d.ts.map +1 -1
  28. package/dist/ai/index.d.ts +26 -0
  29. package/dist/ai/index.d.ts.map +1 -1
  30. package/dist/ai/registerAnthropicInline.d.ts.map +1 -1
  31. package/dist/ai/registerAnthropicWorker.d.ts.map +1 -1
  32. package/dist/ai/runtime.d.ts.map +1 -1
  33. package/dist/ai-runtime.d.ts.map +1 -1
  34. package/dist/ai-runtime.js +245 -355
  35. package/dist/ai-runtime.js.map +18 -17
  36. package/dist/ai.d.ts.map +1 -1
  37. package/dist/ai.js +455 -19
  38. package/dist/ai.js.map +16 -5
  39. package/package.json +13 -14
  40. package/dist/ai/common/Anthropic_Chat.d.ts +0 -10
  41. package/dist/ai/common/Anthropic_Chat.d.ts.map +0 -1
@@ -4,7 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { AiProvider } from "@workglow/ai/worker";
7
- declare const AnthropicProvider_base: new (tasks?: Record<string, import("@workglow/ai").AiProviderRunFn<any, any, {
7
+ import type { Capability, ModelRecord } from "@workglow/ai/worker";
8
+ declare const AnthropicProvider_base: new (promiseRunFns?: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
9
+ capabilities?: string[] | undefined;
8
10
  description?: string | undefined;
9
11
  metadata?: {
10
12
  [x: string]: unknown;
@@ -17,9 +19,9 @@ declare const AnthropicProvider_base: new (tasks?: Record<string, import("@workg
17
19
  max_tokens?: number | undefined;
18
20
  model_name: string;
19
21
  };
20
- tasks?: string[] | undefined;
21
22
  title?: string | undefined;
22
- }>> | undefined, streamTasks?: Record<string, import("@workglow/ai").AiProviderStreamFn<any, any, {
23
+ }>[] | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, {
24
+ capabilities?: string[] | undefined;
23
25
  description?: string | undefined;
24
26
  metadata?: {
25
27
  [x: string]: unknown;
@@ -32,24 +34,9 @@ declare const AnthropicProvider_base: new (tasks?: Record<string, import("@workg
32
34
  max_tokens?: number | undefined;
33
35
  model_name: string;
34
36
  };
35
- tasks?: string[] | undefined;
36
- title?: string | undefined;
37
- }>> | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, {
38
- description?: string | undefined;
39
- metadata?: {
40
- [x: string]: unknown;
41
- } | undefined;
42
- model_id?: string | undefined;
43
- provider: "ANTHROPIC";
44
- provider_config: {
45
- base_url?: string | undefined;
46
- credential_key?: string | undefined;
47
- max_tokens?: number | undefined;
48
- model_name: string;
49
- };
50
- tasks?: string[] | undefined;
51
37
  title?: string | undefined;
52
38
  }>> | undefined) => AiProvider<{
39
+ capabilities?: string[] | undefined;
53
40
  description?: string | undefined;
54
41
  metadata?: {
55
42
  [x: string]: unknown;
@@ -62,22 +49,29 @@ declare const AnthropicProvider_base: new (tasks?: Record<string, import("@workg
62
49
  max_tokens?: number | undefined;
63
50
  model_name: string;
64
51
  };
65
- tasks?: string[] | undefined;
66
52
  title?: string | undefined;
67
53
  }> & {
68
54
  readonly name: string;
69
55
  readonly displayName: string;
70
56
  readonly isLocal: boolean;
71
57
  readonly supportsBrowser: boolean;
72
- readonly taskTypes: readonly ["CountTokensTask", "ModelInfoTask", "TextGenerationTask", "TextRewriterTask", "TextSummaryTask", "StructuredGenerationTask", "ToolCallingTask", "ModelSearchTask"];
73
58
  };
74
59
  /**
75
60
  * Worker-server registration for Anthropic cloud models. Imports `AiProvider`
76
- * from `@workglow/ai/worker` so the SDK is only loaded where actually needed.
61
+ * from `@workglow/ai/worker` so the SDK is only loaded in the worker.
62
+ *
63
+ * The class extends the {@link createCloudProviderClass} mixin (which
64
+ * supplies `name` / `displayName` / `isLocal` / `supportsBrowser`) and adds
65
+ * the Anthropic-specific {@link AiProvider.inferCapabilities} and
66
+ * {@link AiProvider.workerRunFnSpecs} overrides.
77
67
  *
78
68
  * Note: Anthropic does not offer an embeddings API.
79
69
  */
80
70
  export declare class AnthropicProvider extends AnthropicProvider_base {
71
+ inferCapabilities(model: ModelRecord): readonly Capability[];
72
+ protected workerRunFnSpecs(): readonly {
73
+ serves: readonly Capability[];
74
+ }[];
81
75
  }
82
76
  export {};
83
77
  //# sourceMappingURL=AnthropicProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnthropicProvider.d.ts","sourceRoot":"","sources":["../../src/ai/AnthropicProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBjD;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,sBAOrC;CAAG"}
1
+ {"version":3,"file":"AnthropicProvider.d.ts","sourceRoot":"","sources":["../../src/ai/AnthropicProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASnE;;;;;;;;;;GAUG;AACH,qBAAa,iBAAkB,SAAQ,sBAGrC;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"}
@@ -4,7 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { AiProvider } from "@workglow/ai";
7
- declare const AnthropicQueuedProvider_base: new (tasks?: Record<string, import("@workglow/ai").AiProviderRunFn<any, any, {
7
+ import type { Capability, ModelRecord } from "@workglow/ai";
8
+ declare const AnthropicQueuedProvider_base: new (promiseRunFns?: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
9
+ capabilities?: string[] | undefined;
8
10
  description?: string | undefined;
9
11
  metadata?: {
10
12
  [x: string]: unknown;
@@ -17,9 +19,9 @@ declare const AnthropicQueuedProvider_base: new (tasks?: Record<string, import("
17
19
  max_tokens?: number | undefined;
18
20
  model_name: string;
19
21
  };
20
- tasks?: string[] | undefined;
21
22
  title?: string | undefined;
22
- }>> | undefined, streamTasks?: Record<string, import("@workglow/ai").AiProviderStreamFn<any, any, {
23
+ }>[] | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, {
24
+ capabilities?: string[] | undefined;
23
25
  description?: string | undefined;
24
26
  metadata?: {
25
27
  [x: string]: unknown;
@@ -32,24 +34,9 @@ declare const AnthropicQueuedProvider_base: new (tasks?: Record<string, import("
32
34
  max_tokens?: number | undefined;
33
35
  model_name: string;
34
36
  };
35
- tasks?: string[] | undefined;
36
- title?: string | undefined;
37
- }>> | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, {
38
- description?: string | undefined;
39
- metadata?: {
40
- [x: string]: unknown;
41
- } | undefined;
42
- model_id?: string | undefined;
43
- provider: "ANTHROPIC";
44
- provider_config: {
45
- base_url?: string | undefined;
46
- credential_key?: string | undefined;
47
- max_tokens?: number | undefined;
48
- model_name: string;
49
- };
50
- tasks?: string[] | undefined;
51
37
  title?: string | undefined;
52
38
  }>> | undefined) => AiProvider<{
39
+ capabilities?: string[] | undefined;
53
40
  description?: string | undefined;
54
41
  metadata?: {
55
42
  [x: string]: unknown;
@@ -62,17 +49,30 @@ declare const AnthropicQueuedProvider_base: new (tasks?: Record<string, import("
62
49
  max_tokens?: number | undefined;
63
50
  model_name: string;
64
51
  };
65
- tasks?: string[] | undefined;
66
52
  title?: string | undefined;
67
53
  }> & {
68
54
  readonly name: string;
69
55
  readonly displayName: string;
70
56
  readonly isLocal: boolean;
71
57
  readonly supportsBrowser: boolean;
72
- readonly taskTypes: readonly ["CountTokensTask", "ModelInfoTask", "TextGenerationTask", "TextRewriterTask", "TextSummaryTask", "StructuredGenerationTask", "ToolCallingTask", "ModelSearchTask"];
73
58
  };
74
- /** Main-thread registration (inline or worker-backed). No queue — uses direct execution. */
59
+ /**
60
+ * Main-thread registration shell for Anthropic. Used both for inline mode
61
+ * (constructed with the run-fn registrations array) and worker-backed mode
62
+ * (constructed empty so the base class registers worker proxies).
63
+ *
64
+ * **No queue is created** — Anthropic uses {@link DirectExecutionStrategy}.
65
+ * The `Queued` suffix is a historical artefact from when each provider
66
+ * paired with a per-provider {@link JobQueue}; the class name is retained
67
+ * only to avoid churning every import site.
68
+ *
69
+ * Note: Anthropic does not offer an embeddings API.
70
+ */
75
71
  export declare class AnthropicQueuedProvider extends AnthropicQueuedProvider_base {
72
+ inferCapabilities(model: ModelRecord): readonly Capability[];
73
+ protected workerRunFnSpecs(): readonly {
74
+ serves: readonly Capability[];
75
+ }[];
76
76
  }
77
77
  export {};
78
78
  //# sourceMappingURL=AnthropicQueuedProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnthropicQueuedProvider.d.ts","sourceRoot":"","sources":["../../src/ai/AnthropicQueuedProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgB1C,4FAA4F;AAC5F,qBAAa,uBAAwB,SAAQ,4BAO3C;CAAG"}
1
+ {"version":3,"file":"AnthropicQueuedProvider.d.ts","sourceRoot":"","sources":["../../src/ai/AnthropicQueuedProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS5D;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAwB,SAAQ,4BAM5C;IACU,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,38 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { Capability, ModelRecord } from "@workglow/ai/worker";
7
+ /**
8
+ * Closed list of capability-set specs the Anthropic provider serves. Derived
9
+ * from {@link ANTHROPIC_CAPABILITY_SETS} — do not edit here. Used by the
10
+ * main-thread provider shells when registering worker-mode proxies (the
11
+ * actual runFns live in {@link ANTHROPIC_RUN_FNS} on the worker side, but the
12
+ * main thread still needs to know which `serves` sets to register so the
13
+ * dispatcher can route requests to the worker proxy).
14
+ */
15
+ export declare const ANTHROPIC_RUN_FN_SPECS: {
16
+ serves: ["model.count-tokens"] | ["model.info"] | ["model.search"] | ["text.generation"] | ["text.rewriter"] | ["text.summary"] | ["text.generation", "json-mode"] | ["text.generation", "tool-use"];
17
+ }[];
18
+ export declare function anthropicWorkerRunFnSpecs(): readonly {
19
+ readonly serves: readonly Capability[];
20
+ }[];
21
+ /**
22
+ * Shape used by the model-name regexes — `model_id` is required, the rest
23
+ * is loosely-typed metadata only used to opportunistically widen the
24
+ * inferred capability set.
25
+ */
26
+ type CapabilityHints = Pick<ModelRecord, "model_id" | "provider_config" | "capabilities">;
27
+ /**
28
+ * Heuristic capability inference for an Anthropic {@link ModelRecord}. Pattern-
29
+ * matches the canonical Anthropic model id strings (and the `provider_config.
30
+ * model_name` if present) to a closed set of {@link Capability}s. Falls back
31
+ * to the model's stored `capabilities` array (or a baseline of search +
32
+ * info) when no pattern matches.
33
+ *
34
+ * Main-thread method only — workers do not run capability inference.
35
+ */
36
+ export declare function inferAnthropicCapabilities(model: CapabilityHints): readonly Capability[];
37
+ export {};
38
+ //# sourceMappingURL=Anthropic_Capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Anthropic_Capabilities.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_Capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOnE;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;GAA0D,CAAC;AAE9F,wBAAgB,yBAAyB,IAAI,SAAS;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,EAAE,CAEjG;AAED;;;;GAIG;AACH,KAAK,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAE1F;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,UAAU,EAAE,CAuExF"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * Single source of truth for Anthropic's capability sets.
8
+ *
9
+ * Both `ANTHROPIC_RUN_FNS` (the worker-side registration list) and
10
+ * `workerRunFnSpecs()` (the main-thread proxy declaration) derive their
11
+ * `serves` arrays from these named exports. SDK-free so the main thread
12
+ * can import without paying the Anthropic client cost.
13
+ *
14
+ * To add a new capability set: declare a new `as const` constant here,
15
+ * then reference it from both `ANTHROPIC_RUN_FNS` and `ANTHROPIC_RUN_FN_SPECS`.
16
+ *
17
+ * Note: Anthropic does NOT support embeddings, image generation, or image editing.
18
+ * Structured generation is implemented via Anthropic's tool-use API under the hood,
19
+ * but it is registered under `["text.generation", "json-mode"]` per the capability
20
+ * dispatch model so the consumer receives a parsed object in `finish.data.object`.
21
+ */
22
+ export declare const ANTHROPIC_TEXT_GENERATION: ["text.generation"];
23
+ export declare const ANTHROPIC_TOOL_USE: ["text.generation", "tool-use"];
24
+ export declare const ANTHROPIC_JSON_MODE: ["text.generation", "json-mode"];
25
+ export declare const ANTHROPIC_TEXT_REWRITER: ["text.rewriter"];
26
+ export declare const ANTHROPIC_TEXT_SUMMARY: ["text.summary"];
27
+ export declare const ANTHROPIC_COUNT_TOKENS: ["model.count-tokens"];
28
+ export declare const ANTHROPIC_MODEL_SEARCH: ["model.search"];
29
+ export declare const ANTHROPIC_MODEL_INFO: ["model.info"];
30
+ /** Aggregated list — for `workerRunFnSpecs()` derivation. Order MUST match `ANTHROPIC_RUN_FNS`; validated by the `capability-set parity` test in `AnthropicProvider.test.ts`. */
31
+ export declare const ANTHROPIC_CAPABILITY_SETS: readonly [["text.generation"], ["text.generation", "tool-use"], ["text.generation", "json-mode"], ["text.rewriter"], ["text.summary"], ["model.count-tokens"], ["model.search"], ["model.info"]];
32
+ //# sourceMappingURL=Anthropic_CapabilitySets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Anthropic_CapabilitySets.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_CapabilitySets.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,qBAAsD,CAAC;AAC7F,eAAO,MAAM,kBAAkB,iCAAkE,CAAC;AAClG,eAAO,MAAM,mBAAmB,kCAAmE,CAAC;AACpG,eAAO,MAAM,uBAAuB,mBAAoD,CAAC;AACzF,eAAO,MAAM,sBAAsB,kBAAmD,CAAC;AACvF,eAAO,MAAM,sBAAsB,wBAAyD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBAAmD,CAAC;AACvF,eAAO,MAAM,oBAAoB,gBAAiD,CAAC;AAEnF,iLAAiL;AACjL,eAAO,MAAM,yBAAyB,kMAS5B,CAAC"}
@@ -5,6 +5,6 @@
5
5
  */
6
6
  import type { AiProviderPreviewRunFn, AiProviderRunFn, CountTokensTaskInput, CountTokensTaskOutput } from "@workglow/ai";
7
7
  import type { AnthropicModelConfig } from "./Anthropic_ModelSchema";
8
- export declare const Anthropic_CountTokens: AiProviderRunFn<CountTokensTaskInput, CountTokensTaskOutput, AnthropicModelConfig>;
8
+ export declare const Anthropic_CountTokens_Stream: AiProviderRunFn<CountTokensTaskInput, CountTokensTaskOutput, AnthropicModelConfig>;
9
9
  export declare const Anthropic_CountTokens_Preview: AiProviderPreviewRunFn<CountTokensTaskInput, CountTokensTaskOutput, AnthropicModelConfig>;
10
10
  //# sourceMappingURL=Anthropic_CountTokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_CountTokens.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_CountTokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAQrB,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,sBAAsB,CAChE,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAGrB,CAAC"}
1
+ {"version":3,"file":"Anthropic_CountTokens.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_CountTokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,4BAA4B,EAAE,eAAe,CACxD,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAQrB,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,sBAAsB,CAChE,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAGrB,CAAC"}
@@ -3,10 +3,19 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { AiProviderPreviewRunFn, AiProviderRunFn, AiProviderStreamFn } from "@workglow/ai";
6
+ import type { AiProviderRunFnRegistration, AiProviderPreviewRunFn } from "@workglow/ai";
7
7
  import type { AnthropicModelConfig } from "./Anthropic_ModelSchema";
8
8
  export { getClient, getMaxTokens, getModelName, loadAnthropicSDK } from "./Anthropic_Client";
9
- export declare const ANTHROPIC_TASKS: Record<string, AiProviderRunFn<any, any, AnthropicModelConfig>>;
10
- export declare const ANTHROPIC_STREAM_TASKS: Record<string, AiProviderStreamFn<any, any, AnthropicModelConfig>>;
9
+ /**
10
+ * Capability-set run-fn registrations for the Anthropic provider. Order is
11
+ * significant only as a tiebreaker — the dispatcher prefers the smallest
12
+ * `serves` set that is a superset of the task's `requires`, so the bare
13
+ * `["text.generation"]` entry wins for a plain {@link TextGenerationTask} or
14
+ * {@link AiChatTask} while the `["text.generation", "tool-use"]` entry wins
15
+ * for {@link ToolCallingTask}.
16
+ *
17
+ * Note: Anthropic does NOT support embeddings, image generation, or image editing.
18
+ */
19
+ export declare const ANTHROPIC_RUN_FNS: readonly AiProviderRunFnRegistration<any, any, AnthropicModelConfig>[];
11
20
  export declare const ANTHROPIC_PREVIEW_TASKS: Record<string, AiProviderPreviewRunFn<any, any, AnthropicModelConfig>>;
12
21
  //# sourceMappingURL=Anthropic_JobRunFns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_JobRunFns.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_JobRunFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAiB7F,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAU3F,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,MAAM,EACN,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAQnD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAC1C,MAAM,EACN,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAGvD,CAAC"}
1
+ {"version":3,"file":"Anthropic_JobRunFns.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_JobRunFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAYpE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAW7F;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,2BAA2B,CAElE,GAAG,EAEH,GAAG,EACH,oBAAoB,CACrB,EASA,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAC1C,MAAM,EAEN,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAGvD,CAAC"}
@@ -5,5 +5,5 @@
5
5
  */
6
6
  import type { AiProviderRunFn, ModelInfoTaskInput, ModelInfoTaskOutput } from "@workglow/ai";
7
7
  import type { AnthropicModelConfig } from "./Anthropic_ModelSchema";
8
- export declare const Anthropic_ModelInfo: AiProviderRunFn<ModelInfoTaskInput, ModelInfoTaskOutput, AnthropicModelConfig>;
8
+ export declare const Anthropic_ModelInfo_Stream: AiProviderRunFn<ModelInfoTaskInput, ModelInfoTaskOutput, AnthropicModelConfig>;
9
9
  //# sourceMappingURL=Anthropic_ModelInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_ModelInfo.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_ModelInfo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAC/C,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,CAwBrB,CAAC"}
1
+ {"version":3,"file":"Anthropic_ModelInfo.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_ModelInfo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,0BAA0B,EAAE,eAAe,CACtD,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,CAarB,CAAC"}
@@ -49,7 +49,7 @@ export declare const AnthropicModelRecordSchema: {
49
49
  readonly model_id: {
50
50
  readonly type: "string";
51
51
  };
52
- readonly tasks: {
52
+ readonly capabilities: {
53
53
  readonly type: "array";
54
54
  readonly items: {
55
55
  readonly type: "string";
@@ -101,7 +101,7 @@ export declare const AnthropicModelRecordSchema: {
101
101
  readonly additionalProperties: false;
102
102
  };
103
103
  };
104
- readonly required: readonly ["model_id", "tasks", "provider", "title", "description", "provider_config", "metadata", "provider", "provider_config"];
104
+ readonly required: readonly ["model_id", "capabilities", "provider", "title", "description", "provider_config", "metadata", "provider", "provider_config"];
105
105
  readonly additionalProperties: false;
106
106
  };
107
107
  export type AnthropicModelRecord = FromSchema<typeof AnthropicModelRecordSchema>;
@@ -111,7 +111,7 @@ export declare const AnthropicModelConfigSchema: {
111
111
  readonly model_id: {
112
112
  readonly type: "string";
113
113
  };
114
- readonly tasks: {
114
+ readonly capabilities: {
115
115
  readonly type: "array";
116
116
  readonly items: {
117
117
  readonly type: "string";
@@ -4,5 +4,5 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { AiProviderRunFn, ModelSearchTaskInput, ModelSearchTaskOutput } from "@workglow/ai";
7
- export declare const Anthropic_ModelSearch: AiProviderRunFn<ModelSearchTaskInput, ModelSearchTaskOutput>;
7
+ export declare const Anthropic_ModelSearch_Stream: AiProviderRunFn<ModelSearchTaskInput, ModelSearchTaskOutput>;
8
8
  //# sourceMappingURL=Anthropic_ModelSearch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_ModelSearch.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_ModelSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAmDtB,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,oBAAoB,EACpB,qBAAqB,CAUtB,CAAC"}
1
+ {"version":3,"file":"Anthropic_ModelSearch.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_ModelSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAmDtB,eAAO,MAAM,4BAA4B,EAAE,eAAe,CACxD,oBAAoB,EACpB,qBAAqB,CAUtB,CAAC"}
@@ -3,8 +3,19 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { AiProviderRunFn, AiProviderStreamFn, StructuredGenerationTaskInput, StructuredGenerationTaskOutput } from "@workglow/ai";
6
+ import type { AiProviderRunFn, StructuredGenerationTaskInput, StructuredGenerationTaskOutput } from "@workglow/ai";
7
7
  import type { AnthropicModelConfig } from "./Anthropic_ModelSchema";
8
- export declare const Anthropic_StructuredGeneration: AiProviderRunFn<StructuredGenerationTaskInput, StructuredGenerationTaskOutput, AnthropicModelConfig>;
9
- export declare const Anthropic_StructuredGeneration_Stream: AiProviderStreamFn<StructuredGenerationTaskInput, StructuredGenerationTaskOutput, AnthropicModelConfig>;
8
+ /**
9
+ * Streaming run-fn for the `["text.generation", "json-mode"]` capability.
10
+ *
11
+ * Anthropic implements structured generation via tool-use under the hood:
12
+ * a synthetic `structured_output` tool forces the model to emit JSON conforming
13
+ * to the output schema. We accumulate the `input_json_delta` stream events and
14
+ * yield `object-delta` for consumers that want incremental updates. The final
15
+ * `finish` event carries the parsed object in `finish.data.object` per the
16
+ * documented streaming-convention exception for structured generation (CLAUDE.md
17
+ * lines 201-205): the `StructuredGenerationTask` consumer reads the parsed
18
+ * object from `finish.data` directly instead of accumulating deltas.
19
+ */
20
+ export declare const Anthropic_StructuredGeneration_Stream: AiProviderRunFn<StructuredGenerationTaskInput, StructuredGenerationTaskOutput, AnthropicModelConfig>;
10
21
  //# sourceMappingURL=Anthropic_StructuredGeneration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_StructuredGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_StructuredGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,eAAO,MAAM,8BAA8B,EAAE,eAAe,CAC1D,6BAA6B,EAC7B,8BAA8B,EAC9B,oBAAoB,CA8BrB,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,kBAAkB,CACpE,6BAA6B,EAC7B,8BAA8B,EAC9B,oBAAoB,CA+CrB,CAAC"}
1
+ {"version":3,"file":"Anthropic_StructuredGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_StructuredGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qCAAqC,EAAE,eAAe,CACjE,6BAA6B,EAC7B,8BAA8B,EAC9B,oBAAoB,CA6CrB,CAAC"}
@@ -3,8 +3,18 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { AiProviderRunFn, AiProviderStreamFn, TextGenerationTaskInput, TextGenerationTaskOutput } from "@workglow/ai";
6
+ import type { AiProviderRunFn, TextGenerationTaskInput, TextGenerationTaskOutput } from "@workglow/ai";
7
7
  import type { AnthropicModelConfig } from "./Anthropic_ModelSchema";
8
- export declare const Anthropic_TextGeneration: AiProviderRunFn<TextGenerationTaskInput, TextGenerationTaskOutput, AnthropicModelConfig>;
9
- export declare const Anthropic_TextGeneration_Stream: AiProviderStreamFn<TextGenerationTaskInput, TextGenerationTaskOutput, AnthropicModelConfig>;
8
+ /**
9
+ * Streaming run-fn for the `["text.generation"]` capability. Used by both
10
+ * {@link TextGenerationTask} (prompt-only input) and {@link AiChatTask}
11
+ * (full conversation history). Yields `text-delta` events on the `text` port
12
+ * and a final empty `finish` event per the streaming convention (consumer
13
+ * accumulates).
14
+ *
15
+ * Discriminates on `Array.isArray(input.messages) && input.messages.length > 0`
16
+ * to choose the chat vs. prompt path — safe because AiChatTask always provides
17
+ * `messages` and TextGenerationTask never does.
18
+ */
19
+ export declare const Anthropic_TextGeneration_Stream: AiProviderRunFn<TextGenerationTaskInput, TextGenerationTaskOutput, AnthropicModelConfig>;
10
20
  //# sourceMappingURL=Anthropic_TextGeneration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_TextGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_TextGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,eAAO,MAAM,wBAAwB,EAAE,eAAe,CACpD,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,CAsCrB,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,kBAAkB,CAC9D,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,CAsCrB,CAAC"}
1
+ {"version":3,"file":"Anthropic_TextGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_TextGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAgBpE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,+BAA+B,EAAE,eAAe,CAC3D,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,CAqErB,CAAC"}
@@ -3,8 +3,7 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { AiProviderRunFn, AiProviderStreamFn, TextRewriterTaskInput, TextRewriterTaskOutput } from "@workglow/ai";
6
+ import type { AiProviderRunFn, TextRewriterTaskInput, TextRewriterTaskOutput } from "@workglow/ai";
7
7
  import type { AnthropicModelConfig } from "./Anthropic_ModelSchema";
8
- export declare const Anthropic_TextRewriter: AiProviderRunFn<TextRewriterTaskInput, TextRewriterTaskOutput, AnthropicModelConfig>;
9
- export declare const Anthropic_TextRewriter_Stream: AiProviderStreamFn<TextRewriterTaskInput, TextRewriterTaskOutput, AnthropicModelConfig>;
8
+ export declare const Anthropic_TextRewriter_Stream: AiProviderRunFn<TextRewriterTaskInput, TextRewriterTaskOutput, AnthropicModelConfig>;
10
9
  //# sourceMappingURL=Anthropic_TextRewriter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_TextRewriter.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_TextRewriter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,sBAAsB,EAAE,eAAe,CAClD,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,CAoBrB,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,kBAAkB,CAC5D,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,CAqBrB,CAAC"}
1
+ {"version":3,"file":"Anthropic_TextRewriter.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_TextRewriter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,6BAA6B,EAAE,eAAe,CACzD,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,CAqBrB,CAAC"}
@@ -3,8 +3,7 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { AiProviderRunFn, AiProviderStreamFn, TextSummaryTaskInput, TextSummaryTaskOutput } from "@workglow/ai";
6
+ import type { AiProviderRunFn, TextSummaryTaskInput, TextSummaryTaskOutput } from "@workglow/ai";
7
7
  import type { AnthropicModelConfig } from "./Anthropic_ModelSchema";
8
- export declare const Anthropic_TextSummary: AiProviderRunFn<TextSummaryTaskInput, TextSummaryTaskOutput, AnthropicModelConfig>;
9
- export declare const Anthropic_TextSummary_Stream: AiProviderStreamFn<TextSummaryTaskInput, TextSummaryTaskOutput, AnthropicModelConfig>;
8
+ export declare const Anthropic_TextSummary_Stream: AiProviderRunFn<TextSummaryTaskInput, TextSummaryTaskOutput, AnthropicModelConfig>;
10
9
  //# sourceMappingURL=Anthropic_TextSummary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_TextSummary.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_TextSummary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAoBrB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,kBAAkB,CAC3D,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAqBrB,CAAC"}
1
+ {"version":3,"file":"Anthropic_TextSummary.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_TextSummary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,4BAA4B,EAAE,eAAe,CACxD,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAqBrB,CAAC"}
@@ -3,9 +3,8 @@
3
3
  * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { AiProviderRunFn, AiProviderStreamFn, ChatMessage, ToolCallingTaskInput, ToolCallingTaskOutput } from "@workglow/ai";
6
+ import type { AiProviderRunFn, ChatMessage, ToolCallingTaskInput, ToolCallingTaskOutput } from "@workglow/ai";
7
7
  import type { AnthropicModelConfig } from "./Anthropic_ModelSchema";
8
8
  export declare function buildAnthropicMessages(messages: ReadonlyArray<ChatMessage> | undefined, prompt: unknown): any[];
9
- export declare const Anthropic_ToolCalling: AiProviderRunFn<ToolCallingTaskInput, ToolCallingTaskOutput, AnthropicModelConfig>;
10
- export declare const Anthropic_ToolCalling_Stream: AiProviderStreamFn<ToolCallingTaskInput, ToolCallingTaskOutput, AnthropicModelConfig>;
9
+ export declare const Anthropic_ToolCalling_Stream: AiProviderRunFn<ToolCallingTaskInput, ToolCallingTaskOutput, AnthropicModelConfig>;
11
10
  //# sourceMappingURL=Anthropic_ToolCalling.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Anthropic_ToolCalling.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_ToolCalling.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,WAAW,EAEX,oBAAoB,EACpB,qBAAqB,EAGtB,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,SAAS,EAChD,MAAM,EAAE,OAAO,GACd,GAAG,EAAE,CA0DP;AAWD,eAAO,MAAM,qBAAqB,EAAE,eAAe,CACjD,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAwErB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,kBAAkB,CAC3D,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAmIrB,CAAC"}
1
+ {"version":3,"file":"Anthropic_ToolCalling.d.ts","sourceRoot":"","sources":["../../../src/ai/common/Anthropic_ToolCalling.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EAEX,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,SAAS,EAChD,MAAM,EAAE,OAAO,GACd,GAAG,EAAE,CA0DP;AAWD,eAAO,MAAM,4BAA4B,EAAE,eAAe,CACxD,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,CAsIrB,CAAC"}
@@ -7,4 +7,30 @@ export * from "./common/Anthropic_Constants";
7
7
  export * from "./common/Anthropic_ModelSchema";
8
8
  export * from "./common/Anthropic_ModelSearch";
9
9
  export * from "./registerAnthropic";
10
+ import { AnthropicQueuedProvider } from "./AnthropicQueuedProvider";
11
+ /**
12
+ * @internal Symbols exported only for use by `@workglow/test`. Not part of the stable public API.
13
+ */
14
+ export declare const _testOnly: {
15
+ readonly AnthropicQueuedProvider: typeof AnthropicQueuedProvider;
16
+ readonly ANTHROPIC_RUN_FN_SPECS: {
17
+ serves: ["model.count-tokens"] | ["model.info"] | ["model.search"] | ["text.generation"] | ["text.rewriter"] | ["text.summary"] | ["text.generation", "json-mode"] | ["text.generation", "tool-use"];
18
+ }[];
19
+ readonly ANTHROPIC_RUN_FNS: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
20
+ capabilities?: string[] | undefined;
21
+ description?: string | undefined;
22
+ metadata?: {
23
+ [x: string]: unknown;
24
+ } | undefined;
25
+ model_id?: string | undefined;
26
+ provider: "ANTHROPIC";
27
+ provider_config: {
28
+ base_url?: string | undefined;
29
+ credential_key?: string | undefined;
30
+ max_tokens?: number | undefined;
31
+ model_name: string;
32
+ };
33
+ title?: string | undefined;
34
+ }>[];
35
+ };
10
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIpE;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CAIZ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registerAnthropicInline.d.ts","sourceRoot":"","sources":["../../src/ai/registerAnthropicInline.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAS9D,wBAAsB,uBAAuB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhG"}
1
+ {"version":3,"file":"registerAnthropicInline.d.ts","sourceRoot":"","sources":["../../src/ai/registerAnthropicInline.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAK9D,wBAAsB,uBAAuB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"registerAnthropicWorker.d.ts","sourceRoot":"","sources":["../../src/ai/registerAnthropicWorker.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAU7D"}
1
+ {"version":3,"file":"registerAnthropicWorker.d.ts","sourceRoot":"","sources":["../../src/ai/registerAnthropicWorker.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAM7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/ai/runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/ai/runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AAGH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ai-runtime.d.ts","sourceRoot":"","sources":["../src/ai-runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"ai-runtime.d.ts","sourceRoot":"","sources":["../src/ai-runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,cAAc,cAAc,CAAC"}