@restatedev/agents 0.4.0 → 0.6.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 +104 -38
- package/dist/calls.d.ts +20 -1
- package/dist/calls.d.ts.map +1 -1
- package/dist/calls.js +46 -7
- package/dist/calls.js.map +1 -1
- package/dist/claude/index.d.ts +11 -11
- package/dist/claude/index.d.ts.map +1 -1
- package/dist/claude/index.js +9 -6
- package/dist/claude/index.js.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/common.d.ts +62 -23
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +67 -38
- package/dist/common.js.map +1 -1
- package/dist/{signals.d.ts → companion.d.ts} +106 -43
- package/dist/companion.d.ts.map +1 -0
- package/dist/companion.js +463 -0
- package/dist/companion.js.map +1 -0
- package/dist/conversation.d.ts +115 -5
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +308 -79
- package/dist/conversation.js.map +1 -1
- package/dist/deepseek/index.d.ts +11 -11
- package/dist/deepseek/index.d.ts.map +1 -1
- package/dist/deepseek/index.js +23 -26
- package/dist/deepseek/index.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/langgraph/checkpointer.d.ts +2 -0
- package/dist/langgraph/checkpointer.d.ts.map +1 -1
- package/dist/langgraph/checkpointer.js +1 -1
- package/dist/langgraph/checkpointer.js.map +1 -1
- package/dist/langgraph/graph.d.ts.map +1 -1
- package/dist/langgraph/graph.js +32 -13
- package/dist/langgraph/graph.js.map +1 -1
- package/dist/langgraph/index.d.ts +11 -11
- package/dist/langgraph/index.d.ts.map +1 -1
- package/dist/langgraph/index.js +19 -13
- package/dist/langgraph/index.js.map +1 -1
- package/dist/langgraph/nodes.d.ts +2 -1
- package/dist/langgraph/nodes.d.ts.map +1 -1
- package/dist/langgraph/nodes.js +23 -20
- package/dist/langgraph/nodes.js.map +1 -1
- package/dist/object.d.ts +24 -22
- package/dist/object.d.ts.map +1 -1
- package/dist/object.js +16 -11
- package/dist/object.js.map +1 -1
- package/dist/opencode/db.d.ts +81 -0
- package/dist/opencode/db.d.ts.map +1 -0
- package/dist/opencode/db.js +249 -0
- package/dist/opencode/db.js.map +1 -0
- package/dist/opencode/index.d.ts +184 -0
- package/dist/opencode/index.d.ts.map +1 -0
- package/dist/opencode/index.js +982 -0
- package/dist/opencode/index.js.map +1 -0
- package/dist/pi/index.d.ts +11 -11
- package/dist/pi/index.d.ts.map +1 -1
- package/dist/pi/index.js +16 -17
- package/dist/pi/index.js.map +1 -1
- package/dist/steering.d.ts +2 -1
- package/dist/steering.d.ts.map +1 -1
- package/dist/steering.js +2 -2
- package/dist/steering.js.map +1 -1
- package/dist/tools.d.ts +21 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +54 -14
- package/dist/tools.js.map +1 -1
- package/dist/webhook.js +1 -1
- package/dist/webhook.js.map +1 -1
- package/package.json +37 -4
- package/src/calls.ts +52 -11
- package/src/claude/README.md +4 -2
- package/src/claude/index.ts +9 -7
- package/src/client.ts +1 -1
- package/src/common.ts +99 -40
- package/src/companion.ts +674 -0
- package/src/conversation.ts +377 -105
- package/src/deepseek/README.md +7 -1
- package/src/deepseek/index.ts +22 -24
- package/src/index.ts +10 -4
- package/src/langgraph/README.md +8 -5
- package/src/langgraph/checkpointer.ts +1 -1
- package/src/langgraph/graph.ts +30 -16
- package/src/langgraph/index.ts +24 -17
- package/src/langgraph/nodes.ts +24 -20
- package/src/object.ts +45 -40
- package/src/opencode/README.md +234 -0
- package/src/opencode/db.ts +387 -0
- package/src/opencode/index.ts +1243 -0
- package/src/pi/README.md +6 -1
- package/src/pi/index.ts +16 -15
- package/src/steering.ts +8 -7
- package/src/tools.ts +60 -18
- package/src/webhook.ts +1 -1
- package/dist/signals.d.ts.map +0 -1
- package/dist/signals.js +0 -383
- package/dist/signals.js.map +0 -1
- package/src/signals.ts +0 -590
package/src/pi/README.md
CHANGED
|
@@ -82,7 +82,12 @@ handler does. A retried attempt opens the Harness again and carries on:
|
|
|
82
82
|
pi keeps its own history (and compacts it); each pi commit of a prompt's run
|
|
83
83
|
copies its new entries (the model's replies, the tools' results) into the
|
|
84
84
|
agent's conversation of turns, in the same transaction: what `messages`
|
|
85
|
-
shows ([docs/conversation.md](../../docs/conversation.md)).
|
|
85
|
+
shows ([docs/conversation.md](../../docs/conversation.md)). A commit that
|
|
86
|
+
copied a reply with tool calls, or tools' results, is published once it is
|
|
87
|
+
done, in a `chat` turn (pi commits each result on its own: one publish each;
|
|
88
|
+
a `prompt()` in a handler of your own publishes nothing), and nothing else
|
|
89
|
+
is: a tool call's start publishes nothing, so a follower reads the calls
|
|
90
|
+
once they are stored, and each output once it is. The views show
|
|
86
91
|
each turn as it was asked and answered, not pi's summaries and handoffs.
|
|
87
92
|
|
|
88
93
|
The files of a `workspace` are not in the database: they last as long as the
|
package/src/pi/index.ts
CHANGED
|
@@ -79,7 +79,6 @@ import {
|
|
|
79
79
|
REFUSED,
|
|
80
80
|
RETURNED_UNRECORDED,
|
|
81
81
|
stopSignalOf,
|
|
82
|
-
toolCallEnded,
|
|
83
82
|
toolCallStarted,
|
|
84
83
|
} from '../common.ts';
|
|
85
84
|
import { answerOnce, invocationOf, type Items, type Parsed, type Turn } from '../conversation.ts';
|
|
@@ -194,15 +193,15 @@ const STEER_ENTRY = 'restate.steer';
|
|
|
194
193
|
* its replies, its tools' results, and the messages steered to the turn that
|
|
195
194
|
* pi placed at a step (whose companion is told they are taken, in the
|
|
196
195
|
* commit); nothing once `stopped()`, or once the turn is closed. Each entry
|
|
197
|
-
* once: after the last one copied. `
|
|
198
|
-
*
|
|
196
|
+
* once: after the last one copied. `steps` is told when it copied a step
|
|
197
|
+
* that a follower waits for: a reply with tool calls, or a tool's result.
|
|
199
198
|
*/
|
|
200
199
|
function copying(
|
|
201
200
|
ctx: restate.SessionContext,
|
|
202
201
|
turn: Turn<Item>,
|
|
203
202
|
requestId: string,
|
|
204
203
|
stopped: () => boolean,
|
|
205
|
-
|
|
204
|
+
steps: () => void,
|
|
206
205
|
) {
|
|
207
206
|
let from: { conversation: number; last: number } | undefined;
|
|
208
207
|
return async (tx: Transaction) => {
|
|
@@ -245,10 +244,14 @@ function copying(
|
|
|
245
244
|
tx,
|
|
246
245
|
copied.flatMap(({ steer }) => (steer === undefined ? [] : [steer])),
|
|
247
246
|
);
|
|
248
|
-
|
|
247
|
+
if (copied.some(({ item: { message } }) => isStep(message))) steps();
|
|
249
248
|
};
|
|
250
249
|
}
|
|
251
250
|
|
|
251
|
+
/** Whether `message` is a step of a turn that its followers are told of: a reply with tool calls, or a tool's result. */
|
|
252
|
+
const isStep = (message: Message) =>
|
|
253
|
+
message.role === 'toolResult' || (message.role === 'assistant' && message.content.some((c) => c.type === 'toolCall'));
|
|
254
|
+
|
|
252
255
|
/** An agent's options: `chat`, `prompt` and `withPi` take them. */
|
|
253
256
|
export interface Options<O extends z.ZodObject | undefined = z.ZodObject | undefined> {
|
|
254
257
|
/** The model, as `provider/model-id`: MODEL, or else openai/gpt-6-sol. */
|
|
@@ -424,8 +427,6 @@ export const withPi = async <T>(
|
|
|
424
427
|
cancel(error);
|
|
425
428
|
return awaitWithContext(new Promise<never>(() => {}), context);
|
|
426
429
|
};
|
|
427
|
-
// The tool calls that returned, whose ends are published once pi stored their results (`prompt`).
|
|
428
|
-
const returned = new Set<string>();
|
|
429
430
|
// The messages steered to the turn of a prompt's run, submitted to pi as a publish lists them (`prompt`).
|
|
430
431
|
let steering: ((of: ConversationId) => Promise<void>) | undefined;
|
|
431
432
|
// Whether a tool of the round asks to end the run (`terminate`, a handoff): pi then ends the round at its final
|
|
@@ -438,7 +439,6 @@ export const withPi = async <T>(
|
|
|
438
439
|
await toolCallStarted(ctx);
|
|
439
440
|
const result = await t.execute(args, api, task);
|
|
440
441
|
if (result.control?.terminate === true || result.control?.handoff !== undefined) ending = true;
|
|
441
|
-
returned.add(api.callId);
|
|
442
442
|
return result;
|
|
443
443
|
} catch (error) {
|
|
444
444
|
// The tool's error: never taken for the model's provider refusing (a tool may call a model API).
|
|
@@ -499,22 +499,23 @@ export const withPi = async <T>(
|
|
|
499
499
|
// A run an earlier prompt of this invocation left (its turn failed, say). A steered message is its run's.
|
|
500
500
|
await abortLeft((r) => r === id || r === `${id}:again` || r.startsWith('steer:'));
|
|
501
501
|
// Once stopped, the turn's close says how it ended: not pi's abort of its tools.
|
|
502
|
-
// A
|
|
503
|
-
|
|
502
|
+
// A commit that copied steps (a reply with tool calls, tools' results) is published once it is done,
|
|
503
|
+
// for followers to read them there; its answer lists the messages steered to the turn (`steering`).
|
|
504
|
+
let copiedSteps = false;
|
|
504
505
|
database.onCommit = copying(
|
|
505
506
|
ctx,
|
|
506
507
|
current,
|
|
507
508
|
requestId,
|
|
508
509
|
() => cancelled !== undefined || stopSignalOf(ctx)?.aborted === true,
|
|
509
|
-
(
|
|
510
|
-
|
|
510
|
+
() => {
|
|
511
|
+
copiedSteps = true;
|
|
511
512
|
},
|
|
512
513
|
);
|
|
513
514
|
database.afterCommit = async () => {
|
|
514
|
-
if (!
|
|
515
|
-
|
|
515
|
+
if (!copiedSteps) return;
|
|
516
|
+
copiedSteps = false;
|
|
516
517
|
// Failing, it fails the attempt, as a tool's error does: never pi's commit, which is done.
|
|
517
|
-
await
|
|
518
|
+
await current.stepsCommitted().catch((error: unknown) => {
|
|
518
519
|
failed(error);
|
|
519
520
|
cancel(error);
|
|
520
521
|
});
|
package/src/steering.ts
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
// queues it at once as a turn of its own (the agent's private `steered`), in
|
|
6
6
|
// order with the messages sent after it, and, if the turn being answered
|
|
7
7
|
// takes steered messages, holds it for that turn too (`steer` of
|
|
8
|
-
//
|
|
8
|
+
// companion.ts).
|
|
9
9
|
//
|
|
10
|
-
// The turn learns of it from its next `publish`, which it makes
|
|
11
|
-
//
|
|
10
|
+
// The turn learns of it from its next `publish`, which it makes anyway as it
|
|
11
|
+
// starts and after each write of steps that commits (a reply with tool
|
|
12
|
+
// calls, the tools' results), and waits for (`Inbox` of common.ts). At its next step, once
|
|
12
13
|
// the model's reply has a result for each of its tool calls and before the
|
|
13
14
|
// next model request, the framework's integration calls `takeSteers`: the
|
|
14
15
|
// turn stores each message once, as a message of the user that is a step of
|
|
@@ -21,9 +22,9 @@
|
|
|
21
22
|
// answered as a turn of its own. So each message is answered once.
|
|
22
23
|
import type * as restate from '@restatedev/sessions';
|
|
23
24
|
import type { Transaction } from '@restatedev/sessions';
|
|
24
|
-
import { inboxOf, stopSignalOf } from './common.ts';
|
|
25
|
+
import { type AgentContext, inboxOf, stopSignalOf } from './common.ts';
|
|
25
26
|
import type { Conversation } from './conversation.ts';
|
|
26
|
-
import {
|
|
27
|
+
import { companionHere } from './companion.ts';
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Take the messages steered to the turn being answered, at a step: store
|
|
@@ -61,7 +62,7 @@ export async function takeSteers<I>(ctx: restate.SessionContext, conversation: C
|
|
|
61
62
|
* stored, and once. A framework that places steered messages itself (pi,
|
|
62
63
|
* DeepSeek) calls it as it copies them into the turn.
|
|
63
64
|
*/
|
|
64
|
-
export function tookSteers(ctx:
|
|
65
|
+
export function tookSteers(ctx: AgentContext, tx: Transaction, ids: string[]) {
|
|
65
66
|
if (ids.length === 0) return;
|
|
66
|
-
tx.send(
|
|
67
|
+
tx.send(companionHere(ctx, 'steering'), ctx.key, { idempotencyKey: `taken:${ids[0]}` }).taken(ids);
|
|
67
68
|
}
|
package/src/tools.ts
CHANGED
|
@@ -6,11 +6,15 @@
|
|
|
6
6
|
// A tool runs with the agent's context, and with the id of the model's tool
|
|
7
7
|
// call: Restate calls carry an idempotency key made of the invocation id and
|
|
8
8
|
// that id, so a tool call run again after a crash makes the same call, once.
|
|
9
|
+
// A workflow's `run` is the exception: it runs once per workflow id, and
|
|
10
|
+
// Restate refuses a second call of it whatever its idempotency key, so the
|
|
11
|
+
// tool waits for the run by its invocation id ({@link runWorkflow}).
|
|
9
12
|
import * as restate from '@restatedev/sessions';
|
|
13
|
+
import { attach, start } from '@restatedev/sessions/internal';
|
|
10
14
|
import { z } from 'zod';
|
|
11
15
|
import { stopSignalOf, type Configure, configured, ToolError } from './common.ts';
|
|
12
16
|
import { callOf } from './calls.ts';
|
|
13
|
-
import {
|
|
17
|
+
import { companionHere, NoCompanion } from './companion.ts';
|
|
14
18
|
|
|
15
19
|
const TOOL = Symbol.for('restate-agents.tool');
|
|
16
20
|
|
|
@@ -100,6 +104,9 @@ export const tool = <S extends z.ZodObject>(options: {
|
|
|
100
104
|
const turn = stopSignalOf(ctx);
|
|
101
105
|
if (turn?.aborted) throw turn.reason;
|
|
102
106
|
if (error instanceof restate.CancelledError) throw error;
|
|
107
|
+
// An object without a companion, waiting for a signal: a programming error, which fails the turn once,
|
|
108
|
+
// rather than an answer for the model to act on.
|
|
109
|
+
if (error instanceof NoCompanion) throw error;
|
|
103
110
|
// A terminal error is the tool's answer, which the model can act on; any
|
|
104
111
|
// other error fails the attempt, which Restate retries.
|
|
105
112
|
if (error instanceof restate.TerminalError) return `Error: ${error.message}`;
|
|
@@ -142,18 +149,43 @@ type Target<M = unknown> =
|
|
|
142
149
|
/** Whether a target is keyed: a virtual object (key) or a workflow (id). */
|
|
143
150
|
const keyed = (target: Target) => 'object' in target || 'workflow' in target;
|
|
144
151
|
|
|
145
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Call `method` of `service`, with JSON in and out, once per tool call (see
|
|
154
|
+
* {@link ToolContext}): the call's idempotency key makes the call a new
|
|
155
|
+
* attempt makes again (after a crash, or a suspension) the one the first
|
|
156
|
+
* made, whose result it gets. A workflow's `run` runs instead ({@link runWorkflow}).
|
|
157
|
+
*/
|
|
146
158
|
const invoke = (
|
|
147
159
|
{ ctx, idempotencyKey }: ToolContext,
|
|
148
|
-
target: { service: string; method: string; key?: string; parameter: unknown },
|
|
160
|
+
target: { service: string; method: string; key?: string; parameter: unknown; workflow?: boolean },
|
|
149
161
|
) =>
|
|
150
|
-
|
|
151
|
-
service: target.service,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
162
|
+
target.workflow && target.method === 'run'
|
|
163
|
+
? runWorkflow(ctx, { service: target.service, key: target.key!, input: target.parameter })
|
|
164
|
+
: ctx.rpc({
|
|
165
|
+
service: target.service,
|
|
166
|
+
handler: target.method,
|
|
167
|
+
key: target.key,
|
|
168
|
+
input: target.parameter,
|
|
169
|
+
idempotencyKey,
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Run workflow `service` (its `run` handler) with id `key` and `input` to its
|
|
174
|
+
* end, and resolve to its result: a call of it, whose result it does not wait
|
|
175
|
+
* for, then a wait for the run by the call's invocation id. A workflow's
|
|
176
|
+
* `run` runs once per id: Restate refuses a second call of it, whatever the
|
|
177
|
+
* call's idempotency key, but that call's invocation id is the run's. So a
|
|
178
|
+
* new attempt (after a crash, or a suspension while the run went on) that
|
|
179
|
+
* makes the call again waits for the run an earlier attempt started, and
|
|
180
|
+
* only the first starts one; and a fixed id that ran before gets its run's
|
|
181
|
+
* result. It is a call, not a send: stopping the turn cancels the run, as it
|
|
182
|
+
* cancels the turn's other calls (`cancelCalls`). The Python SDK's
|
|
183
|
+
* `run_workflow` sends instead, and so leaves the run going.
|
|
184
|
+
*/
|
|
185
|
+
export const runWorkflow = async (
|
|
186
|
+
ctx: restate.SessionContext,
|
|
187
|
+
{ service, key, input }: { service: string; key: string; input: unknown },
|
|
188
|
+
): Promise<unknown> => attach(ctx, await start(ctx, { service, handler: 'run', key, input }));
|
|
157
189
|
|
|
158
190
|
interface TargetOptions<S extends z.ZodObject | undefined> {
|
|
159
191
|
/** The tool's name, for the model; by default the handler's, such as `orders_status`. */
|
|
@@ -212,7 +244,12 @@ export const call = <M, S extends z.ZodObject | undefined = undefined>(
|
|
|
212
244
|
input: inputOf(target, options),
|
|
213
245
|
run: async (input, context) =>
|
|
214
246
|
once(`${target.name}/${handler}`, input, context, async (c) =>
|
|
215
|
-
invoke(c, {
|
|
247
|
+
invoke(c, {
|
|
248
|
+
service: target.name,
|
|
249
|
+
method: handler,
|
|
250
|
+
workflow: 'workflow' in target,
|
|
251
|
+
...(await split(target, options, input, c.ctx)),
|
|
252
|
+
}),
|
|
216
253
|
),
|
|
217
254
|
});
|
|
218
255
|
|
|
@@ -241,6 +278,9 @@ export const send = <M, S extends z.ZodObject | undefined = undefined>(
|
|
|
241
278
|
* A tool that runs the workflow `target` (its `run` handler) to the end, and
|
|
242
279
|
* answers with its result. Each tool call is a workflow of its own, with an
|
|
243
280
|
* id made of the agent's key and the tool call's id, unless `key` gives one.
|
|
281
|
+
* A tool call made again (after a crash, or a suspension while the workflow
|
|
282
|
+
* ran) waits for the run it started, and a `key` that ran before gets that
|
|
283
|
+
* run's result ({@link runWorkflow}).
|
|
244
284
|
*/
|
|
245
285
|
export const workflow = <S extends z.ZodObject | undefined = undefined>(
|
|
246
286
|
target: restate.WorkflowDefinition<string, { run: unknown }>,
|
|
@@ -252,11 +292,10 @@ export const workflow = <S extends z.ZodObject | undefined = undefined>(
|
|
|
252
292
|
input: z.object(options.input?.shape ?? {}),
|
|
253
293
|
run: async (input, context) =>
|
|
254
294
|
once(target.name, input, context, async (c) =>
|
|
255
|
-
|
|
295
|
+
runWorkflow(c.ctx, {
|
|
256
296
|
service: target.name,
|
|
257
|
-
method: 'run',
|
|
258
297
|
key: options.key === undefined ? `${c.ctx.key}-${c.callId}` : await configured(options.key, c.ctx),
|
|
259
|
-
|
|
298
|
+
input: options.input ? input : undefined,
|
|
260
299
|
}),
|
|
261
300
|
),
|
|
262
301
|
});
|
|
@@ -348,20 +387,23 @@ export const signal = (name: string, options: { description: string; input?: z.Z
|
|
|
348
387
|
* `pending` shows `input` if `shown`. `rejoin` and `approval` are
|
|
349
388
|
* {@link callOf}'s.
|
|
350
389
|
*/
|
|
351
|
-
const wait = (
|
|
390
|
+
const wait = async (
|
|
352
391
|
toolCall: ToolCall,
|
|
353
392
|
name: string,
|
|
354
393
|
input: unknown,
|
|
355
394
|
{ shown, rejoin, approval }: { shown: boolean; rejoin?: boolean; approval?: boolean },
|
|
356
|
-
): Promise<unknown> =>
|
|
357
|
-
once(
|
|
395
|
+
): Promise<unknown> => {
|
|
396
|
+
// Before the call is recorded: an object without a companion fails the turn, once (`NoCompanion`).
|
|
397
|
+
const companion = companionHere(toolCall.ctx, 'a wait for a signal');
|
|
398
|
+
return once(
|
|
358
399
|
`signal/${name}`,
|
|
359
400
|
input,
|
|
360
401
|
toolCall,
|
|
361
402
|
async ({ ctx, idempotencyKey: id }) =>
|
|
362
|
-
ctx.rpc(
|
|
403
|
+
ctx.rpc(companion, ctx.key, { idempotencyKey: id }).wait({ id, name, ...(shown ? { input } : {}) }),
|
|
363
404
|
{ rejoin, approval },
|
|
364
405
|
);
|
|
406
|
+
};
|
|
365
407
|
|
|
366
408
|
/**
|
|
367
409
|
* Wait for the signal `name` to the agent, for the model's tool call
|
package/src/webhook.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// The other system posts to Restate's ingress, at `/<name>/webhook`.
|
|
17
17
|
import { createHmac, timingSafeEqual } from 'node:crypto';
|
|
18
18
|
import { sdk as restate } from '@restatedev/sessions/internal';
|
|
19
|
-
import { deliver, hasCompanion } from './
|
|
19
|
+
import { deliver, hasCompanion } from './companion.ts';
|
|
20
20
|
|
|
21
21
|
/** How a webhook is signed: the HMAC-SHA256 of its body with `secret`, in hex, in the request's `header`. */
|
|
22
22
|
export interface WebhookAuth {
|
package/dist/signals.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../src/signals.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAA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