@pinecall/agents 0.11.6 → 0.11.8
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/wire/events-feed.d.ts +21 -1
- package/dist/wire/events-feed.d.ts.map +1 -1
- package/dist/wire/events-feed.js +21 -1
- package/dist/wire/events-feed.js.map +1 -1
- package/dist/wire/index.d.ts +1 -0
- package/dist/wire/index.d.ts.map +1 -1
- package/dist/wire/index.js +1 -0
- package/dist/wire/index.js.map +1 -1
- package/dist/wire/registry.d.ts +17 -0
- package/dist/wire/registry.d.ts.map +1 -1
- package/dist/wire/registry.js +5 -2
- package/dist/wire/registry.js.map +1 -1
- package/dist/wire/rest-judges.d.ts +187 -0
- package/dist/wire/rest-judges.d.ts.map +1 -0
- package/dist/wire/rest-judges.js +75 -0
- package/dist/wire/rest-judges.js.map +1 -0
- package/dist/wire/rest.d.ts +1 -161
- package/dist/wire/rest.d.ts.map +1 -1
- package/dist/wire/rest.js +1 -57
- package/dist/wire/rest.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** What a feed says of a change no log holds: a run, a release, a worker,
|
|
1
|
+
/** What a feed says of a change no log holds: a run, a release, a worker, a tool, a judge, by ids alone. */
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
/** A hosted app's release changed where it stands: uploaded, live, failed or replaced. */
|
|
4
4
|
export declare const ReleaseChangedSchema: z.ZodObject<{
|
|
@@ -18,4 +18,24 @@ export declare const WorkerChangedSchema: z.ZodObject<{
|
|
|
18
18
|
up: z.ZodBoolean;
|
|
19
19
|
cordoned: z.ZodBoolean;
|
|
20
20
|
}, z.core.$strict>;
|
|
21
|
+
/** A tool of a call answered; its name and seconds, never its arguments or its output. */
|
|
22
|
+
export declare const ToolRanSchema: z.ZodObject<{
|
|
23
|
+
call: z.ZodString;
|
|
24
|
+
agent: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
/** A tool of a call failed or timed out; its name and seconds, never its error, arguments or output. */
|
|
29
|
+
export declare const ToolFailedSchema: z.ZodObject<{
|
|
30
|
+
call: z.ZodString;
|
|
31
|
+
agent: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
duration_s: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
/** A judge found a sealed call broken; its name, never its reason or its evidence. */
|
|
36
|
+
export declare const JudgeBrokeSchema: z.ZodObject<{
|
|
37
|
+
call: z.ZodString;
|
|
38
|
+
agent: z.ZodString;
|
|
39
|
+
judge: z.ZodString;
|
|
40
|
+
}, z.core.$strict>;
|
|
21
41
|
//# sourceMappingURL=events-feed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-feed.d.ts","sourceRoot":"","sources":["../../src/wire/events-feed.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"events-feed.d.ts","sourceRoot":"","sources":["../../src/wire/events-feed.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAE5G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0FAA0F;AAC1F,eAAO,MAAM,oBAAoB;;;kBAG/B,CAAC;AAEH,yEAAyE;AACzE,eAAO,MAAM,gBAAgB;;;;kBAI3B,CAAC;AAEH,yFAAyF;AACzF,eAAO,MAAM,mBAAmB;;;;;kBAK9B,CAAC;AAEH,0FAA0F;AAC1F,eAAO,MAAM,aAAa;;;;;kBAKxB,CAAC;AAEH,wGAAwG;AACxG,eAAO,MAAM,gBAAgB;;;;;kBAK3B,CAAC;AAEH,sFAAsF;AACtF,eAAO,MAAM,gBAAgB;;;;kBAI3B,CAAC"}
|
package/dist/wire/events-feed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** What a feed says of a change no log holds: a run, a release, a worker,
|
|
1
|
+
/** What a feed says of a change no log holds: a run, a release, a worker, a tool, a judge, by ids alone. */
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
/** A hosted app's release changed where it stands: uploaded, live, failed or replaced. */
|
|
4
4
|
export const ReleaseChangedSchema = z.strictObject({
|
|
@@ -18,4 +18,24 @@ export const WorkerChangedSchema = z.strictObject({
|
|
|
18
18
|
up: z.boolean(),
|
|
19
19
|
cordoned: z.boolean(),
|
|
20
20
|
});
|
|
21
|
+
/** A tool of a call answered; its name and seconds, never its arguments or its output. */
|
|
22
|
+
export const ToolRanSchema = z.strictObject({
|
|
23
|
+
call: z.string(),
|
|
24
|
+
agent: z.string(),
|
|
25
|
+
name: z.string(),
|
|
26
|
+
duration_s: z.number().nullable(),
|
|
27
|
+
});
|
|
28
|
+
/** A tool of a call failed or timed out; its name and seconds, never its error, arguments or output. */
|
|
29
|
+
export const ToolFailedSchema = z.strictObject({
|
|
30
|
+
call: z.string(),
|
|
31
|
+
agent: z.string(),
|
|
32
|
+
name: z.string(),
|
|
33
|
+
duration_s: z.number().nullable(),
|
|
34
|
+
});
|
|
35
|
+
/** A judge found a sealed call broken; its name, never its reason or its evidence. */
|
|
36
|
+
export const JudgeBrokeSchema = z.strictObject({
|
|
37
|
+
call: z.string(),
|
|
38
|
+
agent: z.string(),
|
|
39
|
+
judge: z.string(),
|
|
40
|
+
});
|
|
21
41
|
//# sourceMappingURL=events-feed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-feed.js","sourceRoot":"","sources":["../../src/wire/events-feed.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"events-feed.js","sourceRoot":"","sources":["../../src/wire/events-feed.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAE5G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0FAA0F;AAC1F,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,GAAG,EAA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E,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC"}
|
package/dist/wire/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./reduce.js";
|
|
|
12
12
|
export * from "./registry.js";
|
|
13
13
|
export * from "./rest-data.js";
|
|
14
14
|
export * from "./rest-hosting.js";
|
|
15
|
+
export * from "./rest-judges.js";
|
|
15
16
|
export * from "./rest-retrieval.js";
|
|
16
17
|
export * from "./rest.js";
|
|
17
18
|
export * from "./room.js";
|
package/dist/wire/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wire/index.ts"],"names":[],"mappings":"AAAA,2HAA2H;AAE3H,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/wire/index.ts"],"names":[],"mappings":"AAAA,2HAA2H;AAE3H,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
package/dist/wire/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./reduce.js";
|
|
|
12
12
|
export * from "./registry.js";
|
|
13
13
|
export * from "./rest-data.js";
|
|
14
14
|
export * from "./rest-hosting.js";
|
|
15
|
+
export * from "./rest-judges.js";
|
|
15
16
|
export * from "./rest-retrieval.js";
|
|
16
17
|
export * from "./rest.js";
|
|
17
18
|
export * from "./room.js";
|
package/dist/wire/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wire/index.ts"],"names":[],"mappings":"AAAA,2HAA2H;AAE3H,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/wire/index.ts"],"names":[],"mappings":"AAAA,2HAA2H;AAE3H,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
package/dist/wire/registry.d.ts
CHANGED
|
@@ -541,6 +541,11 @@ export declare const EVENT_SCHEMAS: {
|
|
|
541
541
|
workers: import("zod").ZodInt;
|
|
542
542
|
active: import("zod").ZodInt;
|
|
543
543
|
}, import("zod/v4/core").$strict>;
|
|
544
|
+
readonly "judge.broke": import("zod").ZodObject<{
|
|
545
|
+
call: import("zod").ZodString;
|
|
546
|
+
agent: import("zod").ZodString;
|
|
547
|
+
judge: import("zod").ZodString;
|
|
548
|
+
}, import("zod/v4/core").$strict>;
|
|
544
549
|
readonly "log.caught_up": import("zod").ZodObject<{
|
|
545
550
|
seq: import("zod").ZodInt;
|
|
546
551
|
}, import("zod/v4/core").$strict>;
|
|
@@ -1353,6 +1358,18 @@ export declare const EVENT_SCHEMAS: {
|
|
|
1353
1358
|
arguments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1354
1359
|
speech_id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1355
1360
|
}, import("zod/v4/core").$strict>;
|
|
1361
|
+
readonly "tool.failed": import("zod").ZodObject<{
|
|
1362
|
+
call: import("zod").ZodString;
|
|
1363
|
+
agent: import("zod").ZodString;
|
|
1364
|
+
name: import("zod").ZodString;
|
|
1365
|
+
duration_s: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1366
|
+
}, import("zod/v4/core").$strict>;
|
|
1367
|
+
readonly "tool.ran": import("zod").ZodObject<{
|
|
1368
|
+
call: import("zod").ZodString;
|
|
1369
|
+
agent: import("zod").ZodString;
|
|
1370
|
+
name: import("zod").ZodString;
|
|
1371
|
+
duration_s: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1372
|
+
}, import("zod/v4/core").$strict>;
|
|
1356
1373
|
readonly "tool.result": import("zod").ZodObject<{
|
|
1357
1374
|
call_id: import("zod").ZodString;
|
|
1358
1375
|
name: import("zod").ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/wire/registry.ts"],"names":[],"mappings":"AAAA,uEAAuE;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/wire/registry.ts"],"names":[],"mappings":"AAAA,uEAAuE;AA2HvE,wEAAwE;AACxE,eAAO,MAAM,aAAa;aACxB,kBAAkB;;;aAClB,gBAAgB;;;;;;;;aAChB,gBAAgB;;;;;;;;;aAChB,kBAAkB;;;;;;;;;;;;;;;;;aAClB,aAAa;;;;;;;;;aACb,kBAAkB;;;;;;;aAClB,oBAAoB;;;;;;;;aACpB,qBAAqB;;;;aACrB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aACf,cAAc;;;;;;;aACd,cAAc;;;;;;;;;;;;;;;;;;;aACd,YAAY;;;;;;;;;;;;;;;;;;;;;;;aACZ,WAAW;;;;aACX,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;aACd,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aACZ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aACjB,aAAa;aACb,gBAAgB;;;;;;;;;;;;;;;aAChB,aAAa;;;;aACb,WAAW;;;;aACX,gBAAgB;;;;aAChB,eAAe;;;;;aACf,YAAY;;;aACZ,WAAW;;;;;;;;;;;;aACX,WAAW;;;aACX,YAAY;;;;aACZ,aAAa;;;aACb,WAAW;aACX,UAAU;;;;aACV,WAAW;aACX,cAAc;;;aACd,eAAe;;;;;;;aACf,aAAa;aACb,aAAa;aACb,YAAY;;;;;;;;aACZ,kBAAkB;;;aAClB,oBAAoB;;;aACpB,IAAM;aACN,YAAY;;;;aACZ,aAAa;;;;;;;aACb,WAAW;;;;;aACX,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aACnB,WAAW;;;;aACX,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;aACjB,aAAa;;;;;;;;aACb,WAAW;;;;;;;;;;;;;;;;CACH,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,eAAe,CAAC"}
|
package/dist/wire/registry.js
CHANGED
|
@@ -3,7 +3,7 @@ import { AgentConfigureSchema, AgentDrainSchema, AgentRegisterSchema, AgentReply
|
|
|
3
3
|
import { ToolResultSchema } from "./defs.js";
|
|
4
4
|
import { AttentionAnsweredSchema, AttentionRequestedSchema, CodeClaimedSchema, CodeIssuedSchema, ConfirmDeclinedSchema, ConfirmGrantedSchema, ConfirmRequestSchema, CreditsExhaustedSchema, EvalsSpentSchema, CustomSchema, DevRequestSchema, DocsSourcesSchema, DtmfReceivedSchema, ErrorEventSchema, FleetFullSchema, LogCaughtUpSchema, LogGapSchema, MemoryOpsSchema, MessageTakenSchema, MessageWaitingSchema, PongSchema, PromptChangedSchema, SpendUnusualSchema, StateChangedSchema, SupervisorEndedSchema, SupervisorReleasedSchema, SupervisorSaidSchema, SupervisorTookOverSchema, SupervisorTransferredSchema, SupervisorWhisperedSchema, ToolCallSchema, ToolsChangedSchema, UserStateChangedSchema, UserTranscriptSchema, UserTurnEndedSchema, VendorSwitchedSchema, } from "./events.js";
|
|
5
5
|
import { AgentConfiguredSchema, AgentDetachedSchema, AgentDrainingSchema, AgentRegisteredSchema, AgentStateChangedSchema, AgentTranscriptSchema, AgentTurnEndedSchema, CallAttachedSchema, CallbackRequestedSchema, CallClaimedSchema, CallDialingSchema, CallEndedSchema, CallLineSchema, CallRingingSchema, CallScoreSchema, CallStartedSchema, CallSummarySchema, CallTransferredSchema, } from "./events-call.js";
|
|
6
|
-
import { ReleaseChangedSchema, RunChangedSchema, WorkerChangedSchema } from "./events-feed.js";
|
|
6
|
+
import { JudgeBrokeSchema, ReleaseChangedSchema, RunChangedSchema, ToolFailedSchema, ToolRanSchema, WorkerChangedSchema, } from "./events-feed.js";
|
|
7
7
|
import { AvatarMetricsSchema, EOTInferenceMetricsSchema, EOUMetricsSchema, InterruptionMetricsSchema, LLMMetricsSchema, RealtimeModelMetricsSchema, STTMetricsSchema, TTSMetricsSchema, VADMetricsSchema, } from "./metrics.js";
|
|
8
8
|
import { EventReceivedSchema, ParticipantJoinedSchema, ParticipantLeftSchema, ParticipantSpeakingSchema, RoomOpenedSchema, RoomSentSchema, TrackPublishedSchema, TrackUnpublishedSchema, } from "./room.js";
|
|
9
9
|
/** Every event by its wire type; the codec looks the schema up here. */
|
|
@@ -41,6 +41,7 @@ export const EVENT_SCHEMAS = {
|
|
|
41
41
|
"error": ErrorEventSchema,
|
|
42
42
|
"event.received": EventReceivedSchema,
|
|
43
43
|
"fleet.full": FleetFullSchema,
|
|
44
|
+
"judge.broke": JudgeBrokeSchema,
|
|
44
45
|
"log.caught_up": LogCaughtUpSchema,
|
|
45
46
|
"log.gap": LogGapSchema,
|
|
46
47
|
"memory.ops": MemoryOpsSchema,
|
|
@@ -73,6 +74,8 @@ export const EVENT_SCHEMAS = {
|
|
|
73
74
|
"supervisor.transferred": SupervisorTransferredSchema,
|
|
74
75
|
"supervisor.whispered": SupervisorWhisperedSchema,
|
|
75
76
|
"tool.call": ToolCallSchema,
|
|
77
|
+
"tool.failed": ToolFailedSchema,
|
|
78
|
+
"tool.ran": ToolRanSchema,
|
|
76
79
|
"tool.result": ToolResultSchema,
|
|
77
80
|
"tools.changed": ToolsChangedSchema,
|
|
78
81
|
"track.published": TrackPublishedSchema,
|
|
@@ -85,7 +88,7 @@ export const EVENT_SCHEMAS = {
|
|
|
85
88
|
"worker.changed": WorkerChangedSchema,
|
|
86
89
|
};
|
|
87
90
|
/** Events a store may drop and a slow reader may miss: the entry's ephemeral flag defaults to this. */
|
|
88
|
-
export const EPHEMERAL_EVENTS = new Set(["agent.transcript", "dev.request", "log.caught_up", "log.gap", "metrics.vad", "participant.speaking", "pong", "release.changed", "room.sent", "run.changed", "user.transcript", "worker.changed"]);
|
|
91
|
+
export const EPHEMERAL_EVENTS = new Set(["agent.transcript", "dev.request", "judge.broke", "log.caught_up", "log.gap", "metrics.vad", "participant.speaking", "pong", "release.changed", "room.sent", "run.changed", "tool.failed", "tool.ran", "user.transcript", "worker.changed"]);
|
|
89
92
|
/** Every command by its wire type; the codec looks the schema up here. */
|
|
90
93
|
export const COMMAND_SCHEMAS = {
|
|
91
94
|
"agent.configure": AgentConfigureSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/wire/registry.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAEvE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/wire/registry.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAEvE,OAAO,EACL,o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AgB;IAC/B,WAAW,EAAE,cAAc;IAC3B,mBAAmB,EAAE,sBAAsB;IAC3C,WAAW,EAAE,cAAc;IAC3B,iBAAiB,EAAE,oBAAoB;IACvC,aAAa,EAAE,gBAAgB;IAC/B,WAAW,EAAE,cAAc;CACnB,CAAC"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/** The judges' doors: a judge as a list shows it, one written or tried, and each judge's agreement with the labels people gave. */
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/** How a judge answers: held or broken, one of its choices, or a score from 1 to 5. */
|
|
4
|
+
export declare const JudgeAnswerSchema: z.ZodEnum<{
|
|
5
|
+
choice: "choice";
|
|
6
|
+
score: "score";
|
|
7
|
+
verdict: "verdict";
|
|
8
|
+
}>;
|
|
9
|
+
/** When a judge runs: every call, only a simulated one, or one its trigger says it applies to. */
|
|
10
|
+
export declare const JudgeWhenSchema: z.ZodEnum<{
|
|
11
|
+
always: "always";
|
|
12
|
+
simulations: "simulations";
|
|
13
|
+
trigger: "trigger";
|
|
14
|
+
}>;
|
|
15
|
+
/** What a judge reads beyond the call: the agent's prompt, the evidence it carried, its facts. */
|
|
16
|
+
export declare const JudgeReadSchema: z.ZodEnum<{
|
|
17
|
+
evidence: "evidence";
|
|
18
|
+
facts: "facts";
|
|
19
|
+
prompt: "prompt";
|
|
20
|
+
}>;
|
|
21
|
+
/** PUT …/judges/{name}: a judge of one's own, whole, or for one of Pinecall's only `on`. */
|
|
22
|
+
export declare const JudgeRequestSchema: z.ZodObject<{
|
|
23
|
+
question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
answer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
choice: "choice";
|
|
26
|
+
score: "score";
|
|
27
|
+
verdict: "verdict";
|
|
28
|
+
}>>>;
|
|
29
|
+
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
31
|
+
always: "always";
|
|
32
|
+
simulations: "simulations";
|
|
33
|
+
trigger: "trigger";
|
|
34
|
+
}>>>;
|
|
35
|
+
trigger: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
reads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
37
|
+
evidence: "evidence";
|
|
38
|
+
facts: "facts";
|
|
39
|
+
prompt: "prompt";
|
|
40
|
+
}>>>>;
|
|
41
|
+
on: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
export type JudgeRequest = z.infer<typeof JudgeRequestSchema>;
|
|
44
|
+
/** One judge as the list shows it: whose it is (`pinecall`, `org` or the agent's slug), whether it runs, what it asks. */
|
|
45
|
+
export declare const JudgeRowSchema: z.ZodObject<{
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
owner: z.ZodString;
|
|
48
|
+
on: z.ZodBoolean;
|
|
49
|
+
question: z.ZodString;
|
|
50
|
+
answer: z.ZodEnum<{
|
|
51
|
+
choice: "choice";
|
|
52
|
+
score: "score";
|
|
53
|
+
verdict: "verdict";
|
|
54
|
+
}>;
|
|
55
|
+
choices: z.ZodArray<z.ZodString>;
|
|
56
|
+
when: z.ZodEnum<{
|
|
57
|
+
always: "always";
|
|
58
|
+
simulations: "simulations";
|
|
59
|
+
trigger: "trigger";
|
|
60
|
+
}>;
|
|
61
|
+
trigger: z.ZodString;
|
|
62
|
+
reads: z.ZodArray<z.ZodEnum<{
|
|
63
|
+
evidence: "evidence";
|
|
64
|
+
facts: "facts";
|
|
65
|
+
prompt: "prompt";
|
|
66
|
+
}>>;
|
|
67
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
69
|
+
why: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
recommended: z.ZodBoolean;
|
|
71
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
set_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
export type JudgeRow = z.infer<typeof JudgeRowSchema>;
|
|
75
|
+
/** GET /v1/agents/{slug}/judges: Pinecall's first, then the org's own, then the agent's. */
|
|
76
|
+
export declare const JudgeListSchema: z.ZodObject<{
|
|
77
|
+
judges: z.ZodArray<z.ZodObject<{
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
owner: z.ZodString;
|
|
80
|
+
on: z.ZodBoolean;
|
|
81
|
+
question: z.ZodString;
|
|
82
|
+
answer: z.ZodEnum<{
|
|
83
|
+
choice: "choice";
|
|
84
|
+
score: "score";
|
|
85
|
+
verdict: "verdict";
|
|
86
|
+
}>;
|
|
87
|
+
choices: z.ZodArray<z.ZodString>;
|
|
88
|
+
when: z.ZodEnum<{
|
|
89
|
+
always: "always";
|
|
90
|
+
simulations: "simulations";
|
|
91
|
+
trigger: "trigger";
|
|
92
|
+
}>;
|
|
93
|
+
trigger: z.ZodString;
|
|
94
|
+
reads: z.ZodArray<z.ZodEnum<{
|
|
95
|
+
evidence: "evidence";
|
|
96
|
+
facts: "facts";
|
|
97
|
+
prompt: "prompt";
|
|
98
|
+
}>>;
|
|
99
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
101
|
+
why: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
recommended: z.ZodBoolean;
|
|
103
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
set_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
105
|
+
}, z.core.$strict>>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
export type JudgeList = z.infer<typeof JudgeListSchema>;
|
|
108
|
+
/** POST /v1/agents/{slug}/judges/try: one judge, by name or written whole, asked of finished calls. */
|
|
109
|
+
export declare const JudgeTrySchema: z.ZodObject<{
|
|
110
|
+
question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
answer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
112
|
+
choice: "choice";
|
|
113
|
+
score: "score";
|
|
114
|
+
verdict: "verdict";
|
|
115
|
+
}>>>;
|
|
116
|
+
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
117
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
118
|
+
always: "always";
|
|
119
|
+
simulations: "simulations";
|
|
120
|
+
trigger: "trigger";
|
|
121
|
+
}>>>;
|
|
122
|
+
trigger: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
reads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
124
|
+
evidence: "evidence";
|
|
125
|
+
facts: "facts";
|
|
126
|
+
prompt: "prompt";
|
|
127
|
+
}>>>>;
|
|
128
|
+
on: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
last: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
131
|
+
calls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
export type JudgeTry = z.infer<typeof JudgeTrySchema>;
|
|
134
|
+
/** What a tried judge answered on each call, the evals spent and their cost; nothing is written. */
|
|
135
|
+
export declare const JudgeTriedSchema: z.ZodObject<{
|
|
136
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
137
|
+
call: z.ZodString;
|
|
138
|
+
judgment: z.ZodNullable<z.ZodObject<{
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
verdict: z.ZodEnum<{
|
|
141
|
+
broken: "broken";
|
|
142
|
+
classified: "classified";
|
|
143
|
+
deferred: "deferred";
|
|
144
|
+
held: "held";
|
|
145
|
+
na: "na";
|
|
146
|
+
skipped: "skipped";
|
|
147
|
+
}>;
|
|
148
|
+
criteria: z.ZodString;
|
|
149
|
+
reason: z.ZodString;
|
|
150
|
+
evidence: z.ZodObject<{
|
|
151
|
+
seqs: z.ZodArray<z.ZodInt>;
|
|
152
|
+
said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
choice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
not_judged: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
+
}, z.core.$strict>>;
|
|
159
|
+
evals: z.ZodInt;
|
|
160
|
+
cost_usd: z.ZodNumber;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
export type JudgeTried = z.infer<typeof JudgeTriedSchema>;
|
|
163
|
+
/** One judge against the labels people gave: how many, how many compared, how many agreed, and whether it is trusted. */
|
|
164
|
+
export declare const JudgeAgreementSchema: z.ZodObject<{
|
|
165
|
+
judge: z.ZodString;
|
|
166
|
+
labelled: z.ZodInt;
|
|
167
|
+
compared: z.ZodInt;
|
|
168
|
+
agreed: z.ZodInt;
|
|
169
|
+
rate: z.ZodNullable<z.ZodNumber>;
|
|
170
|
+
trusted: z.ZodNullable<z.ZodBoolean>;
|
|
171
|
+
}, z.core.$strict>;
|
|
172
|
+
export type JudgeAgreement = z.infer<typeof JudgeAgreementSchema>;
|
|
173
|
+
/** GET /v1/evals/calibration: each judge's agreement with the labels, and the line it is held to. */
|
|
174
|
+
export declare const CalibrationSchema: z.ZodObject<{
|
|
175
|
+
judges: z.ZodArray<z.ZodObject<{
|
|
176
|
+
judge: z.ZodString;
|
|
177
|
+
labelled: z.ZodInt;
|
|
178
|
+
compared: z.ZodInt;
|
|
179
|
+
agreed: z.ZodInt;
|
|
180
|
+
rate: z.ZodNullable<z.ZodNumber>;
|
|
181
|
+
trusted: z.ZodNullable<z.ZodBoolean>;
|
|
182
|
+
}, z.core.$strict>>;
|
|
183
|
+
labels_to_judge: z.ZodInt;
|
|
184
|
+
agrees_at_least: z.ZodNumber;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
export type Calibration = z.infer<typeof CalibrationSchema>;
|
|
187
|
+
//# sourceMappingURL=rest-judges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rest-judges.d.ts","sourceRoot":"","sources":["../../src/wire/rest-judges.ts"],"names":[],"mappings":"AAAA,mIAAmI;AAEnI,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,uFAAuF;AACvF,eAAO,MAAM,iBAAiB;;;;EAAyC,CAAC;AAExE,kGAAkG;AAClG,eAAO,MAAM,eAAe;;;;EAA+C,CAAC;AAE5E,kGAAkG;AAClG,eAAO,MAAM,eAAe;;;;EAA0C,CAAC;AAEvE,4FAA4F;AAC5F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;kBAQ7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,0HAA0H;AAC1H,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,4FAA4F;AAC5F,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,uGAAuG;AACvG,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;kBAIzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,oGAAoG;AACpG,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;kBAU3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,yHAAyH;AACzH,eAAO,MAAM,oBAAoB;;;;;;;kBAQ/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,qGAAqG;AACrG,eAAO,MAAM,iBAAiB;;;;;;;;;;;kBAI5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/** The judges' doors: a judge as a list shows it, one written or tried, and each judge's agreement with the labels people gave. */
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { JudgmentSchema } from "./events.js";
|
|
4
|
+
/** How a judge answers: held or broken, one of its choices, or a score from 1 to 5. */
|
|
5
|
+
export const JudgeAnswerSchema = z.enum(["verdict", "choice", "score"]);
|
|
6
|
+
/** When a judge runs: every call, only a simulated one, or one its trigger says it applies to. */
|
|
7
|
+
export const JudgeWhenSchema = z.enum(["always", "simulations", "trigger"]);
|
|
8
|
+
/** What a judge reads beyond the call: the agent's prompt, the evidence it carried, its facts. */
|
|
9
|
+
export const JudgeReadSchema = z.enum(["prompt", "evidence", "facts"]);
|
|
10
|
+
/** PUT …/judges/{name}: a judge of one's own, whole, or for one of Pinecall's only `on`. */
|
|
11
|
+
export const JudgeRequestSchema = z.strictObject({
|
|
12
|
+
question: z.string().nullish(),
|
|
13
|
+
answer: JudgeAnswerSchema.nullish(),
|
|
14
|
+
choices: z.array(z.string()).nullish(),
|
|
15
|
+
when: JudgeWhenSchema.nullish(),
|
|
16
|
+
trigger: z.string().nullish(),
|
|
17
|
+
reads: z.array(JudgeReadSchema).nullish(),
|
|
18
|
+
on: z.boolean().nullish(),
|
|
19
|
+
});
|
|
20
|
+
/** One judge as the list shows it: whose it is (`pinecall`, `org` or the agent's slug), whether it runs, what it asks. */
|
|
21
|
+
export const JudgeRowSchema = z.strictObject({
|
|
22
|
+
name: z.string(),
|
|
23
|
+
owner: z.string(),
|
|
24
|
+
on: z.boolean(),
|
|
25
|
+
question: z.string(),
|
|
26
|
+
answer: JudgeAnswerSchema,
|
|
27
|
+
choices: z.array(z.string()),
|
|
28
|
+
when: JudgeWhenSchema,
|
|
29
|
+
trigger: z.string(),
|
|
30
|
+
reads: z.array(JudgeReadSchema),
|
|
31
|
+
summary: z.string().nullish(),
|
|
32
|
+
version: z.int().nullish(),
|
|
33
|
+
/** The library's: what it saves an org from, and whether Pinecall says to switch it on first. */
|
|
34
|
+
why: z.string().nullish(),
|
|
35
|
+
recommended: z.boolean(),
|
|
36
|
+
author: z.string().nullish(),
|
|
37
|
+
set_at: z.number().nullish(),
|
|
38
|
+
});
|
|
39
|
+
/** GET /v1/agents/{slug}/judges: Pinecall's first, then the org's own, then the agent's. */
|
|
40
|
+
export const JudgeListSchema = z.strictObject({
|
|
41
|
+
judges: z.array(JudgeRowSchema),
|
|
42
|
+
});
|
|
43
|
+
/** POST /v1/agents/{slug}/judges/try: one judge, by name or written whole, asked of finished calls. */
|
|
44
|
+
export const JudgeTrySchema = JudgeRequestSchema.extend({
|
|
45
|
+
name: z.string(),
|
|
46
|
+
last: z.int().nullish(),
|
|
47
|
+
calls: z.array(z.string()).nullish(),
|
|
48
|
+
});
|
|
49
|
+
/** What a tried judge answered on each call, the evals spent and their cost; nothing is written. */
|
|
50
|
+
export const JudgeTriedSchema = z.strictObject({
|
|
51
|
+
rows: z.array(z.strictObject({
|
|
52
|
+
call: z.string(),
|
|
53
|
+
judgment: JudgmentSchema.nullable(),
|
|
54
|
+
not_judged: z.string().nullish(),
|
|
55
|
+
})),
|
|
56
|
+
evals: z.int(),
|
|
57
|
+
cost_usd: z.number(),
|
|
58
|
+
});
|
|
59
|
+
/** One judge against the labels people gave: how many, how many compared, how many agreed, and whether it is trusted. */
|
|
60
|
+
export const JudgeAgreementSchema = z.strictObject({
|
|
61
|
+
judge: z.string(),
|
|
62
|
+
labelled: z.int(),
|
|
63
|
+
compared: z.int(),
|
|
64
|
+
agreed: z.int(),
|
|
65
|
+
rate: z.number().nullable(),
|
|
66
|
+
/** null until enough labels were compared to say; false is a judge under its line. */
|
|
67
|
+
trusted: z.boolean().nullable(),
|
|
68
|
+
});
|
|
69
|
+
/** GET /v1/evals/calibration: each judge's agreement with the labels, and the line it is held to. */
|
|
70
|
+
export const CalibrationSchema = z.strictObject({
|
|
71
|
+
judges: z.array(JudgeAgreementSchema),
|
|
72
|
+
labels_to_judge: z.int(),
|
|
73
|
+
agrees_at_least: z.number(),
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=rest-judges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rest-judges.js","sourceRoot":"","sources":["../../src/wire/rest-judges.ts"],"names":[],"mappings":"AAAA,mIAAmI;AAEnI,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,uFAAuF;AACvF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAExE,kGAAkG;AAClG,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;AAE5E,kGAAkG;AAClG,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;AAEvE,4FAA4F;AAC5F,MAAM,CAAC,MAA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AAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,sFAAsF;IACtF,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAIH,qGAAqG;AACrG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;IACrC,eAAe,EAAE,CAAC,CAAC,GAAG,EAAE;IACxB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
|
package/dist/wire/rest.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** The read doors the CLI answers from: calls, apps, the line, settings, the lexicon, voices
|
|
1
|
+
/** The read doors the CLI answers from: calls, apps, the line, settings, the lexicon, voices. */
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
/**
|
|
4
4
|
* One call's call.score as a list draws it: how many judges held of how many answered, and why the
|
|
@@ -890,164 +890,4 @@ export declare const VoiceSampleSchema: z.ZodObject<{
|
|
|
890
890
|
text: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodString>>>;
|
|
891
891
|
}, z.core.$strict>;
|
|
892
892
|
export type VoiceSample = z.infer<typeof VoiceSampleSchema>;
|
|
893
|
-
/** How a judge answers: held or broken, one of its choices, or a score from 1 to 5. */
|
|
894
|
-
export declare const JudgeAnswerSchema: z.ZodEnum<{
|
|
895
|
-
choice: "choice";
|
|
896
|
-
score: "score";
|
|
897
|
-
verdict: "verdict";
|
|
898
|
-
}>;
|
|
899
|
-
/** When a judge runs: every call, only a simulated one, or one its trigger says it applies to. */
|
|
900
|
-
export declare const JudgeWhenSchema: z.ZodEnum<{
|
|
901
|
-
always: "always";
|
|
902
|
-
simulations: "simulations";
|
|
903
|
-
trigger: "trigger";
|
|
904
|
-
}>;
|
|
905
|
-
/** What a judge reads beyond the call: the agent's prompt, the evidence it carried, its facts. */
|
|
906
|
-
export declare const JudgeReadSchema: z.ZodEnum<{
|
|
907
|
-
evidence: "evidence";
|
|
908
|
-
facts: "facts";
|
|
909
|
-
prompt: "prompt";
|
|
910
|
-
}>;
|
|
911
|
-
/** PUT …/judges/{name}: a judge of one's own, whole, or for one of Pinecall's only `on`. */
|
|
912
|
-
export declare const JudgeRequestSchema: z.ZodObject<{
|
|
913
|
-
question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
914
|
-
answer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
915
|
-
choice: "choice";
|
|
916
|
-
score: "score";
|
|
917
|
-
verdict: "verdict";
|
|
918
|
-
}>>>;
|
|
919
|
-
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
920
|
-
when: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
921
|
-
always: "always";
|
|
922
|
-
simulations: "simulations";
|
|
923
|
-
trigger: "trigger";
|
|
924
|
-
}>>>;
|
|
925
|
-
trigger: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
926
|
-
reads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
927
|
-
evidence: "evidence";
|
|
928
|
-
facts: "facts";
|
|
929
|
-
prompt: "prompt";
|
|
930
|
-
}>>>>;
|
|
931
|
-
on: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
932
|
-
}, z.core.$strict>;
|
|
933
|
-
export type JudgeRequest = z.infer<typeof JudgeRequestSchema>;
|
|
934
|
-
/** One judge as the list shows it: whose it is (`pinecall`, `org` or the agent's slug), whether it runs, what it asks. */
|
|
935
|
-
export declare const JudgeRowSchema: z.ZodObject<{
|
|
936
|
-
name: z.ZodString;
|
|
937
|
-
owner: z.ZodString;
|
|
938
|
-
on: z.ZodBoolean;
|
|
939
|
-
question: z.ZodString;
|
|
940
|
-
answer: z.ZodEnum<{
|
|
941
|
-
choice: "choice";
|
|
942
|
-
score: "score";
|
|
943
|
-
verdict: "verdict";
|
|
944
|
-
}>;
|
|
945
|
-
choices: z.ZodArray<z.ZodString>;
|
|
946
|
-
when: z.ZodEnum<{
|
|
947
|
-
always: "always";
|
|
948
|
-
simulations: "simulations";
|
|
949
|
-
trigger: "trigger";
|
|
950
|
-
}>;
|
|
951
|
-
trigger: z.ZodString;
|
|
952
|
-
reads: z.ZodArray<z.ZodEnum<{
|
|
953
|
-
evidence: "evidence";
|
|
954
|
-
facts: "facts";
|
|
955
|
-
prompt: "prompt";
|
|
956
|
-
}>>;
|
|
957
|
-
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
-
version: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
959
|
-
why: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
960
|
-
recommended: z.ZodBoolean;
|
|
961
|
-
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
962
|
-
set_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
963
|
-
}, z.core.$strict>;
|
|
964
|
-
export type JudgeRow = z.infer<typeof JudgeRowSchema>;
|
|
965
|
-
/** GET /v1/agents/{slug}/judges: Pinecall's first, then the org's own, then the agent's. */
|
|
966
|
-
export declare const JudgeListSchema: z.ZodObject<{
|
|
967
|
-
judges: z.ZodArray<z.ZodObject<{
|
|
968
|
-
name: z.ZodString;
|
|
969
|
-
owner: z.ZodString;
|
|
970
|
-
on: z.ZodBoolean;
|
|
971
|
-
question: z.ZodString;
|
|
972
|
-
answer: z.ZodEnum<{
|
|
973
|
-
choice: "choice";
|
|
974
|
-
score: "score";
|
|
975
|
-
verdict: "verdict";
|
|
976
|
-
}>;
|
|
977
|
-
choices: z.ZodArray<z.ZodString>;
|
|
978
|
-
when: z.ZodEnum<{
|
|
979
|
-
always: "always";
|
|
980
|
-
simulations: "simulations";
|
|
981
|
-
trigger: "trigger";
|
|
982
|
-
}>;
|
|
983
|
-
trigger: z.ZodString;
|
|
984
|
-
reads: z.ZodArray<z.ZodEnum<{
|
|
985
|
-
evidence: "evidence";
|
|
986
|
-
facts: "facts";
|
|
987
|
-
prompt: "prompt";
|
|
988
|
-
}>>;
|
|
989
|
-
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
990
|
-
version: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
991
|
-
why: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
992
|
-
recommended: z.ZodBoolean;
|
|
993
|
-
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
994
|
-
set_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
995
|
-
}, z.core.$strict>>;
|
|
996
|
-
}, z.core.$strict>;
|
|
997
|
-
export type JudgeList = z.infer<typeof JudgeListSchema>;
|
|
998
|
-
/** POST /v1/agents/{slug}/judges/try: one judge, by name or written whole, asked of finished calls. */
|
|
999
|
-
export declare const JudgeTrySchema: z.ZodObject<{
|
|
1000
|
-
question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1001
|
-
answer: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1002
|
-
choice: "choice";
|
|
1003
|
-
score: "score";
|
|
1004
|
-
verdict: "verdict";
|
|
1005
|
-
}>>>;
|
|
1006
|
-
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1007
|
-
when: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1008
|
-
always: "always";
|
|
1009
|
-
simulations: "simulations";
|
|
1010
|
-
trigger: "trigger";
|
|
1011
|
-
}>>>;
|
|
1012
|
-
trigger: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1013
|
-
reads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
1014
|
-
evidence: "evidence";
|
|
1015
|
-
facts: "facts";
|
|
1016
|
-
prompt: "prompt";
|
|
1017
|
-
}>>>>;
|
|
1018
|
-
on: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1019
|
-
name: z.ZodString;
|
|
1020
|
-
last: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1021
|
-
calls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1022
|
-
}, z.core.$strict>;
|
|
1023
|
-
export type JudgeTry = z.infer<typeof JudgeTrySchema>;
|
|
1024
|
-
/** What a tried judge answered on each call, the evals spent and their cost; nothing is written. */
|
|
1025
|
-
export declare const JudgeTriedSchema: z.ZodObject<{
|
|
1026
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
1027
|
-
call: z.ZodString;
|
|
1028
|
-
judgment: z.ZodNullable<z.ZodObject<{
|
|
1029
|
-
name: z.ZodString;
|
|
1030
|
-
verdict: z.ZodEnum<{
|
|
1031
|
-
broken: "broken";
|
|
1032
|
-
classified: "classified";
|
|
1033
|
-
deferred: "deferred";
|
|
1034
|
-
held: "held";
|
|
1035
|
-
na: "na";
|
|
1036
|
-
skipped: "skipped";
|
|
1037
|
-
}>;
|
|
1038
|
-
criteria: z.ZodString;
|
|
1039
|
-
reason: z.ZodString;
|
|
1040
|
-
evidence: z.ZodObject<{
|
|
1041
|
-
seqs: z.ZodArray<z.ZodInt>;
|
|
1042
|
-
said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1043
|
-
}, z.core.$strict>;
|
|
1044
|
-
choice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1045
|
-
score: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1046
|
-
}, z.core.$strict>>;
|
|
1047
|
-
not_judged: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1048
|
-
}, z.core.$strict>>;
|
|
1049
|
-
evals: z.ZodInt;
|
|
1050
|
-
cost_usd: z.ZodNumber;
|
|
1051
|
-
}, z.core.$strict>;
|
|
1052
|
-
export type JudgeTried = z.infer<typeof JudgeTriedSchema>;
|
|
1053
893
|
//# sourceMappingURL=rest.d.ts.map
|
package/dist/wire/rest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../src/wire/rest.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../src/wire/rest.ts"],"names":[],"mappings":"AAAA,iGAAiG;AAEjG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;kBAK7B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;EAAgD,CAAC;AAE/E,gGAAgG;AAChG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmB5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,qGAAqG;AACrG,eAAO,MAAM,gBAAgB;;;kBAG3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;kBAS3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;kBAExB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;kBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;kBAI5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAA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apps, the line, settings, the lexicon, voices
|
|
1
|
+
/** The read doors the CLI answers from: calls, apps, the line, settings, the lexicon, voices. */
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { DocsConfigSchema, EndOfTurnSchema, GreetingConfigSchema, HangupConfigSchema, MemoryConfigSchema, PronunciationSchema, TurnConfigSchema, } from "./agent-config.js";
|
|
4
4
|
import { ChannelSchema, ContactSchema, CostSchema, DirectionSchema, EndReasonSchema, EnvSchema, } from "./defs.js";
|
|
5
|
-
import { JudgmentSchema } from "./events.js";
|
|
6
5
|
import { AttentionStateSchema, CallStatusSchema } from "./state.js";
|
|
7
6
|
/**
|
|
8
7
|
* One call's call.score as a list draws it: how many judges held of how many answered, and why the
|
|
@@ -245,59 +244,4 @@ export const VoiceSampleSchema = z.strictObject({
|
|
|
245
244
|
language: z.string().nullable().nullish(),
|
|
246
245
|
text: z.string().nullable().nullish(),
|
|
247
246
|
});
|
|
248
|
-
/** How a judge answers: held or broken, one of its choices, or a score from 1 to 5. */
|
|
249
|
-
export const JudgeAnswerSchema = z.enum(["verdict", "choice", "score"]);
|
|
250
|
-
/** When a judge runs: every call, only a simulated one, or one its trigger says it applies to. */
|
|
251
|
-
export const JudgeWhenSchema = z.enum(["always", "simulations", "trigger"]);
|
|
252
|
-
/** What a judge reads beyond the call: the agent's prompt, the evidence it carried, its facts. */
|
|
253
|
-
export const JudgeReadSchema = z.enum(["prompt", "evidence", "facts"]);
|
|
254
|
-
/** PUT …/judges/{name}: a judge of one's own, whole, or for one of Pinecall's only `on`. */
|
|
255
|
-
export const JudgeRequestSchema = z.strictObject({
|
|
256
|
-
question: z.string().nullish(),
|
|
257
|
-
answer: JudgeAnswerSchema.nullish(),
|
|
258
|
-
choices: z.array(z.string()).nullish(),
|
|
259
|
-
when: JudgeWhenSchema.nullish(),
|
|
260
|
-
trigger: z.string().nullish(),
|
|
261
|
-
reads: z.array(JudgeReadSchema).nullish(),
|
|
262
|
-
on: z.boolean().nullish(),
|
|
263
|
-
});
|
|
264
|
-
/** One judge as the list shows it: whose it is (`pinecall`, `org` or the agent's slug), whether it runs, what it asks. */
|
|
265
|
-
export const JudgeRowSchema = z.strictObject({
|
|
266
|
-
name: z.string(),
|
|
267
|
-
owner: z.string(),
|
|
268
|
-
on: z.boolean(),
|
|
269
|
-
question: z.string(),
|
|
270
|
-
answer: JudgeAnswerSchema,
|
|
271
|
-
choices: z.array(z.string()),
|
|
272
|
-
when: JudgeWhenSchema,
|
|
273
|
-
trigger: z.string(),
|
|
274
|
-
reads: z.array(JudgeReadSchema),
|
|
275
|
-
summary: z.string().nullish(),
|
|
276
|
-
version: z.int().nullish(),
|
|
277
|
-
/** The library's: what it saves an org from, and whether Pinecall says to switch it on first. */
|
|
278
|
-
why: z.string().nullish(),
|
|
279
|
-
recommended: z.boolean(),
|
|
280
|
-
author: z.string().nullish(),
|
|
281
|
-
set_at: z.number().nullish(),
|
|
282
|
-
});
|
|
283
|
-
/** GET /v1/agents/{slug}/judges: Pinecall's first, then the org's own, then the agent's. */
|
|
284
|
-
export const JudgeListSchema = z.strictObject({
|
|
285
|
-
judges: z.array(JudgeRowSchema),
|
|
286
|
-
});
|
|
287
|
-
/** POST /v1/agents/{slug}/judges/try: one judge, by name or written whole, asked of finished calls. */
|
|
288
|
-
export const JudgeTrySchema = JudgeRequestSchema.extend({
|
|
289
|
-
name: z.string(),
|
|
290
|
-
last: z.int().nullish(),
|
|
291
|
-
calls: z.array(z.string()).nullish(),
|
|
292
|
-
});
|
|
293
|
-
/** What a tried judge answered on each call, the evals spent and their cost; nothing is written. */
|
|
294
|
-
export const JudgeTriedSchema = z.strictObject({
|
|
295
|
-
rows: z.array(z.strictObject({
|
|
296
|
-
call: z.string(),
|
|
297
|
-
judgment: JudgmentSchema.nullable(),
|
|
298
|
-
not_judged: z.string().nullish(),
|
|
299
|
-
})),
|
|
300
|
-
evals: z.int(),
|
|
301
|
-
cost_usd: z.number(),
|
|
302
|
-
});
|
|
303
247
|
//# sourceMappingURL=rest.js.map
|
package/dist/wire/rest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../src/wire/rest.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../src/wire/rest.ts"],"names":[],"mappings":"AAAA,iGAAiG;AAEjG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,eAAe,EACf,eAAe,EACf,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEpE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE;IACb,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;AAE/E,gGAAgG;AAChG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,GAAG,E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AkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;CACnC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;CACtC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinecall/agents",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.8",
|
|
4
4
|
"description": "Write an agent as a class: its fields are the state, its @tool methods are the model's verbs, and its docstrings are the prompt. The pinecall CLI serves it",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Pinecall <hello@pinecall.io>",
|