@dudousxd/nestjs-agent 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-deps.factory-DGM0IVtA.d.cts → agent-deps.factory-BlC9tumI.d.cts} +17 -10
- package/dist/{agent-deps.factory-DGM0IVtA.d.ts → agent-deps.factory-BlC9tumI.d.ts} +17 -10
- package/dist/durable/index.cjs +320 -232
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.d.cts +19 -17
- package/dist/durable/index.d.ts +19 -17
- package/dist/durable/index.js +240 -152
- package/dist/durable/index.js.map +1 -1
- package/dist/index.cjs +313 -226
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -9
- package/dist/index.d.ts +48 -9
- package/dist/index.js +230 -144
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -114,12 +114,17 @@ interface AgentModuleOptions {
|
|
|
114
114
|
durable?: boolean;
|
|
115
115
|
/**
|
|
116
116
|
* Dispatch the turn's model call and tool executions as routed durable steps
|
|
117
|
-
* (`AgentRunSteps.llm` / `AgentRunSteps.tool`) instead of in-process `ctx.localStep`s.
|
|
118
|
-
* `durable: true`
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
117
|
+
* (`AgentRunSteps.llm` / `AgentRunSteps.tool`) instead of in-process `ctx.localStep`s.
|
|
118
|
+
* DEFAULT `true` under `durable: true` — dispatching moves the run off its pod during the two
|
|
119
|
+
* long steps (the correct production posture), and `AgentRunSteps` is always registered so the
|
|
120
|
+
* routed groups are never unserved. Set `false` to keep the turn's steps in-process localSteps.
|
|
121
|
+
* `true` without `durable: true` throws at module build.
|
|
122
|
+
*
|
|
123
|
+
* The cross-process-sink requirement is a property of `durable: true` itself, not of this flag:
|
|
124
|
+
* the turn already runs on whichever worker takes `agent.run`, which may not be the pod holding
|
|
125
|
+
* the SSE connection — multi-pod fleets MUST wire a cross-process token sink (e.g. a Redis
|
|
126
|
+
* pub/sub `TokenStreamSink`) either way. STATIC top-level flag (like `durable`/
|
|
127
|
+
* `attachments.upload`): it decides how the workflow dispatches at module build time.
|
|
123
128
|
*/
|
|
124
129
|
dispatchedSteps?: boolean;
|
|
125
130
|
/**
|
|
@@ -184,10 +189,12 @@ interface AgentModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
|
184
189
|
*/
|
|
185
190
|
durable?: boolean;
|
|
186
191
|
/**
|
|
187
|
-
* Dispatch the turn's model call and tool executions as routed durable steps.
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
192
|
+
* Dispatch the turn's model call and tool executions as routed durable steps. DEFAULT `true`
|
|
193
|
+
* under `durable: true`; set `false` to keep the turn's steps in-process localSteps. Same
|
|
194
|
+
* static-wiring reasoning as `durable` above — it lives here (not in the async factory result)
|
|
195
|
+
* because it decides how `AgentRunWorkflow` builds its hooks at module build time. `true` without
|
|
196
|
+
* `durable: true` throws at module build. See `AgentModuleOptions.dispatchedSteps` for the full
|
|
197
|
+
* contract.
|
|
191
198
|
*/
|
|
192
199
|
dispatchedSteps?: boolean;
|
|
193
200
|
/**
|
|
@@ -114,12 +114,17 @@ interface AgentModuleOptions {
|
|
|
114
114
|
durable?: boolean;
|
|
115
115
|
/**
|
|
116
116
|
* Dispatch the turn's model call and tool executions as routed durable steps
|
|
117
|
-
* (`AgentRunSteps.llm` / `AgentRunSteps.tool`) instead of in-process `ctx.localStep`s.
|
|
118
|
-
* `durable: true`
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
117
|
+
* (`AgentRunSteps.llm` / `AgentRunSteps.tool`) instead of in-process `ctx.localStep`s.
|
|
118
|
+
* DEFAULT `true` under `durable: true` — dispatching moves the run off its pod during the two
|
|
119
|
+
* long steps (the correct production posture), and `AgentRunSteps` is always registered so the
|
|
120
|
+
* routed groups are never unserved. Set `false` to keep the turn's steps in-process localSteps.
|
|
121
|
+
* `true` without `durable: true` throws at module build.
|
|
122
|
+
*
|
|
123
|
+
* The cross-process-sink requirement is a property of `durable: true` itself, not of this flag:
|
|
124
|
+
* the turn already runs on whichever worker takes `agent.run`, which may not be the pod holding
|
|
125
|
+
* the SSE connection — multi-pod fleets MUST wire a cross-process token sink (e.g. a Redis
|
|
126
|
+
* pub/sub `TokenStreamSink`) either way. STATIC top-level flag (like `durable`/
|
|
127
|
+
* `attachments.upload`): it decides how the workflow dispatches at module build time.
|
|
123
128
|
*/
|
|
124
129
|
dispatchedSteps?: boolean;
|
|
125
130
|
/**
|
|
@@ -184,10 +189,12 @@ interface AgentModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
|
184
189
|
*/
|
|
185
190
|
durable?: boolean;
|
|
186
191
|
/**
|
|
187
|
-
* Dispatch the turn's model call and tool executions as routed durable steps.
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
192
|
+
* Dispatch the turn's model call and tool executions as routed durable steps. DEFAULT `true`
|
|
193
|
+
* under `durable: true`; set `false` to keep the turn's steps in-process localSteps. Same
|
|
194
|
+
* static-wiring reasoning as `durable` above — it lives here (not in the async factory result)
|
|
195
|
+
* because it decides how `AgentRunWorkflow` builds its hooks at module build time. `true` without
|
|
196
|
+
* `durable: true` throws at module build. See `AgentModuleOptions.dispatchedSteps` for the full
|
|
197
|
+
* contract.
|
|
191
198
|
*/
|
|
192
199
|
dispatchedSteps?: boolean;
|
|
193
200
|
/**
|