@anvia/core 0.26.0 → 1.0.0-rc.10

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 (184) hide show
  1. package/README.md +400 -94
  2. package/dist/agent/index.d.ts +67 -71
  3. package/dist/agent/index.js +36 -18
  4. package/dist/agent/interactions/index.d.ts +122 -0
  5. package/dist/agent/interactions/index.js +20 -0
  6. package/dist/agent-DWzW9SoH.d.ts +150 -0
  7. package/dist/chunk-3RM57ZT2.js +31 -0
  8. package/dist/chunk-3RM57ZT2.js.map +1 -0
  9. package/dist/chunk-3RWESPUG.js +331 -0
  10. package/dist/chunk-3RWESPUG.js.map +1 -0
  11. package/dist/{chunk-NCPN4SJR.js → chunk-3SKZ2BKP.js} +15 -13
  12. package/dist/chunk-3SKZ2BKP.js.map +1 -0
  13. package/dist/chunk-3XQGVDU5.js +69 -0
  14. package/dist/chunk-3XQGVDU5.js.map +1 -0
  15. package/dist/{chunk-MRQLEK2B.js → chunk-5C6B6ZRH.js} +69 -51
  16. package/dist/chunk-5C6B6ZRH.js.map +1 -0
  17. package/dist/chunk-6BBOCFHV.js +323 -0
  18. package/dist/chunk-6BBOCFHV.js.map +1 -0
  19. package/dist/chunk-7JLAIN6E.js +15 -0
  20. package/dist/chunk-7JLAIN6E.js.map +1 -0
  21. package/dist/chunk-7PHMK7W4.js +1516 -0
  22. package/dist/chunk-7PHMK7W4.js.map +1 -0
  23. package/dist/{chunk-CWUJUSOS.js → chunk-AZB6N7P4.js} +94 -65
  24. package/dist/chunk-AZB6N7P4.js.map +1 -0
  25. package/dist/chunk-D4PACGPA.js +37 -0
  26. package/dist/chunk-D4PACGPA.js.map +1 -0
  27. package/dist/chunk-EFLT7XZD.js +51 -0
  28. package/dist/chunk-EFLT7XZD.js.map +1 -0
  29. package/dist/chunk-EMZKPRE6.js +667 -0
  30. package/dist/chunk-EMZKPRE6.js.map +1 -0
  31. package/dist/chunk-I3Q7XSBB.js +59 -0
  32. package/dist/chunk-I3Q7XSBB.js.map +1 -0
  33. package/dist/chunk-J6LVLV6P.js +13 -0
  34. package/dist/chunk-J6LVLV6P.js.map +1 -0
  35. package/dist/chunk-LTXABCOO.js +127 -0
  36. package/dist/chunk-LTXABCOO.js.map +1 -0
  37. package/dist/chunk-OJBFDBLG.js +164 -0
  38. package/dist/chunk-OJBFDBLG.js.map +1 -0
  39. package/dist/chunk-QGX73TSQ.js +177 -0
  40. package/dist/chunk-QGX73TSQ.js.map +1 -0
  41. package/dist/chunk-QOUPWOGW.js +29 -0
  42. package/dist/chunk-QOUPWOGW.js.map +1 -0
  43. package/dist/chunk-SJMSS5SI.js +171 -0
  44. package/dist/chunk-SJMSS5SI.js.map +1 -0
  45. package/dist/chunk-T2C3CGDQ.js +56 -0
  46. package/dist/chunk-T2C3CGDQ.js.map +1 -0
  47. package/dist/chunk-VX3HS6PE.js +4569 -0
  48. package/dist/chunk-VX3HS6PE.js.map +1 -0
  49. package/dist/chunk-X4LK4ODN.js +86 -0
  50. package/dist/chunk-X4LK4ODN.js.map +1 -0
  51. package/dist/chunk-ZA564323.js +331 -0
  52. package/dist/chunk-ZA564323.js.map +1 -0
  53. package/dist/completion/index.d.ts +6 -36
  54. package/dist/completion/index.js +34 -29
  55. package/dist/documents/index.d.ts +34 -0
  56. package/dist/documents/index.js +340 -0
  57. package/dist/documents/index.js.map +1 -0
  58. package/dist/dynamic-tools-aIZlg5x1.d.ts +45 -0
  59. package/dist/embeddings/index.d.ts +11 -9
  60. package/dist/embeddings/index.js +3 -4
  61. package/dist/evals/index.d.ts +57 -21
  62. package/dist/evals/index.js +209 -104
  63. package/dist/evals/index.js.map +1 -1
  64. package/dist/extractor/index.d.ts +27 -42
  65. package/dist/extractor/index.js +9 -22
  66. package/dist/guardrails/index.d.ts +7 -129
  67. package/dist/guardrails/index.js +1 -1
  68. package/dist/image-generation/index.d.ts +23 -23
  69. package/dist/image-generation/index.js +7 -39
  70. package/dist/image-generation/index.js.map +1 -1
  71. package/dist/index.d.ts +24 -22
  72. package/dist/index.js +85 -68
  73. package/dist/internal/agent.d.ts +156 -10
  74. package/dist/internal/agent.js +58 -18
  75. package/dist/internal/agent.js.map +1 -1
  76. package/dist/mcp/index.d.ts +7 -15
  77. package/dist/mcp/index.js +3 -348
  78. package/dist/mcp/index.js.map +1 -1
  79. package/dist/memory/index.d.ts +20 -6
  80. package/dist/memory/index.js +11 -10
  81. package/dist/middleware-kcF8AusP.d.ts +59 -0
  82. package/dist/model-call-options-CZkSw_xN.d.ts +6 -0
  83. package/dist/model-listing/index.d.ts +3 -1
  84. package/dist/observability/index.d.ts +23 -4
  85. package/dist/observability/index.js +10 -5
  86. package/dist/observability/index.js.map +1 -1
  87. package/dist/pipeline/index.d.ts +111 -73
  88. package/dist/pipeline/index.js +471 -286
  89. package/dist/pipeline/index.js.map +1 -1
  90. package/dist/provider-output-error-BEwDgVv3.d.ts +99 -0
  91. package/dist/retry-CjvSlKGW.d.ts +16 -0
  92. package/dist/skills/index.d.ts +5 -4
  93. package/dist/skills/index.js +8 -8
  94. package/dist/speech-generation/index.d.ts +37 -0
  95. package/dist/speech-generation/index.js +10 -0
  96. package/dist/streaming/index.js +37 -3
  97. package/dist/streaming/index.js.map +1 -1
  98. package/dist/text-ZLECpQE7.d.ts +32 -0
  99. package/dist/think-tool-BwCsJ365.d.ts +40 -0
  100. package/dist/tool/index.d.ts +11 -6
  101. package/dist/tool/index.js +21 -21
  102. package/dist/tool-BpqpoRSE.d.ts +58 -0
  103. package/dist/transcription/index.d.ts +29 -22
  104. package/dist/transcription/index.js +7 -57
  105. package/dist/transcription/index.js.map +1 -1
  106. package/dist/type-utils-CtHVDRn_.d.ts +6 -0
  107. package/dist/types-CXNE592e.d.ts +130 -0
  108. package/dist/types-Cr4uiYo5.d.ts +99 -0
  109. package/dist/{types-04LqWrmy.d.ts → types-DC1U1XwW.d.ts} +1 -1
  110. package/dist/types-DKOXVTcq.d.ts +155 -0
  111. package/dist/types-DgvozfPc.d.ts +349 -0
  112. package/dist/types-DhkodEft.d.ts +105 -0
  113. package/dist/types-DjqRHeAi.d.ts +31 -0
  114. package/dist/types-Sue2hb_L.d.ts +403 -0
  115. package/dist/vector-store/index.d.ts +34 -34
  116. package/dist/vector-store/index.js +10 -6
  117. package/package.json +22 -24
  118. package/dist/agent-x3YTyv5i.d.ts +0 -222
  119. package/dist/audio-generation/index.d.ts +0 -33
  120. package/dist/audio-generation/index.js +0 -42
  121. package/dist/audio-generation/index.js.map +0 -1
  122. package/dist/chunk-2ODTMRHP.js +0 -54
  123. package/dist/chunk-2ODTMRHP.js.map +0 -1
  124. package/dist/chunk-ADH7NNCS.js +0 -512
  125. package/dist/chunk-ADH7NNCS.js.map +0 -1
  126. package/dist/chunk-BALBBVI3.js +0 -2732
  127. package/dist/chunk-BALBBVI3.js.map +0 -1
  128. package/dist/chunk-CQNNSZPG.js +0 -9
  129. package/dist/chunk-CQNNSZPG.js.map +0 -1
  130. package/dist/chunk-CWUJUSOS.js.map +0 -1
  131. package/dist/chunk-DALYP4PX.js +0 -225
  132. package/dist/chunk-DALYP4PX.js.map +0 -1
  133. package/dist/chunk-HYUYZEAJ.js +0 -223
  134. package/dist/chunk-HYUYZEAJ.js.map +0 -1
  135. package/dist/chunk-I6XOQ4LK.js +0 -466
  136. package/dist/chunk-I6XOQ4LK.js.map +0 -1
  137. package/dist/chunk-JI5YZWNT.js +0 -220
  138. package/dist/chunk-JI5YZWNT.js.map +0 -1
  139. package/dist/chunk-MC3CCKEB.js +0 -221
  140. package/dist/chunk-MC3CCKEB.js.map +0 -1
  141. package/dist/chunk-MELYDKWQ.js +0 -337
  142. package/dist/chunk-MELYDKWQ.js.map +0 -1
  143. package/dist/chunk-MNWK2USR.js +0 -243
  144. package/dist/chunk-MNWK2USR.js.map +0 -1
  145. package/dist/chunk-MRQLEK2B.js.map +0 -1
  146. package/dist/chunk-NCPN4SJR.js.map +0 -1
  147. package/dist/chunk-OIMLU4SF.js +0 -20
  148. package/dist/chunk-OIMLU4SF.js.map +0 -1
  149. package/dist/chunk-Q25IWLBT.js +0 -138
  150. package/dist/chunk-Q25IWLBT.js.map +0 -1
  151. package/dist/chunk-UQX6EXWG.js +0 -33
  152. package/dist/chunk-UQX6EXWG.js.map +0 -1
  153. package/dist/chunk-WQKHFADH.js +0 -12
  154. package/dist/chunk-WQKHFADH.js.map +0 -1
  155. package/dist/chunk-XUUY2L2D.js +0 -42
  156. package/dist/chunk-XUUY2L2D.js.map +0 -1
  157. package/dist/chunk-XWUC7CIT.js +0 -1
  158. package/dist/chunk-XWUC7CIT.js.map +0 -1
  159. package/dist/chunk-YLMDBQO4.js +0 -141
  160. package/dist/chunk-YLMDBQO4.js.map +0 -1
  161. package/dist/errors-2moLDuuN.d.ts +0 -17
  162. package/dist/hooks/index.d.ts +0 -12
  163. package/dist/hooks/index.js +0 -17
  164. package/dist/index-BxSbmOMr.d.ts +0 -257
  165. package/dist/json-BVPssigK.d.ts +0 -39
  166. package/dist/loaders/index.d.ts +0 -91
  167. package/dist/loaders/index.js +0 -299
  168. package/dist/loaders/index.js.map +0 -1
  169. package/dist/middleware-Dp3d_pxi.d.ts +0 -90
  170. package/dist/request/index.d.ts +0 -28
  171. package/dist/request/index.js +0 -25
  172. package/dist/think-tool-DfCMuO8e.d.ts +0 -26
  173. package/dist/tool-Cohdv5GC.d.ts +0 -65
  174. package/dist/types-BCTRUGex.d.ts +0 -47
  175. package/dist/types-BrLbKnEz.d.ts +0 -119
  176. package/dist/types-D9JpeAPF.d.ts +0 -114
  177. package/dist/types-G12i56s2.d.ts +0 -354
  178. package/dist/types-JJCxRnaZ.d.ts +0 -70
  179. package/dist/types-O-abTIin.d.ts +0 -79
  180. package/dist/ui/index.d.ts +0 -107
  181. package/dist/ui/index.js +0 -10
  182. package/dist/ui/index.js.map +0 -1
  183. /package/dist/{hooks → agent/interactions}/index.js.map +0 -0
  184. /package/dist/{request → speech-generation}/index.js.map +0 -0
