@pinecall/agents 0.11.7 → 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/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/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
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"}
|
|
@@ -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,k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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
|
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,oGAAoG;AACpG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,KAAK,CACX,CAAC,CAAC,YAAY,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE;QACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;KACjC,CAAC,CACH;IACD,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAIH,yHAAyH;AACzH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,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,M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,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAO9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,kFAAkF;AAClF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;kBAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;kBAQ5B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;kBAI7B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;kBAM5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/wire/rest.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
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
|
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,EA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E,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>",
|