1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { createReActPrompt } from "https://esm.town/v/jdan/createReActPrompt";
export const counterfeitPrompt = createReActPrompt({
tools: [
`weigh(A: number[], B: number[]): "left" | "right" | "even"`,
],
session: {
question: "Which is heavier, coin 11 or coin 13",
transcript: [
{
type: "thought",
thought: "I should weigh coins 11 and 13",
},
{
type: "action",
action: "weigh([11], [13])",
},
{
type: "pause",
},
{
type: "observation",
observation: `"left"`,
},
],
answer: "Coin 11 is heavier",
},
question:
"In front of you are nine coins with IDs 1-9 that are identical in weight except one, which is heavier than the others—a counterfeit (an oddball). The difference is perceptible only by weighing them on scale—but only the coins themselves can be weighed
});