@serene-pub/contracts 0.6.0-pr-1 → 0.6.0-pr-4

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.
@@ -0,0 +1,1246 @@
1
+ /**
2
+ * Core's **oracle** node definitions — calls out to an external, nondeterministic
3
+ * source: a model, TTS, image generation, embeddings, a person.
4
+ *
5
+ * One file per node kind, with the helpers only that kind uses; `index.ts`
6
+ * re-exports them all.
7
+ */
8
+ import type { FieldDecl } from '@serene-pub/sdk';
9
+ /**
10
+ * **The model decides who speaks** (PLAN-turn-order R41, M4): the oracle on
11
+ * the turn-order spec's optional model path (`decide.model.advise`). Same
12
+ * ports as a strategy — candidates and the visible history in, prepared turn
13
+ * entries out on `main` and `order` — so the junction's result port reads
14
+ * the same whichever path fired. Its answer is held to the candidates: a
15
+ * ref the pool did not admit is dropped with a note, and an answer that
16
+ * names nobody (or no answer at all) falls back to round robin, noted —
17
+ * never a halt, so a model hiccup never leaves a session without an order.
18
+ *
19
+ * A plugin's own model strategy is a swap for this node: an oracle with
20
+ * these ports and these three slots (the fit check holds it to them).
21
+ * @experimental
22
+ */
23
+ export declare const turnAdvise: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
24
+ main: string;
25
+ order: string;
26
+ }, {
27
+ candidates: string;
28
+ messages: string;
29
+ }, "core:oracle/turn-advise@1"> & {
30
+ kind: 'oracle';
31
+ slots?: {
32
+ readonly connection: {
33
+ readonly kind: "connection";
34
+ readonly quick: true;
35
+ readonly shape: string;
36
+ readonly requires: readonly ["text->text"];
37
+ /**
38
+ * Asked rather than required (the `ctx.can` ruling, as
39
+ * generate-json): the answer's schema goes out through the
40
+ * strongest door the connection has — json_schema (natively or
41
+ * as a grammar), then json_object — and the prompt's own
42
+ * words are the rung that works everywhere.
43
+ */
44
+ readonly optional: readonly ["json_schema", "json_object"];
45
+ };
46
+ readonly sampling: {
47
+ readonly kind: "sampling";
48
+ readonly quick: true;
49
+ readonly shape: string;
50
+ };
51
+ readonly prompts: {
52
+ readonly kind: "prompts";
53
+ readonly quick: true;
54
+ readonly facet: "prompts";
55
+ readonly fields: {
56
+ readonly turnAdvice: {
57
+ readonly type: "text";
58
+ };
59
+ };
60
+ };
61
+ } | undefined;
62
+ }>;
63
+ /**
64
+ * Run the tool the model asked for, and hand the answer back as text it can
65
+ * read on the next pass (20 §9).
66
+ *
67
+ * ## Why this is a Provider and not a Task
68
+ *
69
+ * The two halves either side of it are pure and this one cannot be: a tool
70
+ * reads the session, or reaches an extension's sandboxed hook, which may in
71
+ * turn reach the network under its own grants. That is `effects: 'external'`
72
+ * exactly — and it is the kind that is handed `ctx.call`, so the tool's own
73
+ * dispatch stays behind the host seam where every other outward call lives.
74
+ * A Task with database access would be a second, unaudited read path.
75
+ *
76
+ * ## What it refuses, and what it never throws
77
+ *
78
+ * `tools` is the advertisement the model was actually given, so a name that
79
+ * was never offered is refused **by name** rather than resolved: a model
80
+ * inventing a tool must not be able to reach one that exists but was withheld
81
+ * from this step.
82
+ *
83
+ * A tool that fails is a **result, not an exception**. `main` is
84
+ * `{ tool, error }` and `text` renders it, because the model asking for a
85
+ * missing file needs to read "no such file" and try something else — a throw
86
+ * would end the run at the one moment the agent could have recovered. The
87
+ * type's `timeoutMs` is the time-box per call: one node invocation is one
88
+ * tool, so the executor's own timeout already is the tool's.
89
+ *
90
+ * `call` may be null — that is the ordinary last iteration, where the model
91
+ * answered in prose and the loop is about to stop. Nothing runs and `text` is
92
+ * empty.
93
+ * @experimental
94
+ */
95
+ export declare const runTool: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
96
+ main: string;
97
+ text: string;
98
+ answer: string;
99
+ }, {
100
+ call: string;
101
+ tools: string;
102
+ text: string;
103
+ }, "core:oracle/run-tool@1"> & {
104
+ kind: 'oracle';
105
+ slots?: Record<string, never> | undefined;
106
+ }>;
107
+ /** @experimental */
108
+ export declare const embedText: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
109
+ main: string;
110
+ vector: string;
111
+ vectors: string;
112
+ }, {
113
+ text: string;
114
+ /** Batched: one call, one vector each, in order. */
115
+ texts: string;
116
+ }, "core:oracle/embed-text@1"> & {
117
+ kind: 'oracle';
118
+ slots?: {
119
+ readonly params: {
120
+ readonly kind: "parameters";
121
+ readonly schema: {
122
+ /**
123
+ * `shared`: one switch for every embed step of a spec (R-7
124
+ * P2). `respond` puts it on the semantic mechanism's embed
125
+ * and the entity-vector mechanism's embed reads it through
126
+ * `slot.params({ node })` — an install with no embedding
127
+ * model switches both off in one place, which is the only
128
+ * reading of "embedding: off" a person means.
129
+ */
130
+ readonly enabled: {
131
+ readonly type: "enum";
132
+ readonly of: readonly ["auto", "on", "off"];
133
+ readonly members: readonly [{
134
+ readonly key: "auto";
135
+ readonly label: {
136
+ readonly en: "Automatic";
137
+ };
138
+ readonly description: {
139
+ readonly en: "Embeds when a model is loaded; without one, retrieval goes on without vectors.";
140
+ };
141
+ }, {
142
+ readonly key: "on";
143
+ readonly label: {
144
+ readonly en: "On";
145
+ };
146
+ readonly description: {
147
+ readonly en: "Always embeds; a missing model is recorded as a failure, and the reply still goes out.";
148
+ };
149
+ }, {
150
+ readonly key: "off";
151
+ readonly label: {
152
+ readonly en: "Off";
153
+ };
154
+ readonly description: {
155
+ readonly en: "Never embeds: semantic matching is switched off.";
156
+ };
157
+ }];
158
+ readonly default: "auto";
159
+ readonly shared: true;
160
+ };
161
+ };
162
+ };
163
+ } | undefined;
164
+ }>;
165
+ /**
166
+ * An MCP tool call (14 §2) — the generic Provider for a tool on any MCP
167
+ * connection. The snapshot path (14 §3) projects each advertised tool as its
168
+ * own registry row under the connection's namespace, typed off the tool's
169
+ * declared input schema; this generic type is the escape hatch beneath them —
170
+ * pin it, choose the connection, name the tool in params.
171
+ *
172
+ * `effects: 'external'` unconditionally: MCP annotations (`readOnlyHint` and
173
+ * friends) are advisory by specification and are never trusted for gating
174
+ * (14 §4). The admin's per-tool classification lives on the snapshot rows;
175
+ * this generic type gates always, because through it any tool is reachable.
176
+ *
177
+ * The result carries the request and response verbatim in its output — which
178
+ * is the receipt, which is the pitch (14 §5): no other MCP client can answer
179
+ * "what did this tool actually do, and did I approve it" from a row.
180
+ * @experimental
181
+ */
182
+ export declare const mcpTool: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
183
+ main: string;
184
+ text: string;
185
+ /** The content blocks exactly as the server returned them. */
186
+ content: string;
187
+ }, {
188
+ /** Arguments for the tool, merged over any declared in params. */
189
+ args: string;
190
+ }, "core:oracle/mcp-tool@1"> & {
191
+ kind: 'oracle';
192
+ slots?: {
193
+ readonly connection: {
194
+ readonly kind: "connection";
195
+ readonly quick: true;
196
+ readonly shape: string;
197
+ /**
198
+ * ⚠ No `requires`, and that is deliberate rather than an omission.
199
+ *
200
+ * The capability space describes io TRANSFORMS — what a model can
201
+ * be handed and what it gives back. An MCP server is not one: it
202
+ * serves tools, it does not turn text into anything. The nearest
203
+ * id, `text->text`, would be false, and claiming it would make
204
+ * every chat connection in the install look offerable here.
205
+ *
206
+ * So this slot keeps filtering by `shape` alone, which is the
207
+ * right axis for it. `requires` is for slots whose answer is "what
208
+ * must this connection be able to DO".
209
+ */
210
+ readonly description: "Which MCP server this step calls.";
211
+ };
212
+ readonly params: {
213
+ readonly kind: "parameters";
214
+ readonly schema: {
215
+ readonly tool: {
216
+ readonly type: "string";
217
+ readonly quick: true;
218
+ readonly label: {
219
+ readonly en: "Tool";
220
+ };
221
+ readonly description: {
222
+ readonly en: "The advertised tool name on the connected server.";
223
+ };
224
+ };
225
+ };
226
+ };
227
+ } | undefined;
228
+ }>;
229
+ /**
230
+ * An MCP resource read (14 §2) — a Provider, deliberately not a Query. A
231
+ * Query may not reach the network (16 §1), and everything crossing the
232
+ * process boundary must be recorded verbatim so replay never re-infers
233
+ * (F16); a resource is external state that can change between runs, and
234
+ * modelling it as a Query would quietly break both rules.
235
+ * @experimental
236
+ */
237
+ export declare const mcpResource: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
238
+ main: string;
239
+ text: string;
240
+ content: string;
241
+ }, {
242
+ /** Overrides the declared URI when wired. */
243
+ uri: string;
244
+ }, "core:oracle/mcp-resource@1"> & {
245
+ kind: 'oracle';
246
+ slots?: {
247
+ readonly connection: {
248
+ readonly kind: "connection";
249
+ readonly quick: true;
250
+ readonly shape: string;
251
+ readonly description: "Which MCP server this step reads from.";
252
+ };
253
+ readonly params: {
254
+ readonly kind: "parameters";
255
+ readonly schema: {
256
+ readonly uri: {
257
+ readonly type: "string";
258
+ readonly quick: true;
259
+ readonly label: {
260
+ readonly en: "Resource URI";
261
+ };
262
+ readonly description: {
263
+ readonly en: "The advertised resource URI on the connected server.";
264
+ };
265
+ };
266
+ };
267
+ };
268
+ } | undefined;
269
+ }>;
270
+ /** @public */
271
+ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
272
+ main: string;
273
+ text: string;
274
+ parts: string;
275
+ reasoning: string;
276
+ }, {
277
+ context: string;
278
+ /**
279
+ * Whose reply is being generated — the stop-string exclusion
280
+ * (§27l): the speaking character's own name must not stop
281
+ * their own reply. The host already preferred a payload value
282
+ * over the run scope's; this port is what lets a spec supply
283
+ * one, so the exclusion follows the next-speaker node's output
284
+ * (19 §5) instead of the pre-run guess.
285
+ */
286
+ currentCharacterId: string;
287
+ /**
288
+ * Media travelling with the request — the page a user
289
+ * attached, the frame a vision step is asked about. A list
290
+ * because interleaving is ordered and a single ref could not
291
+ * express "these three, in this order".
292
+ *
293
+ * Optional, and never quietly ignored: the host forwards these
294
+ * references to the dispatch, which resolves each one to bytes
295
+ * (checking it belongs to this run's session or user) and hands
296
+ * them to the adapter in this order. A request whose connection
297
+ * has vision switched off, or whose adapter has no code that
298
+ * sends files, is REFUSED rather than sent without them —
299
+ * dropping a file is indistinguishable from a model ignoring it.
300
+ */
301
+ attachments: string;
302
+ }, "core:oracle/generate-text@1"> & {
303
+ kind: 'oracle';
304
+ slots?: {
305
+ readonly connection: {
306
+ readonly kind: "connection";
307
+ readonly quick: true;
308
+ readonly shape: string;
309
+ /**
310
+ * What the connection must be able to do, as opposed to what it
311
+ * is called. `shape` above still types the SLOT; this types the
312
+ * connection, and it is what the picker filters on and what the
313
+ * bind check refuses by — naming "Chat" rather than an id.
314
+ *
315
+ * Only `requires`, deliberately — still, now that the binding DOES
316
+ * consume `attachments`. It is the Anthropic adapter that sends
317
+ * them today (as base64 content blocks on the last user turn); a
318
+ * connection whose adapter has no such code REFUSES a request
319
+ * carrying files rather than sending it without them, so the
320
+ * `attachments` port is honest without a slot-level requirement.
321
+ *
322
+ * An `optional` vision requirement would meanwhile put a "no
323
+ * vision" caveat on every text connection in the app, on every
324
+ * run — and the port is empty on nearly all of them.
325
+ */
326
+ readonly requires: readonly ["text->text"];
327
+ readonly description: "Which model server this step sends its request to.";
328
+ };
329
+ readonly sampling: {
330
+ readonly kind: "sampling";
331
+ readonly quick: true;
332
+ readonly shape: string;
333
+ readonly description: "The sampling settings — temperature and friends — used for this request.";
334
+ };
335
+ /**
336
+ * ⚠ No `prompts` slot, and there was one — `system` and
337
+ * `postHistory`, "the written instructions sent with every request
338
+ * from this step" (culled 2026-09-16, R-12). No handler read it:
339
+ * the instructions reach the model INSIDE the assembled context,
340
+ * through `core:task/assemble@2`'s own `prompts` slot, and this
341
+ * node sends what it is handed on `context`. Every shipped spec
342
+ * wired it as `slot.prompts({ node: 'context' })` for one reason
343
+ * only — so the panel would not render a second copy of the
344
+ * context builder's text — which is a declaration existing to hide
345
+ * itself. The same slot on `generate-with-tools@1` and
346
+ * `generate-json@1` went with it.
347
+ */
348
+ /**
349
+ * ⚠ No `template` slot, and there was one — "how the assembled
350
+ * context is wrapped for this model before sending".
351
+ *
352
+ * Nothing read it and nothing seeded a row, so it rendered as an
353
+ * empty picker beside the settings that do work. Wrapping for the
354
+ * wire is the `wire` slot's job and the connection adapter's; a
355
+ * second, inert way to express it invited the two to disagree.
356
+ */
357
+ readonly params: {
358
+ readonly kind: "parameters";
359
+ readonly facet: "weights";
360
+ readonly schema: {
361
+ readonly stopSequences: {
362
+ readonly type: "string[]";
363
+ readonly description: "Sequences that end the reply the moment the model writes one. One per line.";
364
+ };
365
+ readonly streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
366
+ };
367
+ };
368
+ } | undefined;
369
+ }>;
370
+ /**
371
+ * Generate, with the tools on the wire (20 §9) — the native door.
372
+ *
373
+ * ## Why this is a second type rather than two ports on `generate-text`
374
+ *
375
+ * `core:oracle/generate-text@1` is published and frozen: a spec that pinned
376
+ * it must keep meaning what it meant. Adding ports would move its content hash
377
+ * and every install would need a re-projection to keep booting — for a
378
+ * capability most connections do not have. A new pin costs a row and conflicts
379
+ * with nothing.
380
+ *
381
+ * It is otherwise the same node: same shape, same slots, same `context` in and
382
+ * the same `main`/`text`/`parts` out. A spec swaps one for the other and
383
+ * nothing else changes.
384
+ *
385
+ * ## The two doors, and why only one of them parses
386
+ *
387
+ * `advertise-tools` publishes both: `prompt` for models that never heard of
388
+ * tools, `native` for APIs that take a declaration list. Wire `native` here and
389
+ * the adapter puts the tools in the field its service calls them — and reads
390
+ * the answer back out of the structured field, so `toolCall` arrives as data.
391
+ * **There is nothing for `parse-tool-call` to do on this door**: the loop's
392
+ * predicate is this node's own `toolCall`, and `run-tool` takes it directly.
393
+ * Parsing prose the API already parsed would be a second reading of one answer.
394
+ *
395
+ * A connection whose adapter cannot send tools REFUSES a request carrying them
396
+ * rather than sending it without: a model that was never offered a tool and a
397
+ * model that declined one produce the same empty `toolCall`, and dropping the
398
+ * declarations silently is indistinguishable from a model choosing not to call.
399
+ * @experimental
400
+ */
401
+ export declare const generateWithTools: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
402
+ main: string;
403
+ text: string;
404
+ parts: string;
405
+ /**
406
+ * `{ tool, args }` when the model called one, null when it
407
+ * answered — the same shape `parse-tool-call` publishes, so
408
+ * `run-tool` and the loop's predicate take either door without
409
+ * knowing which was used.
410
+ */
411
+ toolCall: string;
412
+ }, {
413
+ context: string;
414
+ /** `advertise-tools`' `native` port — the declarations, verbatim. */
415
+ tools: string;
416
+ currentCharacterId: string;
417
+ attachments: string;
418
+ }, "core:oracle/generate-with-tools@1"> & {
419
+ kind: 'oracle';
420
+ slots?: {
421
+ readonly connection: {
422
+ readonly kind: "connection";
423
+ readonly quick: true;
424
+ readonly shape: string;
425
+ readonly requires: readonly ["text->text"];
426
+ /**
427
+ * Asked rather than required, so this node is bindable to every
428
+ * text connection and the author decides what to do without one
429
+ * — which is the ruling on `optional` (`ctx.can`): the type
430
+ * system makes absence impossible to forget about, and the
431
+ * fallback is the author's to write. A spec that wants the
432
+ * emulated door instead wires `advertise-tools`' `prompt`.
433
+ */
434
+ readonly optional: readonly ["tools"];
435
+ readonly description: "Which model server this step sends its request to.";
436
+ };
437
+ readonly sampling: {
438
+ readonly kind: "sampling";
439
+ readonly quick: true;
440
+ readonly shape: string;
441
+ };
442
+ readonly params: {
443
+ readonly kind: "parameters";
444
+ readonly facet: "weights";
445
+ readonly schema: {
446
+ readonly stopSequences: {
447
+ readonly type: "string[]";
448
+ readonly description: "Sequences that end the reply the moment the model writes one. One per line.";
449
+ };
450
+ readonly streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
451
+ };
452
+ };
453
+ } | undefined;
454
+ }>;
455
+ /**
456
+ * Generate, with the ANSWER's shape on the wire — the structured door.
457
+ *
458
+ * ## Why a third generate type rather than a schema port on the other two
459
+ *
460
+ * The same reason `generate-with-tools` is a second one: `generate-text@1` is
461
+ * published and frozen, and a port added to it moves the content hash every
462
+ * spec in every install pins. But the stronger reason here is that this node
463
+ * does not make the same REQUEST. `generate-text` sends a turn — a speaker, a
464
+ * trailing assistant line the model continues — and this sends an instruction.
465
+ * A parameter cannot express that difference honestly: a node whose prompt is
466
+ * sometimes a turn and sometimes a question is two nodes with a flag between
467
+ * them, and the flag is the thing a reader has to find before the receipt makes
468
+ * sense.
469
+ *
470
+ * So: no `currentCharacterId` and no `attachments`, and neither is an omission.
471
+ * The first is the speaker whose reply is being written, and nobody's reply is
472
+ * being written. The second is files travelling with a turn.
473
+ *
474
+ * ⚠ **The trailing assistant line is the TRANSCRIPT's business, not this
475
+ * node's.** A prompt arrives here already rendered, and on a completion wire the
476
+ * seed is an open block inside one string that nothing can take back out. So the
477
+ * guarantee is made where the line is never written:
478
+ * `core:task/prose-transcript@1`, which is what a spec wires into the assemble
479
+ * step feeding this node.
480
+ *
481
+ * ## It parses, and that is not the Provider doing two jobs
482
+ *
483
+ * `parse-json@1`'s own header says why the reading is a separate Task *there*:
484
+ * `generate-text` publishes prose, so the reading is a second step over
485
+ * somebody else's output, and every way it can fail deserves its own node on
486
+ * the receipt. Here the structure IS the output — a request that named a schema
487
+ * and came back with a document has nothing left to interpret — so publishing
488
+ * prose and asking the next node to recover the document from it would be
489
+ * undoing the work this node exists to do.
490
+ *
491
+ * The failures still show. `json` is null and `parseError` carries the sentence
492
+ * when the answer could not be read, and `structured` says which door the
493
+ * request actually went out through, so "the model ignored the schema" and
494
+ * "this connection takes no schema, so there was none" are told apart by
495
+ * reading rather than by guessing.
496
+ *
497
+ * `parse-json@1` stays declared and unchanged: it is content-addressed, other
498
+ * specs pin it, and a reply from `generate-text` still needs it.
499
+ * @public
500
+ */
501
+ export declare const generateJson: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
502
+ /** The parsed document, which is what this node is for. */
503
+ main: string;
504
+ json: string;
505
+ /** The value at `path` — the document itself when `path` is empty. */
506
+ value: string;
507
+ /** That same value as a list, for a `map` to iterate. */
508
+ items: string;
509
+ /** What the model actually wrote, for a reader diagnosing the above. */
510
+ text: string;
511
+ }, {
512
+ context: string;
513
+ /**
514
+ * The shape the answer must take, as a JSON Schema document.
515
+ *
516
+ * Optional, and the node is useful without it: an unschema'd
517
+ * request still asks for JSON rather than prose. Supplied, it
518
+ * reaches whichever field the connection's service calls it —
519
+ * Ollama's `format`, OpenAI's `json_schema`, a GBNF grammar on
520
+ * the llama.cpp family — and a connection that takes none
521
+ * ignores it, which is the degradation rule the adapters
522
+ * already follow for `responseFormat`.
523
+ */
524
+ schema: string;
525
+ }, "core:oracle/generate-json@1"> & {
526
+ kind: 'oracle';
527
+ slots?: {
528
+ readonly connection: {
529
+ readonly kind: "connection";
530
+ readonly quick: true;
531
+ readonly shape: string;
532
+ readonly requires: readonly ["text->text"];
533
+ /**
534
+ * Asked rather than required, which is the `ctx.can` ruling: the
535
+ * node binds to every text connection and the binding decides
536
+ * what to do without them. The ladder is `json_schema` (the
537
+ * shape on the wire, natively or compiled to a grammar), then
538
+ * `json_object` (JSON, shape unsaid), then a sentence in the
539
+ * prompt — and the last rung works everywhere, so an absence
540
+ * costs fidelity rather than the step.
541
+ */
542
+ readonly optional: readonly ["json_schema", "json_object"];
543
+ readonly description: "Which model server this step sends its request to.";
544
+ };
545
+ readonly sampling: {
546
+ readonly kind: "sampling";
547
+ readonly quick: true;
548
+ readonly shape: string;
549
+ };
550
+ readonly params: {
551
+ readonly kind: "parameters";
552
+ readonly facet: "weights";
553
+ readonly schema: {
554
+ /**
555
+ * Which value inside the answer reaches `value` and `items`.
556
+ *
557
+ * A data reference is `{node, port}` with no sub-path, so a
558
+ * downstream `map` cannot iterate `plan.speakers` off a port
559
+ * carrying the whole document — the same reason `parse-json`
560
+ * carries this parameter, and the same spelling.
561
+ *
562
+ * Several dotted paths separated by commas are read in order
563
+ * and their lists joined. That is what makes an answer split
564
+ * into arms wireable at all: a keeper reports
565
+ * `{values, inventory}` (its item arm, named for the stat
566
+ * it resolves onto) because a schema can only be strict
567
+ * about a list whose items are all one shape, and the node
568
+ * that resolves them takes one list.
569
+ */
570
+ readonly path: {
571
+ readonly type: "string";
572
+ readonly quick: true;
573
+ readonly description: "Which value inside the answer to publish on `value` and `items`, as a dotted path. Several paths, separated by commas, are joined in order. Empty publishes the whole answer.";
574
+ };
575
+ readonly stopSequences: {
576
+ readonly type: "string[]";
577
+ readonly description: "Sequences that end the reply the moment the model writes one. One per line.";
578
+ };
579
+ readonly streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
580
+ };
581
+ };
582
+ } | undefined;
583
+ }>;
584
+ /** @experimental */
585
+ export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
586
+ main: string;
587
+ audio: string;
588
+ }, {
589
+ text: string;
590
+ }, "core:oracle/speak@1"> & {
591
+ kind: 'oracle';
592
+ slots?: {
593
+ readonly connection: {
594
+ readonly kind: "connection";
595
+ readonly quick: true;
596
+ readonly shape: string;
597
+ readonly requires: readonly ["text->audio"];
598
+ };
599
+ readonly sampling: {
600
+ readonly kind: "sampling";
601
+ readonly quick: true;
602
+ readonly shape: string;
603
+ };
604
+ readonly template: {
605
+ readonly kind: "template";
606
+ readonly engine: string;
607
+ readonly facet: "templates";
608
+ };
609
+ readonly params: {
610
+ readonly kind: "parameters";
611
+ readonly facet: "weights";
612
+ readonly schema: {
613
+ readonly skipCodeBlocks: {
614
+ readonly type: "boolean";
615
+ readonly default: true;
616
+ };
617
+ };
618
+ };
619
+ } | undefined;
620
+ }>;
621
+ /**
622
+ * Render an image.
623
+ *
624
+ * The structural twin of `generate-text` and `speak`, which is the whole point:
625
+ * one node KIND (`provider`), one type per modality, and the type's `shape`
626
+ * naming which one. That shape is what makes an image node offerable only an
627
+ * image connection and an image sampling config — and, just as importantly, what
628
+ * gives whatever is wired downstream a settled answer about what comes out of it.
629
+ * A single "generate anything" provider whose ports changed with its connection
630
+ * would be a node no spec could plan around.
631
+ *
632
+ * ## Nothing here belongs to one backend
633
+ *
634
+ * An A1111-compatible server takes width and height directly and names its
635
+ * schedulers its own way; ComfyUI takes a whole graph; a hosted API ignores seed
636
+ * and steps entirely. None
637
+ * of that appears in this declaration, because a slot only one backend honours is
638
+ * a control that does nothing on the other three. What a backend alone offers
639
+ * lives on its CONNECTION, declared by its adapter as a profile schema; what a
640
+ * person means lives here and in the sampling config, and the adapter translates
641
+ * — reporting whatever it could not carry across rather than dropping it quietly.
642
+ *
643
+ * ## Ports
644
+ *
645
+ * `media` carries references, never bytes (media.ts): the run stores the image
646
+ * and passes its uuid on, so a consumer that attaches it and a consumer that
647
+ * posts it both work from the same stored row rather than from a base64 string
648
+ * travelling through the graph. `image` is the first of them, for the common
649
+ * single-image wiring, and `caption` is the prompt that produced it — which is
650
+ * what a message posting the image usually wants as its text.
651
+ *
652
+ * `init` is declared now rather than added later: img2img changes nothing else
653
+ * about this contract, and retrofitting a port onto a published type costs a
654
+ * version bump for every spec pinning it.
655
+ * @experimental
656
+ */
657
+ export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
658
+ main: string;
659
+ media: string;
660
+ image: string;
661
+ caption: string;
662
+ }, {
663
+ prompt: string;
664
+ negative: string;
665
+ /** An input image, for backends that report `img2img`. */
666
+ init: string;
667
+ }, "core:oracle/generate-image@1"> & {
668
+ kind: 'oracle';
669
+ slots?: {
670
+ readonly connection: {
671
+ readonly kind: "connection";
672
+ readonly quick: true;
673
+ readonly shape: string;
674
+ /**
675
+ * The declaration that makes a KoboldCPP connection offerable
676
+ * here at all: its TYPE says text, and what it can do says
677
+ * otherwise.
678
+ */
679
+ readonly requires: readonly ["text->image"];
680
+ readonly description: "Which image server this step sends its request to.";
681
+ };
682
+ readonly sampling: {
683
+ readonly kind: "sampling";
684
+ readonly quick: true;
685
+ readonly shape: string;
686
+ readonly description: "Steps, CFG, size, seed — the settings every image backend shares.";
687
+ };
688
+ readonly prompts: {
689
+ readonly kind: "prompts";
690
+ readonly quick: true;
691
+ readonly facet: "prompts";
692
+ readonly description: "How the incoming text becomes what the image model is asked for.";
693
+ readonly fields: {
694
+ readonly positive: {
695
+ readonly type: "text";
696
+ };
697
+ readonly negative: {
698
+ readonly type: "text";
699
+ };
700
+ };
701
+ };
702
+ /**
703
+ * No `facet`, unlike the text nodes' `weights`: the one parameter
704
+ * here decides how the request is SENT, and the weights facet is
705
+ * where a person looks for what the model is asked for.
706
+ *
707
+ * On an image backend `off` is the difference between one request
708
+ * and a render polled for progress and previews, which is the
709
+ * whole of what a background step saves by turning it off.
710
+ */
711
+ readonly params: {
712
+ readonly kind: "parameters";
713
+ readonly schema: {
714
+ streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
715
+ };
716
+ };
717
+ } | undefined;
718
+ }>;
719
+ /**
720
+ * A plugin's own image provider, kept as the worked example of one: same shape,
721
+ * same slots, a `params` schema of its own. Nothing in core dispatches it.
722
+ * @internal
723
+ */
724
+ export declare const renderImage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
725
+ main: string;
726
+ image: string;
727
+ }, {
728
+ context: string;
729
+ }, "chariot.comfy:render-image@1"> & {
730
+ kind: 'oracle';
731
+ slots?: {
732
+ readonly connection: {
733
+ readonly kind: "connection";
734
+ readonly quick: true;
735
+ readonly shape: string;
736
+ readonly requires: readonly ["text->image"];
737
+ };
738
+ readonly sampling: {
739
+ readonly kind: "sampling";
740
+ readonly quick: true;
741
+ readonly shape: string;
742
+ };
743
+ readonly prompts: {
744
+ readonly kind: "prompts";
745
+ readonly quick: true;
746
+ readonly facet: "prompts";
747
+ readonly fields: {
748
+ readonly positive: {
749
+ readonly type: "text";
750
+ };
751
+ readonly negative: {
752
+ readonly type: "text";
753
+ };
754
+ };
755
+ };
756
+ readonly params: {
757
+ readonly kind: "parameters";
758
+ readonly facet: "weights";
759
+ readonly schema: {
760
+ readonly steps: {
761
+ readonly type: "integer";
762
+ readonly default: 25;
763
+ };
764
+ };
765
+ };
766
+ } | undefined;
767
+ }>;
768
+ /**
769
+ * **The sprite picker** — which sprite a line shows, chosen in one step from
770
+ * what the reply spec hands it: the line's text, whose line it is, and (when
771
+ * the spec knows it) the sprite set.
772
+ *
773
+ * All in one (owner, 2026-10-05). The step reads what the speaker can show —
774
+ * the set in force and that set's sprite labels, and the speaker's recent
775
+ * faces — then embeds the line and the labels, and picks the label whose
776
+ * vector is closest to the line's, with a small penalty on labels shown in the
777
+ * speaker's recent lines and a **stickiness margin**: the last shown sprite is
778
+ * kept unless the best beats it by `margin`, which stops a face flickering on
779
+ * every line. The receipt answers "why this face": `choices` carries the set
780
+ * and how it was decided, `pick` the label, its score, the runner-up and
781
+ * whether stickiness held.
782
+ *
783
+ * ⚠ **An oracle, because it embeds.** An embedding model is an external,
784
+ * nondeterministic source, and with an embedding service it is a provider
785
+ * call — one per reply whose speaker has sprites, after the reply is saved, so
786
+ * it never delays the reply. A task is pure and a query may not reach the
787
+ * network; this step does both of the things they may not.
788
+ *
789
+ * ⚠ **No connection slot.** A pipeline never chooses its embedding connection:
790
+ * the host embeds through the install's one active embedding connection, by
791
+ * policy, as it does for `embed-text`. Label vectors are the host's to cache
792
+ * per model.
793
+ *
794
+ * **Picks nothing** — null, and embeds nothing — when `enabled` is off, when
795
+ * the speaker has no sprites (no `speaker`, an envoy, a card with no art), or
796
+ * when no embedding model is set up: an absent mechanism subtracts a signal, it
797
+ * never guesses. A fault here must never fail a delivered reply, so the
798
+ * binding answers a failure with null rather than an error.
799
+ *
800
+ * Not `core:outlet/show-sprite@1`, which records a pick; not the sprite set
801
+ * slot (`core:slot/sprite-set@1`), which is the session's override this step
802
+ * reads.
803
+ * @experimental
804
+ */
805
+ export declare const pickSprite: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
806
+ /** The pick, `sprite-pick@1`: `{ set, label, … }`, or null for none. */
807
+ main: string;
808
+ pick: string;
809
+ /**
810
+ * What the speaker could show, and how the set was decided
811
+ * (`decidedBy`, `missing`) — for the receipt, never for the line.
812
+ */
813
+ choices: string;
814
+ }, {
815
+ /**
816
+ * The line's own text — the reply string the spec saved, wired
817
+ * from the step that produced it. Never re-read from the row:
818
+ * that is the hidden read this step replaced.
819
+ */
820
+ text: string;
821
+ /**
822
+ * Whose line it is, as a **participant reference** — the one the
823
+ * spec wrote the reply row as (the inlet's `speaker`, or a
824
+ * character turn's own). `character:<id>` has a card, and so may
825
+ * have sprites; `envoy:<slug>`, or none at all (a narrator's
826
+ * line), has none, and the pick is null.
827
+ */
828
+ speaker: string;
829
+ /**
830
+ * The session the line is in — where the set is decided (the
831
+ * session's override, the cast member's set at the session's
832
+ * reading) and the speaker's recent faces are found: their
833
+ * lines in this session other than the one this run is
834
+ * writing. ⚠ Never read for whose line it is; that is `speaker`.
835
+ */
836
+ scope: string;
837
+ /**
838
+ * The sprite set to choose within, when the spec knows it.
839
+ * Absent — every core spec — the set is decided from the
840
+ * speaker, in one order: the session's override, then the cast
841
+ * member's set, then the card's default set. A name the card
842
+ * has no set by falls to the default set and says so on
843
+ * `choices`, never silently.
844
+ */
845
+ set: string;
846
+ }, "core:oracle/pick-sprite@1"> & {
847
+ kind: 'oracle';
848
+ slots?: {
849
+ readonly params: {
850
+ readonly kind: "parameters";
851
+ readonly schema: {
852
+ /**
853
+ * Sprites off for this session (or instance): the picker
854
+ * picks nothing and embeds nothing, and faces stay as they
855
+ * are.
856
+ */
857
+ readonly enabled: {
858
+ readonly type: "boolean";
859
+ readonly label: "Choose sprites";
860
+ readonly description: "Choose a sprite for each character's line. Off leaves faces as they are.";
861
+ readonly default: true;
862
+ };
863
+ readonly margin: {
864
+ readonly type: "number";
865
+ readonly label: "Stickiness";
866
+ readonly description: "How much closer a new sprite must be before the face changes. Higher keeps faces steadier.";
867
+ readonly min: 0;
868
+ readonly max: 0.5;
869
+ readonly default: 0.04;
870
+ };
871
+ readonly floor: {
872
+ readonly type: "number";
873
+ readonly label: "Minimum similarity";
874
+ readonly description: "A line less similar than this to every sprite keeps the last one, or shows neutral.";
875
+ readonly min: 0;
876
+ readonly max: 1;
877
+ readonly default: 0.1;
878
+ };
879
+ };
880
+ };
881
+ } | undefined;
882
+ }>;
883
+ /** Phase 1 — one batch, drafted without sight of any other. @internal */
884
+ export declare const summarizeBatch: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
885
+ main: string;
886
+ draft: string;
887
+ }, {
888
+ batch: string;
889
+ request: string;
890
+ /**
891
+ * Which kind of entry this pipeline writes — the word every
892
+ * summarize prompt template branches on (D-I).
893
+ *
894
+ * ## A port, not a parameter, and the call site is what decides
895
+ *
896
+ * `summarizeSpec` writes it as a **literal into the node's
897
+ * config**, in the same map as `batch` and `request` and
898
+ * alongside them: `C.summarizeBatch.v1({ batch, request,
899
+ * loreType, … })`. `resolveInput` passes a non-ref config value
900
+ * through untouched, so the binding reads `input.loreType`
901
+ * exactly the way it reads a port — same position, same access,
902
+ * same absence-is-`undefined`. Declaring it as anything else
903
+ * would describe a mechanism that is not the one running.
904
+ *
905
+ * A `params` field is the alternative, and it is the wrong one
906
+ * twice over. It would move the read to `input.params.loreType`
907
+ * — a different value from a different layer — and it would put
908
+ * the control in the panel, stored per configuration and
909
+ * layered instance → user → session like every other parameter.
910
+ * `SummarizeShape` in the catalog already rules on that: this is
911
+ * "the thing that distinguishes the four namespaces from one
912
+ * another", and a user who changed it "would turn their scene
913
+ * summarizer into a world summarizer without renaming
914
+ * anything".
915
+ *
916
+ * ⚠ An in-port no edge feeds is not a contradiction here. A
917
+ * port is a named input the node reads; where the value comes
918
+ * from — an upstream node, or an author writing it down — is the
919
+ * document's business. What the declaration buys is that the
920
+ * name is now checkable: the app's binding types derive their
921
+ * legal reads from `ports.in`, so `input.loreTypes` stops
922
+ * compiling, and the panel and the plugin validator can both see
923
+ * that this node takes one.
924
+ *
925
+ * `text` rather than an enum shape: a shape ids a payload, and
926
+ * the four legal words are the prompt templates' vocabulary,
927
+ * which a plugin summarizer is free to extend.
928
+ */
929
+ loreType: string;
930
+ }, "core:oracle/summarize-batch@1"> & {
931
+ kind: 'oracle';
932
+ slots?: {
933
+ readonly connection: {
934
+ readonly kind: "connection";
935
+ readonly quick: true;
936
+ readonly shape: string;
937
+ readonly requires: readonly ["text->text"];
938
+ };
939
+ readonly sampling: {
940
+ readonly kind: "sampling";
941
+ readonly quick: true;
942
+ readonly shape: string;
943
+ };
944
+ readonly prompts: {
945
+ readonly kind: "prompts";
946
+ readonly quick: true;
947
+ readonly facet: "prompts";
948
+ readonly fields: {
949
+ readonly batch: {
950
+ readonly type: "text";
951
+ };
952
+ };
953
+ };
954
+ } | undefined;
955
+ }>;
956
+ /** Phase 2 — the ordered drafts merged into one past-tense narrative. @internal */
957
+ export declare const summarizeSynth: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
958
+ main: string;
959
+ content: string;
960
+ }, {
961
+ drafts: string;
962
+ request: string;
963
+ /** Authored on the node, exactly as on the batch step — see it. */
964
+ loreType: string;
965
+ }, "core:oracle/summarize-synth@1"> & {
966
+ kind: 'oracle';
967
+ slots?: {
968
+ readonly connection: {
969
+ readonly kind: "connection";
970
+ readonly quick: true;
971
+ readonly shape: string;
972
+ readonly requires: readonly ["text->text"];
973
+ };
974
+ readonly sampling: {
975
+ readonly kind: "sampling";
976
+ readonly quick: true;
977
+ readonly shape: string;
978
+ };
979
+ readonly prompts: {
980
+ readonly kind: "prompts";
981
+ readonly quick: true;
982
+ readonly facet: "prompts";
983
+ readonly fields: {
984
+ readonly synth: {
985
+ readonly type: "text";
986
+ };
987
+ };
988
+ };
989
+ } | undefined;
990
+ }>;
991
+ /** What the entry gets called. Its own step because it has its own prompt. @internal */
992
+ export declare const nameEntry: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
993
+ main: string;
994
+ name: string;
995
+ }, {
996
+ content: string;
997
+ /** Authored on the node, exactly as on the two steps above — see them. */
998
+ loreType: string;
999
+ }, "core:oracle/name-entry@1"> & {
1000
+ kind: 'oracle';
1001
+ slots?: {
1002
+ readonly connection: {
1003
+ readonly kind: "connection";
1004
+ readonly quick: true;
1005
+ readonly shape: string;
1006
+ readonly requires: readonly ["text->text"];
1007
+ };
1008
+ readonly sampling: {
1009
+ readonly kind: "sampling";
1010
+ readonly quick: true;
1011
+ readonly shape: string;
1012
+ };
1013
+ readonly prompts: {
1014
+ readonly kind: "prompts";
1015
+ readonly quick: true;
1016
+ readonly facet: "prompts";
1017
+ readonly fields: {
1018
+ readonly name: {
1019
+ readonly type: "text";
1020
+ };
1021
+ };
1022
+ };
1023
+ } | undefined;
1024
+ }>;
1025
+ /**
1026
+ * Who was in the scene — scene summaries only.
1027
+ *
1028
+ * Present on one summarize pipeline and not the other three, which is exactly
1029
+ * why they are four specs rather than one spec with a flag. A flag would put the
1030
+ * difference in a condition somebody has to find; four specs put it in the shape.
1031
+ * @internal
1032
+ */
1033
+ export declare const extractCast: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
1034
+ main: string;
1035
+ cast: string;
1036
+ }, {
1037
+ content: string;
1038
+ request: string;
1039
+ }, "core:oracle/extract-cast@1"> & {
1040
+ kind: 'oracle';
1041
+ slots?: {
1042
+ readonly connection: {
1043
+ readonly kind: "connection";
1044
+ readonly quick: true;
1045
+ readonly shape: string;
1046
+ readonly requires: readonly ["text->text"];
1047
+ };
1048
+ readonly sampling: {
1049
+ readonly kind: "sampling";
1050
+ readonly quick: true;
1051
+ readonly shape: string;
1052
+ };
1053
+ readonly prompts: {
1054
+ readonly kind: "prompts";
1055
+ readonly quick: true;
1056
+ readonly facet: "prompts";
1057
+ readonly fields: {
1058
+ readonly characterExtraction: {
1059
+ readonly type: "text";
1060
+ };
1061
+ };
1062
+ };
1063
+ /**
1064
+ * The two halves of a replaceable core function, on the scripts
1065
+ * rung. Scripts here *shape* the extraction — what the model reads,
1066
+ * what the pipeline keeps. Replacing the extractor itself is the
1067
+ * other rung: a same-shaped provider offered by the swap list,
1068
+ * because extraction calls a model and scripts are pure compute.
1069
+ */
1070
+ readonly scripts: {
1071
+ readonly kind: "scripts";
1072
+ readonly accepts: ["core:script:text/transform@1"];
1073
+ readonly port: "content";
1074
+ readonly phase: "before";
1075
+ readonly description: "Scripts over the scene text before the extractor reads it — strip out-of-character chatter, normalise a nickname, redact.";
1076
+ };
1077
+ readonly castScripts: {
1078
+ readonly kind: "scripts";
1079
+ readonly accepts: ["core:script:cast/transform@1"];
1080
+ readonly port: "cast";
1081
+ readonly phase: "after";
1082
+ readonly description: "Scripts over the extracted cast — rename someone, merge aliases, drop a junk detection, add someone the model missed.";
1083
+ };
1084
+ } | undefined;
1085
+ }>;
1086
+ /** Which existing node a mentioned name refers to, or whether it is new. @internal */
1087
+ export declare const graphNodeResolution: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
1088
+ main: string;
1089
+ result: string;
1090
+ }, {
1091
+ scenes: string;
1092
+ }, string> & {
1093
+ kind: 'oracle';
1094
+ slots?: {
1095
+ readonly connection: {
1096
+ readonly kind: "connection";
1097
+ readonly quick: true;
1098
+ readonly shape: string;
1099
+ readonly requires: readonly ["text->text"];
1100
+ };
1101
+ readonly sampling: {
1102
+ readonly kind: "sampling";
1103
+ readonly quick: true;
1104
+ readonly shape: string;
1105
+ };
1106
+ readonly prompts: {
1107
+ readonly kind: "prompts";
1108
+ readonly quick: true;
1109
+ readonly facet: "prompts";
1110
+ readonly fields: {
1111
+ readonly [x: string]: {
1112
+ readonly type: "text";
1113
+ };
1114
+ };
1115
+ };
1116
+ } | undefined;
1117
+ }>;
1118
+ /** Drop what is not worth graphing before the expensive steps run. @internal */
1119
+ export declare const graphPreFilter: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
1120
+ main: string;
1121
+ result: string;
1122
+ }, {
1123
+ scenes: string;
1124
+ }, string> & {
1125
+ kind: 'oracle';
1126
+ slots?: {
1127
+ readonly connection: {
1128
+ readonly kind: "connection";
1129
+ readonly quick: true;
1130
+ readonly shape: string;
1131
+ readonly requires: readonly ["text->text"];
1132
+ };
1133
+ readonly sampling: {
1134
+ readonly kind: "sampling";
1135
+ readonly quick: true;
1136
+ readonly shape: string;
1137
+ };
1138
+ readonly prompts: {
1139
+ readonly kind: "prompts";
1140
+ readonly quick: true;
1141
+ readonly facet: "prompts";
1142
+ readonly fields: {
1143
+ readonly [x: string]: {
1144
+ readonly type: "text";
1145
+ };
1146
+ };
1147
+ };
1148
+ } | undefined;
1149
+ }>;
1150
+ /** Whose account of the scene this is. @internal */
1151
+ export declare const graphPerspective: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
1152
+ main: string;
1153
+ result: string;
1154
+ }, {
1155
+ scenes: string;
1156
+ }, string> & {
1157
+ kind: 'oracle';
1158
+ slots?: {
1159
+ readonly connection: {
1160
+ readonly kind: "connection";
1161
+ readonly quick: true;
1162
+ readonly shape: string;
1163
+ readonly requires: readonly ["text->text"];
1164
+ };
1165
+ readonly sampling: {
1166
+ readonly kind: "sampling";
1167
+ readonly quick: true;
1168
+ readonly shape: string;
1169
+ };
1170
+ readonly prompts: {
1171
+ readonly kind: "prompts";
1172
+ readonly quick: true;
1173
+ readonly facet: "prompts";
1174
+ readonly fields: {
1175
+ readonly [x: string]: {
1176
+ readonly type: "text";
1177
+ };
1178
+ };
1179
+ };
1180
+ } | undefined;
1181
+ }>;
1182
+ /** The two-sentence introduction written for a newly discovered character. @internal */
1183
+ export declare const graphNodeDescription: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
1184
+ main: string;
1185
+ result: string;
1186
+ }, {
1187
+ scenes: string;
1188
+ }, string> & {
1189
+ kind: 'oracle';
1190
+ slots?: {
1191
+ readonly connection: {
1192
+ readonly kind: "connection";
1193
+ readonly quick: true;
1194
+ readonly shape: string;
1195
+ readonly requires: readonly ["text->text"];
1196
+ };
1197
+ readonly sampling: {
1198
+ readonly kind: "sampling";
1199
+ readonly quick: true;
1200
+ readonly shape: string;
1201
+ };
1202
+ readonly prompts: {
1203
+ readonly kind: "prompts";
1204
+ readonly quick: true;
1205
+ readonly facet: "prompts";
1206
+ readonly fields: {
1207
+ readonly [x: string]: {
1208
+ readonly type: "text";
1209
+ };
1210
+ };
1211
+ };
1212
+ } | undefined;
1213
+ }>;
1214
+ /** Did any present character reach a new lifecycle state this scene? @internal */
1215
+ export declare const graphStateDetection: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
1216
+ main: string;
1217
+ result: string;
1218
+ }, {
1219
+ scenes: string;
1220
+ }, string> & {
1221
+ kind: 'oracle';
1222
+ slots?: {
1223
+ readonly connection: {
1224
+ readonly kind: "connection";
1225
+ readonly quick: true;
1226
+ readonly shape: string;
1227
+ readonly requires: readonly ["text->text"];
1228
+ };
1229
+ readonly sampling: {
1230
+ readonly kind: "sampling";
1231
+ readonly quick: true;
1232
+ readonly shape: string;
1233
+ };
1234
+ readonly prompts: {
1235
+ readonly kind: "prompts";
1236
+ readonly quick: true;
1237
+ readonly facet: "prompts";
1238
+ readonly fields: {
1239
+ readonly [x: string]: {
1240
+ readonly type: "text";
1241
+ };
1242
+ };
1243
+ };
1244
+ } | undefined;
1245
+ }>;
1246
+ //# sourceMappingURL=oracles.d.ts.map