@tangle-network/agent-interface 5.10.23 → 5.10.25
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/README.md +30 -0
- package/dist/agent-candidate-code-schema.d.ts +7 -7
- package/dist/agent-candidate-execution-plan-schema.d.ts +21 -21
- package/dist/agent-candidate-profile-schema.d.ts +4 -4
- package/dist/agent-candidate-promotion-schema.d.ts +155 -80
- package/dist/agent-candidate-receipt-schema.d.ts +10 -10
- package/dist/agent-candidate-schema-common.d.ts +3 -3
- package/dist/agent-candidate-schema.d.ts +5 -5
- package/dist/agent-execution-preparation-receipt.d.ts +4 -2
- package/dist/agent-profile-improvement-schema.d.ts +469 -0
- package/dist/agent-profile-improvement-schema.js +116 -16
- package/dist/agent-profile-improvement.d.ts +34 -6
- package/dist/agent-profile-materialization.d.ts +1 -1
- package/dist/agent-profile-materialization.js +3 -0
- package/dist/agent-profile.d.ts +3 -0
- package/dist/agent-profile.js +0 -13
- package/dist/environment-interactive-control.d.ts +20 -10
- package/dist/environment-interactive-start.d.ts +6 -2
- package/dist/environment-observation.d.ts +3 -3
- package/dist/environment-provider.d.ts +1 -0
- package/dist/environment-provider.js +1 -0
- package/dist/environment-retained-file.d.ts +124 -0
- package/dist/environment-retained-file.js +37 -0
- package/dist/environment-runtime.d.ts +23 -6
- package/dist/environment-runtime.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/portable-context-transfer.d.ts +6 -2
- package/dist/profile-diff.d.ts +2 -1
- package/dist/profile-diff.js +3 -0
- package/dist/profile-file-output.d.ts +10 -0
- package/dist/profile-file-output.js +8 -0
- package/dist/profile-schema.d.ts +15 -10
- package/dist/profile-schema.js +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { AgentProfileImprovementAccounting, AgentProfileImprovementUnavailableAccounting, AgentProfileImprovementExperiment, AgentProfileImprovementTask } from "./agent-profile-improvement.js";
|
|
2
3
|
import type { AgentImprovementSurface } from "./agent-candidate.js";
|
|
4
|
+
import type { AgentProfile } from "./agent-profile.js";
|
|
3
5
|
import type { AgentProfileDiff } from "./profile-diff.js";
|
|
4
6
|
export declare const agentProfileImprovementTaskSchema: z.ZodObject<{
|
|
5
7
|
kind: z.ZodLiteral<"agent-profile-improvement-task">;
|
|
@@ -202,6 +204,91 @@ export declare const agentProfileImprovementExecutionRefSchema: z.ZodObject<{
|
|
|
202
204
|
/** One strict canonical profile patch in an ordered measured change. */
|
|
203
205
|
export declare const agentProfileImprovementChangeStepSchema: z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>;
|
|
204
206
|
export declare const agentProfileImprovementChangeSchema: z.ZodTuple<[z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>], z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>>;
|
|
207
|
+
export declare const agentProfileImprovementModelBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
208
|
+
kind: z.ZodLiteral<"fixed-task">;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
kind: z.ZodLiteral<"profile-default">;
|
|
211
|
+
baseline: z.ZodObject<{
|
|
212
|
+
authored: z.ZodObject<{
|
|
213
|
+
default: z.ZodOptional<z.ZodString>;
|
|
214
|
+
small: z.ZodOptional<z.ZodString>;
|
|
215
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
216
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
none: "none";
|
|
218
|
+
minimal: "minimal";
|
|
219
|
+
low: "low";
|
|
220
|
+
medium: "medium";
|
|
221
|
+
high: "high";
|
|
222
|
+
xhigh: "xhigh";
|
|
223
|
+
ultracode: "ultracode";
|
|
224
|
+
}>>;
|
|
225
|
+
maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
227
|
+
maxTotalOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
resolved: z.ZodObject<{
|
|
231
|
+
requested: z.ZodString;
|
|
232
|
+
provider: z.ZodString;
|
|
233
|
+
model: z.ZodString;
|
|
234
|
+
snapshot: z.ZodString;
|
|
235
|
+
reasoningEffort: z.ZodEnum<{
|
|
236
|
+
none: "none";
|
|
237
|
+
minimal: "minimal";
|
|
238
|
+
low: "low";
|
|
239
|
+
medium: "medium";
|
|
240
|
+
high: "high";
|
|
241
|
+
xhigh: "xhigh";
|
|
242
|
+
ultracode: "ultracode";
|
|
243
|
+
}>;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
}, z.core.$strict>;
|
|
246
|
+
candidate: z.ZodObject<{
|
|
247
|
+
authored: z.ZodObject<{
|
|
248
|
+
default: z.ZodOptional<z.ZodString>;
|
|
249
|
+
small: z.ZodOptional<z.ZodString>;
|
|
250
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
251
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
none: "none";
|
|
253
|
+
minimal: "minimal";
|
|
254
|
+
low: "low";
|
|
255
|
+
medium: "medium";
|
|
256
|
+
high: "high";
|
|
257
|
+
xhigh: "xhigh";
|
|
258
|
+
ultracode: "ultracode";
|
|
259
|
+
}>>;
|
|
260
|
+
maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
maxTotalOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
resolved: z.ZodObject<{
|
|
266
|
+
requested: z.ZodString;
|
|
267
|
+
provider: z.ZodString;
|
|
268
|
+
model: z.ZodString;
|
|
269
|
+
snapshot: z.ZodString;
|
|
270
|
+
reasoningEffort: z.ZodEnum<{
|
|
271
|
+
none: "none";
|
|
272
|
+
minimal: "minimal";
|
|
273
|
+
low: "low";
|
|
274
|
+
medium: "medium";
|
|
275
|
+
high: "high";
|
|
276
|
+
xhigh: "xhigh";
|
|
277
|
+
ultracode: "ultracode";
|
|
278
|
+
}>;
|
|
279
|
+
}, z.core.$strict>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
}, z.core.$strict>], "kind">;
|
|
282
|
+
/** One model-policy interpretation for schema, measurement and the source-owning executor.
|
|
283
|
+
* Pass the actual profile when sealing/executing to prove its authored default matches the binding.
|
|
284
|
+
* The host must independently observe the exact returned model and snapshot for each run. */
|
|
285
|
+
export declare function agentProfileImprovementExpectedModel(experiment: Pick<AgentProfileImprovementExperiment, "modelBinding" | "change">, task: Pick<AgentProfileImprovementTask, "model">, arm: "baseline" | "candidate", profile?: AgentProfile): {
|
|
286
|
+
requested: string;
|
|
287
|
+
provider: string;
|
|
288
|
+
model: string;
|
|
289
|
+
snapshot: string;
|
|
290
|
+
reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
|
|
291
|
+
};
|
|
205
292
|
export declare const agentProfileImprovementExperimentSchema: z.ZodObject<{
|
|
206
293
|
kind: z.ZodLiteral<"agent-profile-improvement-experiment">;
|
|
207
294
|
digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
|
|
@@ -245,6 +332,81 @@ export declare const agentProfileImprovementExperimentSchema: z.ZodObject<{
|
|
|
245
332
|
stateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
246
333
|
}, z.core.$strict>;
|
|
247
334
|
change: z.ZodTuple<[z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>], z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>>;
|
|
335
|
+
modelBinding: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
336
|
+
kind: z.ZodLiteral<"fixed-task">;
|
|
337
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
338
|
+
kind: z.ZodLiteral<"profile-default">;
|
|
339
|
+
baseline: z.ZodObject<{
|
|
340
|
+
authored: z.ZodObject<{
|
|
341
|
+
default: z.ZodOptional<z.ZodString>;
|
|
342
|
+
small: z.ZodOptional<z.ZodString>;
|
|
343
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
344
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
345
|
+
none: "none";
|
|
346
|
+
minimal: "minimal";
|
|
347
|
+
low: "low";
|
|
348
|
+
medium: "medium";
|
|
349
|
+
high: "high";
|
|
350
|
+
xhigh: "xhigh";
|
|
351
|
+
ultracode: "ultracode";
|
|
352
|
+
}>>;
|
|
353
|
+
maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
355
|
+
maxTotalOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
357
|
+
}, z.core.$strict>;
|
|
358
|
+
resolved: z.ZodObject<{
|
|
359
|
+
requested: z.ZodString;
|
|
360
|
+
provider: z.ZodString;
|
|
361
|
+
model: z.ZodString;
|
|
362
|
+
snapshot: z.ZodString;
|
|
363
|
+
reasoningEffort: z.ZodEnum<{
|
|
364
|
+
none: "none";
|
|
365
|
+
minimal: "minimal";
|
|
366
|
+
low: "low";
|
|
367
|
+
medium: "medium";
|
|
368
|
+
high: "high";
|
|
369
|
+
xhigh: "xhigh";
|
|
370
|
+
ultracode: "ultracode";
|
|
371
|
+
}>;
|
|
372
|
+
}, z.core.$strict>;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
candidate: z.ZodObject<{
|
|
375
|
+
authored: z.ZodObject<{
|
|
376
|
+
default: z.ZodOptional<z.ZodString>;
|
|
377
|
+
small: z.ZodOptional<z.ZodString>;
|
|
378
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
379
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
380
|
+
none: "none";
|
|
381
|
+
minimal: "minimal";
|
|
382
|
+
low: "low";
|
|
383
|
+
medium: "medium";
|
|
384
|
+
high: "high";
|
|
385
|
+
xhigh: "xhigh";
|
|
386
|
+
ultracode: "ultracode";
|
|
387
|
+
}>>;
|
|
388
|
+
maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
389
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
maxTotalOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
391
|
+
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
392
|
+
}, z.core.$strict>;
|
|
393
|
+
resolved: z.ZodObject<{
|
|
394
|
+
requested: z.ZodString;
|
|
395
|
+
provider: z.ZodString;
|
|
396
|
+
model: z.ZodString;
|
|
397
|
+
snapshot: z.ZodString;
|
|
398
|
+
reasoningEffort: z.ZodEnum<{
|
|
399
|
+
none: "none";
|
|
400
|
+
minimal: "minimal";
|
|
401
|
+
low: "low";
|
|
402
|
+
medium: "medium";
|
|
403
|
+
high: "high";
|
|
404
|
+
xhigh: "xhigh";
|
|
405
|
+
ultracode: "ultracode";
|
|
406
|
+
}>;
|
|
407
|
+
}, z.core.$strict>;
|
|
408
|
+
}, z.core.$strict>;
|
|
409
|
+
}, z.core.$strict>], "kind">>;
|
|
248
410
|
candidateLineage: z.ZodObject<{
|
|
249
411
|
source: z.ZodEnum<{
|
|
250
412
|
"frontier-author": "frontier-author";
|
|
@@ -411,6 +573,50 @@ export declare const agentProfileImprovementRunCellSchema: z.ZodObject<{
|
|
|
411
573
|
attempt: z.ZodNumber;
|
|
412
574
|
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
413
575
|
}, z.core.$strict>;
|
|
576
|
+
export declare const agentProfileImprovementUnavailableAccountingSchema: z.ZodObject<{
|
|
577
|
+
availability: z.ZodLiteral<"unavailable">;
|
|
578
|
+
reason: z.ZodString;
|
|
579
|
+
facts: z.ZodObject<{
|
|
580
|
+
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
581
|
+
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
582
|
+
cachedInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
583
|
+
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
584
|
+
modelCalls: z.ZodNullable<z.ZodNumber>;
|
|
585
|
+
costUsdNanos: z.ZodNullable<z.ZodNumber>;
|
|
586
|
+
costProvenance: z.ZodNullable<z.ZodEnum<{
|
|
587
|
+
observed: "observed";
|
|
588
|
+
estimated: "estimated";
|
|
589
|
+
}>>;
|
|
590
|
+
}, z.core.$strict>;
|
|
591
|
+
}, z.core.$strict>;
|
|
592
|
+
export declare const agentProfileImprovementAccountingSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
593
|
+
inputTokens: z.ZodNumber;
|
|
594
|
+
outputTokens: z.ZodNumber;
|
|
595
|
+
cachedInputTokens: z.ZodNumber;
|
|
596
|
+
reasoningTokens: z.ZodNumber;
|
|
597
|
+
modelCalls: z.ZodNumber;
|
|
598
|
+
costUsdNanos: z.ZodNumber;
|
|
599
|
+
costProvenance: z.ZodEnum<{
|
|
600
|
+
observed: "observed";
|
|
601
|
+
estimated: "estimated";
|
|
602
|
+
}>;
|
|
603
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
604
|
+
availability: z.ZodLiteral<"unavailable">;
|
|
605
|
+
reason: z.ZodString;
|
|
606
|
+
facts: z.ZodObject<{
|
|
607
|
+
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
608
|
+
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
609
|
+
cachedInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
610
|
+
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
611
|
+
modelCalls: z.ZodNullable<z.ZodNumber>;
|
|
612
|
+
costUsdNanos: z.ZodNullable<z.ZodNumber>;
|
|
613
|
+
costProvenance: z.ZodNullable<z.ZodEnum<{
|
|
614
|
+
observed: "observed";
|
|
615
|
+
estimated: "estimated";
|
|
616
|
+
}>>;
|
|
617
|
+
}, z.core.$strict>;
|
|
618
|
+
}, z.core.$strict>]>;
|
|
619
|
+
export declare function isAgentProfileImprovementAccountingUnavailable(accounting: AgentProfileImprovementAccounting): accounting is AgentProfileImprovementUnavailableAccounting;
|
|
414
620
|
export declare const agentProfileImprovementRunReceiptSchema: z.ZodObject<{
|
|
415
621
|
kind: z.ZodLiteral<"agent-profile-improvement-run">;
|
|
416
622
|
digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
|
|
@@ -568,6 +774,194 @@ export declare const agentProfileImprovementRunReceiptSchema: z.ZodObject<{
|
|
|
568
774
|
}, z.core.$strict>;
|
|
569
775
|
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
570
776
|
}, z.core.$strict>;
|
|
777
|
+
/** Opt-in recording preserves gaps; the publishable comparison still accepts only complete receipts. */
|
|
778
|
+
export declare const agentProfileImprovementRecordedRunReceiptSchema: z.ZodObject<{
|
|
779
|
+
usage: z.ZodUnion<readonly [z.ZodObject<{
|
|
780
|
+
inputTokens: z.ZodNumber;
|
|
781
|
+
outputTokens: z.ZodNumber;
|
|
782
|
+
cachedInputTokens: z.ZodNumber;
|
|
783
|
+
reasoningTokens: z.ZodNumber;
|
|
784
|
+
modelCalls: z.ZodNumber;
|
|
785
|
+
costUsdNanos: z.ZodNumber;
|
|
786
|
+
costProvenance: z.ZodEnum<{
|
|
787
|
+
observed: "observed";
|
|
788
|
+
estimated: "estimated";
|
|
789
|
+
}>;
|
|
790
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
791
|
+
availability: z.ZodLiteral<"unavailable">;
|
|
792
|
+
reason: z.ZodString;
|
|
793
|
+
facts: z.ZodObject<{
|
|
794
|
+
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
795
|
+
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
796
|
+
cachedInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
797
|
+
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
798
|
+
modelCalls: z.ZodNullable<z.ZodNumber>;
|
|
799
|
+
costUsdNanos: z.ZodNullable<z.ZodNumber>;
|
|
800
|
+
costProvenance: z.ZodNullable<z.ZodEnum<{
|
|
801
|
+
observed: "observed";
|
|
802
|
+
estimated: "estimated";
|
|
803
|
+
}>>;
|
|
804
|
+
}, z.core.$strict>;
|
|
805
|
+
}, z.core.$strict>]>;
|
|
806
|
+
grading: z.ZodObject<{
|
|
807
|
+
usage: z.ZodUnion<readonly [z.ZodObject<{
|
|
808
|
+
inputTokens: z.ZodNumber;
|
|
809
|
+
outputTokens: z.ZodNumber;
|
|
810
|
+
cachedInputTokens: z.ZodNumber;
|
|
811
|
+
reasoningTokens: z.ZodNumber;
|
|
812
|
+
modelCalls: z.ZodNumber;
|
|
813
|
+
costUsdNanos: z.ZodNumber;
|
|
814
|
+
costProvenance: z.ZodEnum<{
|
|
815
|
+
observed: "observed";
|
|
816
|
+
estimated: "estimated";
|
|
817
|
+
}>;
|
|
818
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
819
|
+
availability: z.ZodLiteral<"unavailable">;
|
|
820
|
+
reason: z.ZodString;
|
|
821
|
+
facts: z.ZodObject<{
|
|
822
|
+
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
823
|
+
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
824
|
+
cachedInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
825
|
+
reasoningTokens: z.ZodNullable<z.ZodNumber>;
|
|
826
|
+
modelCalls: z.ZodNullable<z.ZodNumber>;
|
|
827
|
+
costUsdNanos: z.ZodNullable<z.ZodNumber>;
|
|
828
|
+
costProvenance: z.ZodNullable<z.ZodEnum<{
|
|
829
|
+
observed: "observed";
|
|
830
|
+
estimated: "estimated";
|
|
831
|
+
}>>;
|
|
832
|
+
}, z.core.$strict>;
|
|
833
|
+
}, z.core.$strict>]>;
|
|
834
|
+
grader: z.ZodObject<{
|
|
835
|
+
name: z.ZodString;
|
|
836
|
+
version: z.ZodString;
|
|
837
|
+
format: z.ZodLiteral<"tangle-grader">;
|
|
838
|
+
artifact: z.ZodObject<{
|
|
839
|
+
locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
840
|
+
kind: z.ZodLiteral<"s3">;
|
|
841
|
+
bucket: z.ZodString;
|
|
842
|
+
key: z.ZodString;
|
|
843
|
+
region: z.ZodOptional<z.ZodString>;
|
|
844
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
845
|
+
kind: z.ZodLiteral<"ipfs">;
|
|
846
|
+
cid: z.ZodString;
|
|
847
|
+
path: z.ZodOptional<z.ZodString>;
|
|
848
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
849
|
+
kind: z.ZodLiteral<"private-cas">;
|
|
850
|
+
namespace: z.ZodString;
|
|
851
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
852
|
+
}, z.core.$strict>], "kind">;
|
|
853
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
854
|
+
byteLength: z.ZodNumber;
|
|
855
|
+
}, z.core.$strict>;
|
|
856
|
+
}, z.core.$strict>;
|
|
857
|
+
evidence: z.ZodObject<{
|
|
858
|
+
kind: z.ZodString;
|
|
859
|
+
identity: z.ZodString;
|
|
860
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
861
|
+
}, z.core.$strict>;
|
|
862
|
+
timing: z.ZodObject<{
|
|
863
|
+
startedAtMs: z.ZodNumber;
|
|
864
|
+
endedAtMs: z.ZodNumber;
|
|
865
|
+
durationMs: z.ZodNumber;
|
|
866
|
+
}, z.core.$strict>;
|
|
867
|
+
score: z.ZodNumber;
|
|
868
|
+
passed: z.ZodBoolean;
|
|
869
|
+
dimensions: z.ZodArray<z.ZodObject<{
|
|
870
|
+
name: z.ZodString;
|
|
871
|
+
score: z.ZodNumber;
|
|
872
|
+
}, z.core.$strict>>;
|
|
873
|
+
}, z.core.$strict>;
|
|
874
|
+
kind: z.ZodLiteral<"agent-profile-improvement-run">;
|
|
875
|
+
digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
|
|
876
|
+
executionId: z.ZodString;
|
|
877
|
+
executionRef: z.ZodObject<{
|
|
878
|
+
identity: z.ZodString;
|
|
879
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
880
|
+
kind: z.ZodLiteral<"agent-profile-improvement-execution-ref">;
|
|
881
|
+
}, z.core.$strict>;
|
|
882
|
+
runCell: z.ZodObject<{
|
|
883
|
+
kind: z.ZodLiteral<"agent-profile-improvement-run-cell">;
|
|
884
|
+
experimentDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
885
|
+
arm: z.ZodEnum<{
|
|
886
|
+
baseline: "baseline";
|
|
887
|
+
candidate: "candidate";
|
|
888
|
+
}>;
|
|
889
|
+
stateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
890
|
+
suiteDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
891
|
+
taskDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
892
|
+
taskIndex: z.ZodNumber;
|
|
893
|
+
repetition: z.ZodNumber;
|
|
894
|
+
seed: z.ZodNumber;
|
|
895
|
+
attempt: z.ZodNumber;
|
|
896
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
897
|
+
}, z.core.$strict>;
|
|
898
|
+
runRecord: z.ZodObject<{
|
|
899
|
+
kind: z.ZodString;
|
|
900
|
+
identity: z.ZodString;
|
|
901
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
902
|
+
}, z.core.$strict>;
|
|
903
|
+
billing: z.ZodTuple<[z.ZodObject<{
|
|
904
|
+
kind: z.ZodString;
|
|
905
|
+
identity: z.ZodString;
|
|
906
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
907
|
+
}, z.core.$strict>], z.ZodObject<{
|
|
908
|
+
kind: z.ZodString;
|
|
909
|
+
identity: z.ZodString;
|
|
910
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
911
|
+
}, z.core.$strict>>;
|
|
912
|
+
timing: z.ZodObject<{
|
|
913
|
+
startedAtMs: z.ZodNumber;
|
|
914
|
+
endedAtMs: z.ZodNumber;
|
|
915
|
+
durationMs: z.ZodNumber;
|
|
916
|
+
}, z.core.$strict>;
|
|
917
|
+
steps: z.ZodNumber;
|
|
918
|
+
resolvedModel: z.ZodObject<{
|
|
919
|
+
requested: z.ZodString;
|
|
920
|
+
provider: z.ZodString;
|
|
921
|
+
model: z.ZodString;
|
|
922
|
+
snapshot: z.ZodString;
|
|
923
|
+
reasoningEffort: z.ZodEnum<{
|
|
924
|
+
none: "none";
|
|
925
|
+
minimal: "minimal";
|
|
926
|
+
low: "low";
|
|
927
|
+
medium: "medium";
|
|
928
|
+
high: "high";
|
|
929
|
+
xhigh: "xhigh";
|
|
930
|
+
ultracode: "ultracode";
|
|
931
|
+
}>;
|
|
932
|
+
}, z.core.$strict>;
|
|
933
|
+
limits: z.ZodObject<{
|
|
934
|
+
timeoutMs: z.ZodNumber;
|
|
935
|
+
maxSteps: z.ZodNumber;
|
|
936
|
+
maxModelCalls: z.ZodNumber;
|
|
937
|
+
maxInputTokens: z.ZodNumber;
|
|
938
|
+
maxOutputTokens: z.ZodNumber;
|
|
939
|
+
maxTotalTokens: z.ZodOptional<z.ZodNumber>;
|
|
940
|
+
maxCostUsd: z.ZodNumber;
|
|
941
|
+
}, z.core.$strict>;
|
|
942
|
+
trace: z.ZodObject<{
|
|
943
|
+
evidence: z.ZodObject<{
|
|
944
|
+
kind: z.ZodString;
|
|
945
|
+
identity: z.ZodString;
|
|
946
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
947
|
+
}, z.core.$strict>;
|
|
948
|
+
eventCount: z.ZodNumber;
|
|
949
|
+
modelCallCount: z.ZodNumber;
|
|
950
|
+
}, z.core.$strict>;
|
|
951
|
+
output: z.ZodObject<{
|
|
952
|
+
kind: z.ZodString;
|
|
953
|
+
identity: z.ZodString;
|
|
954
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
955
|
+
}, z.core.$strict>;
|
|
956
|
+
outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
957
|
+
status: z.ZodLiteral<"succeeded">;
|
|
958
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
959
|
+
status: z.ZodLiteral<"failed">;
|
|
960
|
+
code: z.ZodString;
|
|
961
|
+
message: z.ZodString;
|
|
962
|
+
}, z.core.$strict>], "status">;
|
|
963
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
964
|
+
}, z.core.$strict>;
|
|
571
965
|
export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObject<{
|
|
572
966
|
overall: z.ZodObject<{
|
|
573
967
|
direction: z.ZodLiteral<"higher-is-better">;
|
|
@@ -790,6 +1184,81 @@ export declare const agentProfileImprovementMeasuredComparisonSchema: z.ZodObjec
|
|
|
790
1184
|
stateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
791
1185
|
}, z.core.$strict>;
|
|
792
1186
|
change: z.ZodTuple<[z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>], z.ZodType<AgentProfileDiff, unknown, z.core.$ZodTypeInternals<AgentProfileDiff, unknown>>>;
|
|
1187
|
+
modelBinding: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1188
|
+
kind: z.ZodLiteral<"fixed-task">;
|
|
1189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1190
|
+
kind: z.ZodLiteral<"profile-default">;
|
|
1191
|
+
baseline: z.ZodObject<{
|
|
1192
|
+
authored: z.ZodObject<{
|
|
1193
|
+
default: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
small: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
1197
|
+
none: "none";
|
|
1198
|
+
minimal: "minimal";
|
|
1199
|
+
low: "low";
|
|
1200
|
+
medium: "medium";
|
|
1201
|
+
high: "high";
|
|
1202
|
+
xhigh: "xhigh";
|
|
1203
|
+
ultracode: "ultracode";
|
|
1204
|
+
}>>;
|
|
1205
|
+
maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1206
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1207
|
+
maxTotalOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1208
|
+
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
1209
|
+
}, z.core.$strict>;
|
|
1210
|
+
resolved: z.ZodObject<{
|
|
1211
|
+
requested: z.ZodString;
|
|
1212
|
+
provider: z.ZodString;
|
|
1213
|
+
model: z.ZodString;
|
|
1214
|
+
snapshot: z.ZodString;
|
|
1215
|
+
reasoningEffort: z.ZodEnum<{
|
|
1216
|
+
none: "none";
|
|
1217
|
+
minimal: "minimal";
|
|
1218
|
+
low: "low";
|
|
1219
|
+
medium: "medium";
|
|
1220
|
+
high: "high";
|
|
1221
|
+
xhigh: "xhigh";
|
|
1222
|
+
ultracode: "ultracode";
|
|
1223
|
+
}>;
|
|
1224
|
+
}, z.core.$strict>;
|
|
1225
|
+
}, z.core.$strict>;
|
|
1226
|
+
candidate: z.ZodObject<{
|
|
1227
|
+
authored: z.ZodObject<{
|
|
1228
|
+
default: z.ZodOptional<z.ZodString>;
|
|
1229
|
+
small: z.ZodOptional<z.ZodString>;
|
|
1230
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
1232
|
+
none: "none";
|
|
1233
|
+
minimal: "minimal";
|
|
1234
|
+
low: "low";
|
|
1235
|
+
medium: "medium";
|
|
1236
|
+
high: "high";
|
|
1237
|
+
xhigh: "xhigh";
|
|
1238
|
+
ultracode: "ultracode";
|
|
1239
|
+
}>>;
|
|
1240
|
+
maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1241
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1242
|
+
maxTotalOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1243
|
+
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
1244
|
+
}, z.core.$strict>;
|
|
1245
|
+
resolved: z.ZodObject<{
|
|
1246
|
+
requested: z.ZodString;
|
|
1247
|
+
provider: z.ZodString;
|
|
1248
|
+
model: z.ZodString;
|
|
1249
|
+
snapshot: z.ZodString;
|
|
1250
|
+
reasoningEffort: z.ZodEnum<{
|
|
1251
|
+
none: "none";
|
|
1252
|
+
minimal: "minimal";
|
|
1253
|
+
low: "low";
|
|
1254
|
+
medium: "medium";
|
|
1255
|
+
high: "high";
|
|
1256
|
+
xhigh: "xhigh";
|
|
1257
|
+
ultracode: "ultracode";
|
|
1258
|
+
}>;
|
|
1259
|
+
}, z.core.$strict>;
|
|
1260
|
+
}, z.core.$strict>;
|
|
1261
|
+
}, z.core.$strict>], "kind">>;
|
|
793
1262
|
candidateLineage: z.ZodObject<{
|
|
794
1263
|
source: z.ZodEnum<{
|
|
795
1264
|
"frontier-author": "frontier-author";
|