effect-agent 0.1.0-beta.86 → 0.1.0-beta.87
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/{DurableAgentRuntime-sOrBVu4B.mjs → DurableAgentRuntime-uggeJpv3.mjs} +3 -1
- package/dist/{DurableAgentRuntime-sOrBVu4B.mjs.map → DurableAgentRuntime-uggeJpv3.mjs.map} +1 -1
- package/dist/durable/DurableAgentRuntime.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/durable/DurableAgentRuntime.ts +12 -0
|
@@ -4201,6 +4201,8 @@ const make = Effect.fn("DurableAgentRuntime.make")(function* (bindings) {
|
|
|
4201
4201
|
return yield* renderInputPrompt(inputPrompt, decodedInput, encodedInput);
|
|
4202
4202
|
});
|
|
4203
4203
|
const input = { drain: (policy) => Effect.gen(function* () {
|
|
4204
|
+
const state = yield* Ref.get(stateRef);
|
|
4205
|
+
if (state.pendingTurn !== void 0 && knownIds.has(modelResponseRecordId(runId, state.pendingTurn.turn))) yield* recordHalt(commitPendingTurn);
|
|
4204
4206
|
const joinedInputs = yield* recordHalt(Effect.gen(function* () {
|
|
4205
4207
|
const limit = policy === "one" ? 1 : MAX_JOIN_DRAIN;
|
|
4206
4208
|
const joinedInputs = [];
|
|
@@ -6363,4 +6365,4 @@ var DurableAgentRuntime = class DurableAgentRuntime extends Context.Service()("@
|
|
|
6363
6365
|
//#endregion
|
|
6364
6366
|
export { RecoveryReport as a, recoveryRepairRecordId as c, DurableRuntimeConfig as i, threadCreatedBatchId as l, DurableAgentRuntime_exports as n, childReservationIdFor as o, DurableApprovalResolver as r, recoveryRepairBatchId as s, DurableAgentRuntime as t, threadCreatedRecordId as u };
|
|
6365
6367
|
|
|
6366
|
-
//# sourceMappingURL=DurableAgentRuntime-
|
|
6368
|
+
//# sourceMappingURL=DurableAgentRuntime-uggeJpv3.mjs.map
|