@effect-agent/testing 0.1.0-beta.17 → 0.1.0-beta.18
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/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/certification.ts +10 -4
package/dist/index.mjs
CHANGED
|
@@ -111,10 +111,11 @@ const promptShapeModel = (name, finalText, toolParts) => Model.make("scripted",
|
|
|
111
111
|
return Stream.fromIterable(parts);
|
|
112
112
|
}
|
|
113
113
|
})));
|
|
114
|
+
const CERTIFICATION_MAX_DURATION = "10 minutes";
|
|
114
115
|
const policy$1 = AgentPolicy.make({
|
|
115
116
|
maxTurns: 4,
|
|
116
117
|
maxToolCalls: 4,
|
|
117
|
-
maxDuration:
|
|
118
|
+
maxDuration: CERTIFICATION_MAX_DURATION,
|
|
118
119
|
toolConcurrency: 2
|
|
119
120
|
});
|
|
120
121
|
const QuestionInput = Schema.Struct({ question: Schema.String });
|
|
@@ -178,7 +179,7 @@ const childDefinition$1 = Agent.define("certify-child", {
|
|
|
178
179
|
policy: AgentPolicy.make({
|
|
179
180
|
maxTurns: 2,
|
|
180
181
|
maxToolCalls: 1,
|
|
181
|
-
maxDuration:
|
|
182
|
+
maxDuration: CERTIFICATION_MAX_DURATION,
|
|
182
183
|
toolConcurrency: 1
|
|
183
184
|
})
|
|
184
185
|
});
|
|
@@ -196,7 +197,7 @@ const researchDelegation = Subagent.define("delegate_research", {
|
|
|
196
197
|
maxConcurrency: 2,
|
|
197
198
|
maxTurns: 4,
|
|
198
199
|
maxToolCalls: 4,
|
|
199
|
-
maxDuration:
|
|
200
|
+
maxDuration: CERTIFICATION_MAX_DURATION
|
|
200
201
|
})
|
|
201
202
|
});
|
|
202
203
|
const Lookup = Tool.make("lookup", {
|
|
@@ -211,7 +212,7 @@ const coordinatorDefinition$1 = Agent.define("certify-coordinator", {
|
|
|
211
212
|
policy: AgentPolicy.make({
|
|
212
213
|
maxTurns: 4,
|
|
213
214
|
maxToolCalls: 3,
|
|
214
|
-
maxDuration:
|
|
215
|
+
maxDuration: CERTIFICATION_MAX_DURATION,
|
|
215
216
|
toolConcurrency: 2
|
|
216
217
|
})
|
|
217
218
|
});
|