@@ -1,44 +1,59 @@
1
+ import { t as AgentSuspendedResult, f as AgentInput, m as AgentRunSettings } from '../types-Sue2hb_L.js';
2
+ import { A as Agent } from '../agent-DWzW9SoH.js';
3
+ import { J as JsonObject, c as CompletionModel } from '../types-DgvozfPc.js';
4
+ import { ExtractOptions } from '../extractor/index.js';
1
5
  import { z } from 'zod';
2
- import { A as Agent } from '../agent-x3YTyv5i.js';
3
- import { J as JsonObject, C as CompletionModel } from '../types-G12i56s2.js';
4
- import { Extractor } from '../extractor/index.js';
5
- import '../guardrails/index.js';
6
- import '../types-D9JpeAPF.js';
7
- import '../types-BrLbKnEz.js';
8
- import '../index-BxSbmOMr.js';
9
- import '../tool-Cohdv5GC.js';
10
- import '../middleware-Dp3d_pxi.js';
11
- import '../types-BCTRUGex.js';
12
- import '../types-O-abTIin.js';
6
+ import '../agent/interactions/index.js';
7
+ import '../retry-CjvSlKGW.js';
8
+ import '../types-DhkodEft.js';
9
+ import '../type-utils-CtHVDRn_.js';
10
+ import '../types-DKOXVTcq.js';
11
+ import '../tool-BpqpoRSE.js';
12
+ import '../middleware-kcF8AusP.js';
13
13
  import '../zod-schema-C7F4clpm.js';
