pi-t3-bridge 0.4.1 → 0.5.0
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
CHANGED
|
@@ -142,7 +142,13 @@ The bridge caps every shell command at 300 seconds, in the main thread and in ch
|
|
|
142
142
|
|
|
143
143
|
### Stop checks
|
|
144
144
|
|
|
145
|
-
When a run is about to stop, the bridge asks a classifier how the run ended.
|
|
145
|
+
When a run is about to stop, the bridge asks a classifier how the run ended. It picks the classifier in this order:
|
|
146
|
+
|
|
147
|
+
1. The chat model named by `classifierModel` in the config, as `"provider/modelId"`.
|
|
148
|
+
2. `typesafe/jev-latest`, when it is in your Pi model catalog and you have access to it.
|
|
149
|
+
3. The model of the current session.
|
|
150
|
+
|
|
151
|
+
A chat model gets the same questions through one tool call, and the bridge reads its answers from the tool arguments. A chat model's probabilities are its own estimates. They are not calibrated like Jev's, and the stop thresholds were fitted on Jev, so a chat model may nudge more or less often. If Jev is available but its call fails, the bridge does not fall back to a chat model. A `classifierModel` that is not in the catalog or has no auth is an error, and the bridge does not fall back from it either. When the classifier says the agent gave up partway, the bridge adds a note and gives the agent one more turn, at most twice per prompt. Every 3 turns during a run, the bridge also asks the classifier whether the agent shows a known failure, and it adds a note when one is likely. The failures it checks for come from the MAST list of agent failures:
|
|
146
152
|
|
|
147
153
|
- Stuck in a loop
|
|
148
154
|
- Doesn't know when to stop
|
|
@@ -161,6 +167,8 @@ on(run about to stop)
|
|
|
161
167
|
|
|
162
168
|
The stop check and the notes come from [pi-mast-steer](https://github.com/dbreunig/pi-mast-steer). Set `steer` to `"shadow"` in the config to log verdicts without changing the session, or to `"off"` to turn the checks off.
|
|
163
169
|
|
|
170
|
+
A chat-model judge costs tokens on your account, one call per stop check and one every 3 turns.
|
|
171
|
+
|
|
164
172
|
## The pstack extension
|
|
165
173
|
|
|
166
174
|
The pstack extension adds the pstack skills to Pi's skill catalog, and it adds a note to each prompt that tells the agent when to enter `poteto-mode`. `poteto-mode` picks the workflow that fits your goal, for example a bug fix, a feature, a design review, or a PR watch. The skills come from [pstack](https://github.com/cursor/plugins/tree/main/pstack) by way of [t3-pstack](https://github.com/chhoumann/t3-pstack), and they live unchanged under `pstack/`.
|
|
@@ -223,6 +231,7 @@ The bridge reads one JSON file per machine, at `~/.config/pi-t3/config.json`. Ev
|
|
|
223
231
|
{
|
|
224
232
|
"bashTimeoutSeconds": 300,
|
|
225
233
|
"childSandbox": "on",
|
|
234
|
+
"classifierModel": "anthropic/claude-sonnet-4-5",
|
|
226
235
|
"mcpUrl": "http://127.0.0.1:3773/mcp",
|
|
227
236
|
"steer": "on"
|
|
228
237
|
}
|
|
@@ -232,6 +241,7 @@ The bridge reads one JSON file per machine, at `~/.config/pi-t3/config.json`. Ev
|
|
|
232
241
|
| --- | --- | --- |
|
|
233
242
|
| `bashTimeoutSeconds` | `300` | The longest a shell command can run, in seconds. |
|
|
234
243
|
| `childSandbox` | `"on"` | Whether a delegated child's shell commands need a sandbox. With `"on"`, a child's `bash` is blocked when no sandbox can run. With `"off"`, commands run with no sandbox on every platform, and the child's report says `SANDBOX: off`. |
|
|
244
|
+
| `classifierModel` | unset | A chat model that judges the stop checks, as `"provider/modelId"`. The model id may contain more slashes. When unset, the bridge uses `typesafe/jev-latest` if it is available, and the session model if not. A chat model's probabilities are its own estimates, not Jev-calibrated. |
|
|
235
245
|
| `mcpUrl` | `http://127.0.0.1:3773/mcp` | The T3 MCP endpoint to use outside a T3 thread. |
|
|
236
246
|
| `steer` | `"on"` | The stop checks, as `"on"`, `"shadow"`, or `"off"`. |
|
|
237
247
|
|
|
@@ -251,7 +261,7 @@ Earlier releases kept the state and the model sheet under `t3-pstack`. The first
|
|
|
251
261
|
|
|
252
262
|
## Data handling
|
|
253
263
|
|
|
254
|
-
The package has no server and sends no telemetry. The stop checks send parts of the session transcript to the classifier provider in your
|
|
264
|
+
The package has no server and sends no telemetry. The stop checks send parts of the session transcript to the classifier provider, which is Jev, the model you name in `classifierModel`, or your session model, and any file a skill asks the agent to read goes to your model provider. Scripts run on your machine, and the PR tools use your GitHub CLI login.
|
|
255
265
|
|
|
256
266
|
## Development
|
|
257
267
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-t3-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Pi extension adapter for t3-pstack inside T3 Code.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-extension",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
"upstreams": {
|
|
88
|
-
"t3": "0.1.
|
|
88
|
+
"t3": "0.1.7",
|
|
89
89
|
"tstack": "1085050f3baed1ac724caa4a8166145fb2ac88af"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -14,7 +14,7 @@ Answer these from the codebase and only ask the user what you cannot observe:
|
|
|
14
14
|
|
|
15
15
|
- **Surface:** what does a user actually touch? A web UI, a CLI/TUI, a desktop app, an API, a mobile app, a library? A repo can have several; pick the primary one and note the rest.
|
|
16
16
|
- **Run:** how does the app start locally? Prefer the repo's own documented dev command (package scripts, Makefile, README quickstart). Note ports, env vars, seed data, auth.
|
|
17
|
-
- **Drive:** how can an agent interact with it programmatically? Existing harnesses first —
|
|
17
|
+
- **Drive:** how can an agent interact with it programmatically? Existing harnesses first — browser test specs, expect scripts, PTY helpers, curl-able endpoints, a debug port. Only then pick a generic recipe: browser/CDP for web and Electron, a tmux/PTY harness for CLI/TUI, plain HTTP for services.
|
|
18
18
|
- **Observe:** what evidence can be captured? Screenshots, terminal transcripts, response bodies, logs, exit codes, DB state.
|
|
19
19
|
- **Isolate:** can two instances run side by side (ports, data dirs, profiles)? If not, say so in the generated skill: refusing to double-drive a shared instance beats corrupting the user's session.
|
|
20
20
|
|
|
@@ -143,13 +143,22 @@ function checkTarget({ providerInstanceId, model, options }, catalog) {
|
|
|
143
143
|
const problems = [];
|
|
144
144
|
for (const [id, value] of Object.entries(options)) {
|
|
145
145
|
const option = known.find((o) => o.id === id);
|
|
146
|
-
const allowed =
|
|
146
|
+
const allowed = allowedValues(option);
|
|
147
147
|
if (!option) problems.push(`${at}: no option "${id}" (has ${known.map((o) => o.id).join(", ") || "none"})`);
|
|
148
148
|
else if (!allowed.includes(value)) problems.push(`${at}: ${id}=${value} is not one of ${allowed.join(", ")}`);
|
|
149
149
|
}
|
|
150
150
|
return problems;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
// orchestrator_capabilities lists an option's values as a plain array, with
|
|
154
|
+
// booleans as JSON booleans. The `type` and `options: [{ id }]` shape is
|
|
155
|
+
// still read for catalogs saved in that form.
|
|
156
|
+
function allowedValues(option) {
|
|
157
|
+
if (Array.isArray(option?.values)) return option.values.map(String);
|
|
158
|
+
if (option?.type === "boolean") return ["true", "false"];
|
|
159
|
+
return (option?.options ?? []).map((o) => o.id);
|
|
160
|
+
}
|
|
161
|
+
|
|
153
162
|
const invoked = process.argv[1] && existsSync(process.argv[1]) ? realpathSync(process.argv[1]) : null;
|
|
154
163
|
if (invoked === fileURLToPath(import.meta.url)) {
|
|
155
164
|
const [sheetPath, catalogPath] = process.argv.slice(2);
|
package/src/bridge/config.ts
CHANGED
|
@@ -25,6 +25,7 @@ const ChildSandboxSchema = Type.Union([
|
|
|
25
25
|
export interface Config {
|
|
26
26
|
readonly bashTimeoutSeconds: number | undefined;
|
|
27
27
|
readonly childSandbox: Static<typeof ChildSandboxSchema> | undefined;
|
|
28
|
+
readonly classifierModel: string | undefined;
|
|
28
29
|
readonly mcpUrl: string | undefined;
|
|
29
30
|
readonly steer: Static<typeof SteerSchema> | undefined;
|
|
30
31
|
}
|
|
@@ -37,6 +38,7 @@ interface Loaded {
|
|
|
37
38
|
const EMPTY: Config = {
|
|
38
39
|
bashTimeoutSeconds: undefined,
|
|
39
40
|
childSandbox: undefined,
|
|
41
|
+
classifierModel: undefined,
|
|
40
42
|
mcpUrl: undefined,
|
|
41
43
|
steer: undefined,
|
|
42
44
|
};
|
|
@@ -88,6 +90,10 @@ const parse = (text: string): Loaded => {
|
|
|
88
90
|
Type.Number({ exclusiveMinimum: 0 })
|
|
89
91
|
),
|
|
90
92
|
childSandbox: field("childSandbox", ChildSandboxSchema),
|
|
93
|
+
classifierModel: field(
|
|
94
|
+
"classifierModel",
|
|
95
|
+
Type.String({ pattern: "^[^/\\s]+/.+$" })
|
|
96
|
+
),
|
|
91
97
|
mcpUrl: field("mcpUrl", Type.String({ minLength: 1 })),
|
|
92
98
|
steer: field("steer", SteerSchema),
|
|
93
99
|
},
|
|
@@ -2,21 +2,25 @@ import { readFileSync } from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
4
|
import type {
|
|
5
|
+
Api,
|
|
5
6
|
ClassifierBoolQuestion,
|
|
6
7
|
ClassifierContext,
|
|
8
|
+
ClassifierQuestion,
|
|
7
9
|
JsonObject,
|
|
10
|
+
Model,
|
|
8
11
|
} from "@earendil-works/pi-ai";
|
|
9
12
|
import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
10
13
|
import { Type } from "typebox";
|
|
11
|
-
import type { Static } from "typebox";
|
|
14
|
+
import type { Static, TSchema } from "typebox";
|
|
12
15
|
import { Value } from "typebox/value";
|
|
13
16
|
|
|
17
|
+
import { readConfig } from "./config.ts";
|
|
14
18
|
import type { MastExcerpt, StopInput } from "./steer-transcript.ts";
|
|
15
19
|
|
|
16
|
-
// Asks TypeSafe's Jev how a run ended
|
|
17
|
-
// pi-mast-steer's src/judge.ts (MIT,
|
|
18
|
-
// failure becomes an error value, so a
|
|
19
|
-
// session.
|
|
20
|
+
// Asks TypeSafe's Jev how a run ended, or a chat model when Jev is not
|
|
21
|
+
// available. The classifier call follows pi-mast-steer's src/judge.ts (MIT,
|
|
22
|
+
// github.com/dbreunig/pi-mast-steer): any failure becomes an error value, so a
|
|
23
|
+
// judge that is down never blocks a session.
|
|
20
24
|
|
|
21
25
|
const StopKindSchema = Type.Union([
|
|
22
26
|
Type.Literal("done"),
|
|
@@ -92,27 +96,243 @@ const readQuestions = (): Static<typeof QuestionsFileSchema> => {
|
|
|
92
96
|
// Fitted on the user's own labelled stops. See the stop-steer outline, phase 6.
|
|
93
97
|
export const stopThresholds = () => readQuestions().thresholds;
|
|
94
98
|
|
|
95
|
-
|
|
96
|
-
|
|
99
|
+
type Asked = { readonly answers: unknown } | { readonly error: string };
|
|
100
|
+
|
|
101
|
+
const ANSWER_TOOL = "classifier_answers";
|
|
102
|
+
|
|
103
|
+
// One flat argument per asked question: a bool is a probability, a choice is
|
|
104
|
+
// one of its criteria keys. No caller asks a score question.
|
|
105
|
+
const answerSchema = (question: ClassifierQuestion): TSchema => {
|
|
106
|
+
switch (question.type) {
|
|
107
|
+
case "bool": {
|
|
108
|
+
return Type.Number({ maximum: 1, minimum: 0 });
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
case "choice": {
|
|
112
|
+
return Type.Union(
|
|
113
|
+
Object.keys(question.criteria).map((key) => Type.Literal(key))
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
default: {
|
|
118
|
+
return Type.Never();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const chatPrompt = (context: ClassifierContext): string =>
|
|
124
|
+
[
|
|
125
|
+
"Judge the state below by answering each question.",
|
|
126
|
+
`Call ${ANSWER_TOOL} exactly once, with one value for every question.`,
|
|
127
|
+
'For a bool question, give the probability from 0 to 1 that its "true" criteria holds.',
|
|
128
|
+
"For a choice question, give the key of the criteria that fits best.",
|
|
129
|
+
"",
|
|
130
|
+
"Questions, as JSON:",
|
|
131
|
+
JSON.stringify(context.questions),
|
|
132
|
+
"",
|
|
133
|
+
"State, as JSON:",
|
|
134
|
+
JSON.stringify(context.state),
|
|
135
|
+
].join("\n");
|
|
136
|
+
|
|
137
|
+
type FlatAnswer =
|
|
138
|
+
| { readonly probability: number; readonly type: "bool" }
|
|
139
|
+
| { readonly choice: string; readonly type: "choice" };
|
|
140
|
+
|
|
141
|
+
// Parses one flat value per question, checked against that question's own
|
|
142
|
+
// schema, and turns it into the answer shape a classifier returns.
|
|
143
|
+
const parseAnswers = <S extends TSchema>(
|
|
144
|
+
schema: S,
|
|
145
|
+
questions: ClassifierContext["questions"],
|
|
146
|
+
candidate: Static<S>
|
|
147
|
+
): Record<string, FlatAnswer> | undefined => {
|
|
148
|
+
if (!Value.Check(schema, candidate)) {
|
|
149
|
+
return undefined;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (Object.keys(candidate).length !== Object.keys(questions).length) {
|
|
153
|
+
return undefined;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const answers: Record<string, FlatAnswer> = {};
|
|
157
|
+
|
|
158
|
+
for (const [name, question] of Object.entries(questions)) {
|
|
159
|
+
const value = candidate[name];
|
|
160
|
+
|
|
161
|
+
switch (question.type) {
|
|
162
|
+
case "bool": {
|
|
163
|
+
if (!Value.Check(Type.Number({ maximum: 1, minimum: 0 }), value)) {
|
|
164
|
+
return undefined;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
answers[name] = { probability: value, type: "bool" };
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
case "choice": {
|
|
172
|
+
if (
|
|
173
|
+
!Value.Check(Type.String(), value) ||
|
|
174
|
+
!Value.Check(answerSchema(question), value)
|
|
175
|
+
) {
|
|
176
|
+
return undefined;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
answers[name] = { choice: value, type: "choice" };
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
default: {
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return answers;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
const askChat = async (
|
|
97
193
|
ctx: ExtensionContext,
|
|
194
|
+
model: Model<Api>,
|
|
98
195
|
context: ClassifierContext,
|
|
99
196
|
signal: AbortSignal
|
|
100
|
-
): Promise<
|
|
197
|
+
): Promise<Asked> => {
|
|
198
|
+
const schema = Type.Object(
|
|
199
|
+
Object.fromEntries(
|
|
200
|
+
Object.entries(context.questions).map(([name, question]) => [
|
|
201
|
+
name,
|
|
202
|
+
answerSchema(question),
|
|
203
|
+
])
|
|
204
|
+
),
|
|
205
|
+
{ additionalProperties: false }
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
try {
|
|
209
|
+
const reply = await ctx.modelRegistry
|
|
210
|
+
.streamSimple(
|
|
211
|
+
model,
|
|
212
|
+
{
|
|
213
|
+
messages: [
|
|
214
|
+
{
|
|
215
|
+
content: chatPrompt(context),
|
|
216
|
+
role: "user",
|
|
217
|
+
timestamp: Date.now(),
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
tools: [
|
|
221
|
+
{
|
|
222
|
+
constrainedSampling: { strict: "prefer", type: "json_schema" },
|
|
223
|
+
description: "Record your answer to every question.",
|
|
224
|
+
name: ANSWER_TOOL,
|
|
225
|
+
parameters: schema,
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
{ signal }
|
|
230
|
+
)
|
|
231
|
+
.result();
|
|
232
|
+
|
|
233
|
+
if (reply.stopReason !== "stop" && reply.stopReason !== "toolUse") {
|
|
234
|
+
return { error: reply.errorMessage ?? reply.stopReason };
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const call = reply.content.find(
|
|
238
|
+
(part) => part.type === "toolCall" && part.name === ANSWER_TOOL
|
|
239
|
+
);
|
|
240
|
+
|
|
241
|
+
const answers =
|
|
242
|
+
call?.type === "toolCall"
|
|
243
|
+
? parseAnswers(schema, context.questions, call.arguments)
|
|
244
|
+
: undefined;
|
|
245
|
+
|
|
246
|
+
if (answers === undefined) {
|
|
247
|
+
return {
|
|
248
|
+
error: `${model.provider}/${model.id} did not answer through ${ANSWER_TOOL}`,
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
return { answers };
|
|
253
|
+
} catch (error) {
|
|
254
|
+
return {
|
|
255
|
+
error: error instanceof Error ? error.message : String(error),
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
// The judge is classifierModel when set, else Jev when it is available, else
|
|
261
|
+
// the session model. Failures are values. Nothing here throws on a judge that
|
|
262
|
+
// is down.
|
|
263
|
+
const askClassifier = async (
|
|
264
|
+
ctx: ExtensionContext,
|
|
265
|
+
context: ClassifierContext,
|
|
266
|
+
signal: AbortSignal
|
|
267
|
+
): Promise<Asked> => {
|
|
268
|
+
const { classifierModel } = readConfig();
|
|
269
|
+
|
|
270
|
+
if (classifierModel !== undefined) {
|
|
271
|
+
const slash = classifierModel.indexOf("/");
|
|
272
|
+
|
|
273
|
+
const chosen = ctx.modelRegistry.find(
|
|
274
|
+
classifierModel.slice(0, slash),
|
|
275
|
+
classifierModel.slice(slash + 1)
|
|
276
|
+
);
|
|
277
|
+
|
|
278
|
+
if (chosen === undefined) {
|
|
279
|
+
return {
|
|
280
|
+
error: `classifierModel "${classifierModel}" is not in the model catalog`,
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (!ctx.modelRegistry.hasConfiguredAuth(chosen)) {
|
|
285
|
+
return {
|
|
286
|
+
error: `classifierModel "${classifierModel}" has no configured auth`,
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
return askChat(ctx, chosen, context, signal);
|
|
291
|
+
}
|
|
292
|
+
|
|
101
293
|
const jev = ctx.modelRegistry.findOfType(
|
|
102
294
|
"classifier",
|
|
103
295
|
"typesafe",
|
|
104
296
|
"jev-latest"
|
|
105
297
|
);
|
|
106
298
|
|
|
107
|
-
|
|
108
|
-
|
|
299
|
+
let available: Awaited<
|
|
300
|
+
ReturnType<typeof ctx.modelRegistry.getAvailableOfType>
|
|
301
|
+
>;
|
|
302
|
+
|
|
303
|
+
try {
|
|
304
|
+
available = await ctx.modelRegistry.getAvailableOfType(
|
|
305
|
+
"classifier",
|
|
306
|
+
"typesafe",
|
|
307
|
+
{ signal }
|
|
308
|
+
);
|
|
309
|
+
} catch (error) {
|
|
310
|
+
return {
|
|
311
|
+
error: error instanceof Error ? error.message : String(error),
|
|
312
|
+
};
|
|
109
313
|
}
|
|
110
314
|
|
|
111
|
-
|
|
315
|
+
if (
|
|
316
|
+
jev !== undefined &&
|
|
317
|
+
available.some(
|
|
318
|
+
(model) => model.provider === jev.provider && model.id === jev.id
|
|
319
|
+
)
|
|
320
|
+
) {
|
|
321
|
+
const result = await ctx.modelRegistry.classify(jev, context, { signal });
|
|
322
|
+
|
|
323
|
+
return result.stopReason === "stop"
|
|
324
|
+
? { answers: result.answers }
|
|
325
|
+
: { error: result.errorMessage ?? result.stopReason };
|
|
326
|
+
}
|
|
112
327
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
328
|
+
if (ctx.model !== undefined) {
|
|
329
|
+
return askChat(ctx, ctx.model, context, signal);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
return {
|
|
333
|
+
error:
|
|
334
|
+
"typesafe/jev-latest is not available and the session has no model to judge with",
|
|
335
|
+
};
|
|
116
336
|
};
|
|
117
337
|
|
|
118
338
|
export const judgeStop = async (
|
|
@@ -144,7 +364,7 @@ export const judgeStop = async (
|
|
|
144
364
|
asked.handoff_missing = questions.handoff_missing;
|
|
145
365
|
}
|
|
146
366
|
|
|
147
|
-
const result = await
|
|
367
|
+
const result = await askClassifier(ctx, { questions: asked, state }, signal);
|
|
148
368
|
|
|
149
369
|
if ("error" in result) {
|
|
150
370
|
return result;
|
|
@@ -230,7 +450,7 @@ export const judgeMast = async (
|
|
|
230
450
|
): Promise<MastVerdict> => {
|
|
231
451
|
const mast = readMast();
|
|
232
452
|
|
|
233
|
-
const result = await
|
|
453
|
+
const result = await askClassifier(
|
|
234
454
|
ctx,
|
|
235
455
|
{
|
|
236
456
|
// Pi sends `bool` questions to TypeSafe as `noul`, the type DSPy sends.
|