@effect-agent/testing 0.1.0-beta.85 → 0.1.0-beta.86
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/Certification.d.mts +12 -11
- package/dist/Certification.mjs +77 -40
- package/dist/Certification.mjs.map +1 -1
- package/dist/Chaos.d.mts +5 -5
- package/dist/Chaos.mjs +20 -20
- package/dist/Chaos.mjs.map +1 -1
- package/dist/CodeExecutorConformance.d.mts +2 -2
- package/dist/CodeExecutorConformance.mjs +2 -2
- package/dist/CodeExecutorConformance.mjs.map +1 -1
- package/dist/CodeExecutorSubstitute.d.mts +2 -2
- package/dist/CodeExecutorSubstitute.mjs +2 -2
- package/dist/CodeExecutorSubstitute.mjs.map +1 -1
- package/dist/DocsResearcher.d.mts +14 -14
- package/dist/DocsResearcher.mjs +15 -15
- package/dist/DocsResearcher.mjs.map +1 -1
- package/dist/TravelPlanner.d.mts +20 -21
- package/dist/TravelPlanner.mjs +18 -18
- package/dist/TravelPlanner.mjs.map +1 -1
- package/dist/{deterministic-layers-Eka0fMZq.mjs → deterministic-layers-D5owIoke.mjs} +8 -8
- package/dist/deterministic-layers-D5owIoke.mjs.map +1 -0
- package/package.json +1 -1
- package/src/Certification.ts +149 -97
- package/src/Chaos.ts +21 -31
- package/src/CodeExecutorConformance.ts +3 -3
- package/src/CodeExecutorSubstitute.ts +3 -3
- package/src/fixtures/docs-researcher/definition.ts +6 -6
- package/src/fixtures/docs-researcher/harness.ts +9 -13
- package/src/fixtures/docs-researcher/mcp.ts +3 -3
- package/src/fixtures/travel-planner/definition.ts +2 -2
- package/src/fixtures/travel-planner/deterministic-layers.ts +5 -5
- package/src/fixtures/travel-planner/phase2.ts +2 -2
- package/src/fixtures/travel-planner/phase3.ts +5 -5
- package/src/fixtures/travel-planner/phase4.ts +8 -8
- package/src/fixtures/travel-planner/phase5.ts +9 -13
- package/src/fixtures/travel-planner/phase6.ts +7 -7
- package/src/fixtures/travel-planner/subagents-durable.ts +11 -13
- package/src/fixtures/travel-planner/subagents.ts +6 -6
- package/src/internal/certification-report.ts +25 -0
- package/dist/deterministic-layers-Eka0fMZq.mjs.map +0 -1
package/dist/TravelPlanner.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ScriptedModel } from "./ScriptedModel.mjs";
|
|
2
|
-
import { A as LodgingQuery, B as TravelPlannerToolkitLayer, C as FlightOption, D as Itinerary, E as GuidanceFailure, F as SearchLodging, I as TravelGuidance, L as TravelPlan, M as QuoteId, N as SearchActivities, O as LodgingCatalog, P as SearchFlights, R as TravelPlanner, S as FlightCatalog, T as FlightUnavailable, V as TripRequest, _ as ActivityCatalog, a as DeterministicIdGeneratorLayer, b as ActivityUnavailable, c as ReverseCompletionToolkitLayer, d as SupplierOperation, f as SupplierUnavailable, g as supplierBookingRefFor, h as cancelBookingIdempotencyKey, i as CatalogLifecycleCounts, j as LodgingUnavailable, k as LodgingOption, l as SupplierBookingDesk, m as TravelPlannerRuntimeLayer, n as BookingRef, o as FlightCatalogLayer, p as TravelGuidanceLayer, r as CatalogLifecycle, s as LodgingCatalogLayer, t as ActivityCatalogLayer, u as SupplierBookingRecord, v as ActivityQuery, w as FlightQuery, x as AirportCode, y as ActivitySearchResult, z as TravelPlannerToolkit } from "./deterministic-layers-
|
|
2
|
+
import { A as LodgingQuery, B as TravelPlannerToolkitLayer, C as FlightOption, D as Itinerary, E as GuidanceFailure, F as SearchLodging, I as TravelGuidance, L as TravelPlan, M as QuoteId, N as SearchActivities, O as LodgingCatalog, P as SearchFlights, R as TravelPlanner, S as FlightCatalog, T as FlightUnavailable, V as TripRequest, _ as ActivityCatalog, a as DeterministicIdGeneratorLayer, b as ActivityUnavailable, c as ReverseCompletionToolkitLayer, d as SupplierOperation, f as SupplierUnavailable, g as supplierBookingRefFor, h as cancelBookingIdempotencyKey, i as CatalogLifecycleCounts, j as LodgingUnavailable, k as LodgingOption, l as SupplierBookingDesk, m as TravelPlannerRuntimeLayer, n as BookingRef, o as FlightCatalogLayer, p as TravelGuidanceLayer, r as CatalogLifecycle, s as LodgingCatalogLayer, t as ActivityCatalogLayer, u as SupplierBookingRecord, v as ActivityQuery, w as FlightQuery, x as AirportCode, y as ActivitySearchResult, z as TravelPlannerToolkit } from "./deterministic-layers-D5owIoke.mjs";
|
|
3
3
|
import { Context, Deferred, Duration, Effect, Layer, Option, Ref, Schema, Stream } from "effect";
|
|
4
4
|
import { LanguageModel, Model, Tool, Toolkit } from "effect/unstable/ai";
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { AgentId, RunId, SubmissionId, ThreadId } from "
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import "
|
|
14
|
-
import {
|
|
15
|
-
import { Principal } from "
|
|
16
|
-
import { ThreadCheckpoint } from "
|
|
17
|
-
import { ReconciliationCompleted, ReconciliationSafeToRetry, ReconciliationUncertain, ToolReconciler, ToolReconcilerError } from "
|
|
18
|
-
import "
|
|
19
|
-
import { ThreadProjection } from "
|
|
5
|
+
import * as Agent from "effect-agent/agent";
|
|
6
|
+
import { AgentPolicy } from "effect-agent/agent-policy";
|
|
7
|
+
import { DurableWorkerBinding } from "effect-agent/agent-registration";
|
|
8
|
+
import "effect-agent/durable-agent-runtime";
|
|
9
|
+
import { DurableStep, DurableStepError, ToolExecutionClass } from "effect-agent/durable-step";
|
|
10
|
+
import { AgentId, RunId, SubmissionId, ThreadId } from "effect-agent/identifiers";
|
|
11
|
+
import { BatchId, CanonicalBatch, CanonicalRecordEnvelope, DefinitionDigests, DeploymentId, Digest, PersistedJson, ProducerId, RecordEnvelope, RecordId } from "effect-agent/records";
|
|
12
|
+
import * as Subagent from "effect-agent/subagent";
|
|
13
|
+
import { SubagentPolicy, delegationAllocationFromPolicy } from "effect-agent/subagent";
|
|
14
|
+
import { SubagentReservationsMemoryLive } from "effect-agent/subagent-reservations";
|
|
15
|
+
import { Principal } from "effect-agent/submission-ledger";
|
|
16
|
+
import { ThreadCheckpoint } from "effect-agent/thread-store";
|
|
17
|
+
import { ReconciliationCompleted, ReconciliationSafeToRetry, ReconciliationUncertain, ToolReconciler, ToolReconcilerError } from "effect-agent/tool-reconciler";
|
|
18
|
+
import "effect-agent/agent-runtime";
|
|
19
|
+
import { ThreadProjection } from "effect-agent/thread-projection";
|
|
20
20
|
//#region src/fixtures/travel-planner/phase2.ts
|
|
21
21
|
var ItineraryHoldRequest = class extends Schema.Class("@effect-agent/testing/travel-planner/ItineraryHoldRequest")({
|
|
22
22
|
quoteId: QuoteId,
|
|
@@ -769,7 +769,7 @@ const destinationResearchDelegation = Subagent.define("delegate_destination_rese
|
|
|
769
769
|
/** Total mapping from every expected child Run failure to the declared Tool failure (SUB-028). */
|
|
770
770
|
const mapResearchChildFailure = (failure) => DestinationResearchFailed.make({ childErrorTag: failure._tag });
|
|
771
771
|
/** Runtime wiring: pair the immutable delegation with one explicit child Binding. */
|
|
772
|
-
const destinationResearchHandlersLayer = (childBinding) =>
|
|
772
|
+
const destinationResearchHandlersLayer = (childBinding) => Subagent.layer(destinationResearchDelegation, childBinding, { mapChildFailure: mapResearchChildFailure });
|
|
773
773
|
var ResearchMission = class extends Schema.Class("ResearchMission")({
|
|
774
774
|
request: Schema.NonEmptyString,
|
|
775
775
|
candidates: Schema.Array(AirportCode).check(Schema.isMinLength(1))
|
|
@@ -1151,7 +1151,7 @@ const researcherReportParts$1 = (destination) => [
|
|
|
1151
1151
|
}
|
|
1152
1152
|
];
|
|
1153
1153
|
/** Runtime wiring for the durable slice: the S1 delegation plus the S2 digest declaration. */
|
|
1154
|
-
const durableDestinationResearchHandlersLayer = (childBinding) =>
|
|
1154
|
+
const durableDestinationResearchHandlersLayer = (childBinding) => Subagent.layer(destinationResearchDelegation, childBinding, {
|
|
1155
1155
|
mapChildFailure: mapResearchChildFailure,
|
|
1156
1156
|
durable: { targetDigests: s2ResearcherDigestStrings }
|
|
1157
1157
|
});
|