14
+ import '../types-DjqRHeAi.js';
15
+ import '../types-DC1U1XwW.js';
16
+ import '../dynamic-tools-aIZlg5x1.js';
17
+ import '../types-Cr4uiYo5.js';
18
+ import '../model-call-options-CZkSw_xN.js';
19
+ import '../types-CXNE592e.js';
14
20
 
15
- /** Minimal interface for anything that can run as a pipeline stage. */
16
- interface PipelineOp<Input = unknown, Output = unknown> {
17
- run(input: Input): Output | Promise<Output>;
21
+ declare class PipelineAgentSuspensionError extends Error {
22
+ readonly result: AgentSuspendedResult;
23
+ constructor(result: AgentSuspendedResult);
18
24
  }
19
- interface PipelineBatchOptions {
20
- /** Maximum number of inputs processed at the same time. */
21
- concurrency: number;
22
- }
23
- type AwaitedOutput<Op> = Op extends PipelineOp<unknown, infer Output> ? Awaited<Output> : never;
24
- type ParallelOutput<Branches extends Record<string, PipelineOp<unknown, unknown>>> = {
25
- [Key in keyof Branches]: AwaitedOutput<Branches[Key]>;
26
- };
25
+
27
26
  type PipelineMetadata = {
28
27
  id?: string | undefined;
29
28
  name?: string | undefined;
30
29
  description?: string | undefined;
31
30
  metadata?: JsonObject | undefined;
32
31
  };
32
+ type PipelineOptions<Input, Parsed = Input> = {
33
+ id: string;
34
+ inputSchema: z.ZodType<Parsed, Input>;
35
+ name?: string | undefined;
36
+ description?: string | undefined;
37
+ metadata?: JsonObject | undefined;
38
+ };
33
39
  type PipelineStageMetadata = {
34
- id?: string | undefined;
40
+ id: string;
35
41
  name?: string | undefined;
36
42
  description?: string | undefined;
37
43
  metadata?: JsonObject | undefined;
38
44
  };
45
+ type PipelineStageContext<Input> = {
46
+ input: Input;
47
+ runId: string;
48
+ pipelineId: string;
49
+ runMetadata?: JsonObject | undefined;
50
+ abortSignal?: AbortSignal | undefined;
51
+ };
39
52
  type PipelineStageKind = "input" | "step" | "pipeline" | "parallel" | "branch" | "agent" | "extractor" | "output";
53
+ type PipelineNodePath = readonly string[];
40
54
  type PipelineGraphNode = {
41
55
  id: string;
56
+ path: PipelineNodePath;
42
57
  kind: PipelineStageKind;
43
58
  label: string;
44
59
  description?: string | undefined;
@@ -50,8 +65,8 @@ type PipelineGraphNode = {
50
65
  };
51
66
  type PipelineGraphEdge = {
52
67
  id: string;
53
- source: string;
54
- target: string;
68
+ source: PipelineNodePath;
69
+ target: PipelineNodePath;
55
70
  label?: string | undefined;
56
71
  };
57
72
  type PipelineGraph = PipelineMetadata & {
@@ -59,74 +74,97 @@ type PipelineGraph = PipelineMetadata & {
59
74
  nodes: PipelineGraphNode[];
60
75
  edges: PipelineGraphEdge[];
61
76
  };
62
- type PipelineRunEvent = {
63
- type: "stage_started";
77
+ type PipelineRunEventBase = {
78
+ runId: string;
79
+ pipelineId: string;
80
+ path: PipelineNodePath;
64
81
  node: PipelineGraphNode;
65
- } | {
82
+ };
83
+ type PipelineRunEvent = (PipelineRunEventBase & {
84
+ type: "stage_started";
85
+ }) | (PipelineRunEventBase & {
66
86
  type: "stage_completed";
67
- node: PipelineGraphNode;
68
87
  durationMs: number;
69
- } | {
88
+ }) | (PipelineRunEventBase & {
70
89
  type: "stage_failed";
71
- node: PipelineGraphNode;
72
90
  durationMs: number;
73
91
  error: unknown;
74
- };
92
+ });
75
93
  type PipelineRunObserver = {
76
94
  onEvent(event: PipelineRunEvent): void | Promise<void>;
77
95
  };
78
- type PipelineRunOptions = {
96
+ type PipelineRunOptions<Input> = {
97
+ input: Input;
98
+ runId?: string | undefined;
99
+ metadata?: JsonObject | undefined;
100
+ abortSignal?: AbortSignal | undefined;
79
101
  observer?: PipelineRunObserver | undefined;
102
+ failOnObserverError?: boolean | undefined;
103
+ };
104
+ type PipelineRunResult<Output> = {
105
+ runId: string;
106
+ output: Awaited<Output>;
80
107
  };
81
- type PipelineRunContext = {
108
+ type PipelineBatchOptions<Input> = {
109
+ inputs: Iterable<Input>;
110
+ concurrency: number;
111
+ metadata?: JsonObject | undefined;
112
+ abortSignal?: AbortSignal | undefined;
82
113
  observer?: PipelineRunObserver | undefined;
114
+ failOnObserverError?: boolean | undefined;
83
115
  };
84
- type PipelineExecutor<Input, Output> = (input: Input, context: PipelineRunContext) => Output | Promise<Output>;
85
- type PipelineBuilderState = {
86
- graph: PipelineGraph;
87
- terminalNodeId: string;
88
- terminalNodeIds: string[];
89
- nextNodeIndex: number;
90
- nextEdgeIndex: number;
116
+ type PipelineBatchItem<Output> = {
117
+ status: "completed";
118
+ runId: string;
119
+ output: Awaited<Output>;
120
+ } | {
121
+ status: "failed";
122
+ runId: string;
123
+ error: unknown;
124
+ };
125
+ type PipelineOutput<Value> = Value extends Pipeline<infer _Input, infer Output> ? Awaited<Output> : never;
126
+ type ParallelOutput<Branches extends Record<string, unknown>> = {
127
+ [Key in keyof Branches]: PipelineOutput<Branches[Key]>;
91
128
  };
92
129
 
93
- /** Runnable pipeline returned by `PipelineBuilder.build()`. */
94
- declare class Pipeline<Input, Output> implements PipelineOp<Input, Awaited<Output>> {
95
- private readonly executor;
96
- private readonly pipelineGraph;
130
+ type RawResponseOf<Model> = Model extends CompletionModel<infer RawResponse> ? RawResponse : unknown;
131
+ type PipelineAgentRequest<Output, Model extends CompletionModel> = AgentInput & Omit<AgentRunSettings<Output, RawResponseOf<Model>>, "abortSignal">;
132
+ type PipelineStepOptions<Input, Output> = PipelineStageMetadata & {
133
+ run(context: PipelineStageContext<Input>): Output | Promise<Output>;
134
+ };
135
+ type PipelineComposeOptions<Input, Output> = PipelineStageMetadata & {
136
+ pipeline: Pipeline<Input, Output>;
137
+ };
138
+ type PipelineParallelOptions<Input, Branches extends Record<string, Pipeline<Input, unknown>>> = PipelineStageMetadata & {
139
+ branches: Branches;
140
+ };
141
+ type PipelineAgentOptions<Input, AgentOutput, Model extends CompletionModel> = PipelineStageMetadata & {
142
+ agent: Agent<AgentOutput, Model>;
143
+ request(context: PipelineStageContext<Input>): PipelineAgentRequest<AgentOutput, Model> | Promise<PipelineAgentRequest<AgentOutput, Model>>;
144
+ suspension: "reject";
145
+ };
146
+ type PipelineExtractOptions<Input, Extracted, Model extends CompletionModel> = PipelineStageMetadata & Omit<ExtractOptions<Extracted, Model>, "text" | "abortSignal"> & {
147
+ text(context: PipelineStageContext<Input>): string | Promise<string>;
148
+ };
149
+ /** Immutable, typed Pipeline with explicit stage and execution boundaries. */
150
+ declare class Pipeline<Input, Output = Input> {
97
151
  readonly id: string;
98
152
  readonly name: string | undefined;
99
153
  readonly description: string | undefined;
100
154
  readonly metadata: JsonObject | undefined;
101
- constructor(executor: PipelineExecutor<Input, Output>, pipelineGraph?: PipelineGraph);
102
- /** Run one input through the built pipeline and return the final stage output. */
103
- run(input: Input, options?: PipelineRunOptions): Promise<Awaited<Output>>;
104
- /** Run many inputs through the same pipeline with bounded concurrency. */
105
- batch<I extends Iterable<Input>>(inputs: I, options: PipelineBatchOptions): Promise<Array<Awaited<Output>>>;
106
- graph(): PipelineGraph;
107
- }
108
-
109
- /** Builds a typed pipeline from an original input type to an inferred output type. */
110
- declare class PipelineBuilder<Input, Output = Input> {
111
155
  private readonly executor;
112
156
  private readonly state;
113
- constructor(schema: z.ZodType<Output, Input>);
114
- constructor(schema: z.ZodType<Output, Input>, metadata: PipelineMetadata);
115
- constructor(executor: (input: Input) => Output | Promise<Output>);
116
- constructor(executor: PipelineExecutor<Input, Output>, state: PipelineBuilderState);
117
- /** Add a synchronous or asynchronous transform stage. */
118
- step<Next>(fn: (input: Awaited<Output>) => Next | Promise<Next>, metadata?: PipelineStageMetadata): PipelineBuilder<Input, Awaited<Next>>;
119
- /** Compose another pipeline operation after the current stage. */
120
- use<Next>(op: PipelineOp<Awaited<Output>, Next>, metadata?: PipelineStageMetadata): PipelineBuilder<Input, Awaited<Next>>;
121
- /** Run named branch operations concurrently from the current value. */
122
- parallel<Branches extends Record<string, PipelineOp<Awaited<Output>, unknown>>>(branches: Branches, metadata?: PipelineStageMetadata): PipelineBuilder<Input, ParallelOutput<Branches>>;
123
- /** Send the current value to an agent as text and continue with the agent output. */
124
- prompt(agent: Agent<CompletionModel>, metadata?: PipelineStageMetadata): PipelineBuilder<Input, string>;
125
- /** Send the current value to an extractor as text and continue with typed schema data. */
126
- extract<T>(extractor: Extractor<T, CompletionModel>, metadata?: PipelineStageMetadata): PipelineBuilder<Input, T>;
127
- /** Finish the builder and return a runnable pipeline. */
128
- build(): Pipeline<Input, Awaited<Output>>;
129
- private runStep;
157
+ constructor(options: PipelineOptions<Input, Output>);
158
+ step<Next>(options: PipelineStepOptions<Awaited<Output>, Next>): Pipeline<Input, Awaited<Next>>;
159
+ compose<Next>(options: PipelineComposeOptions<Awaited<Output>, Next>): Pipeline<Input, Awaited<Next>>;
160
+ parallel<Branches extends Record<string, Pipeline<Awaited<Output>, unknown>>>(options: PipelineParallelOptions<Awaited<Output>, Branches>): Pipeline<Input, ParallelOutput<Branches>>;
161
+ agent<AgentOutput, Model extends CompletionModel>(options: PipelineAgentOptions<Awaited<Output>, AgentOutput, Model>): Pipeline<Input, AgentOutput>;
162
+ extract<Extracted, Model extends CompletionModel>(options: PipelineExtractOptions<Awaited<Output>, Extracted, Model>): Pipeline<Input, Extracted>;
163
+ run(options: PipelineRunOptions<Input>): Promise<PipelineRunResult<Output>>;
164
+ runBatch(options: PipelineBatchOptions<Input>): Promise<Array<PipelineBatchItem<Output>>>;
165
+ graph(): PipelineGraph;
166
+ private derive;
167
+ private execute;
130
168
  }
131
169
 
132
- export { Pipeline, type PipelineBatchOptions, PipelineBuilder, type PipelineGraph, type PipelineGraphEdge, type PipelineGraphNode, type PipelineMetadata, type PipelineOp, type PipelineRunEvent, type PipelineRunObserver, type PipelineRunOptions, type PipelineStageKind, type PipelineStageMetadata };
170
+ export { type ParallelOutput, Pipeline, type PipelineAgentOptions, PipelineAgentSuspensionError, type PipelineBatchItem, type PipelineBatchOptions, type PipelineComposeOptions, type PipelineExtractOptions, type PipelineGraph, type PipelineGraphEdge, type PipelineGraphNode, type PipelineMetadata, type PipelineNodePath, type PipelineOptions, type PipelineParallelOptions, type PipelineRunEvent, type PipelineRunObserver, type PipelineRunOptions, type PipelineRunResult, type PipelineStageContext, type PipelineStageKind, type PipelineStageMetadata, type PipelineStepOptions };