@serene-pub/contracts 0.6.0-pr-4 → 0.6.0-pr-5
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/inlets.d.ts +112 -50
- package/dist/inlets.js +118 -53
- package/dist/oracles.d.ts +308 -19
- package/dist/oracles.js +288 -40
- package/dist/outlets.d.ts +194 -44
- package/dist/outlets.js +231 -55
- package/dist/queries.d.ts +253 -79
- package/dist/queries.js +248 -88
- package/dist/tasks.d.ts +920 -176
- package/dist/tasks.js +788 -145
- package/package.json +3 -3
package/dist/oracles.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { FieldDecl } from '@serene-pub/sdk';
|
|
9
9
|
/**
|
|
10
|
-
* **The model decides who speaks
|
|
10
|
+
* **The model decides who speaks**: the oracle on
|
|
11
11
|
* the turn-order spec's optional model path (`decide.model.advise`). Same
|
|
12
12
|
* ports as a strategy — candidates and the visible history in, prepared turn
|
|
13
13
|
* entries out on `main` and `order` — so the junction's result port reads
|
|
@@ -29,6 +29,10 @@ export declare const turnAdvise: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
29
29
|
}, "core:oracle/turn-advise@1"> & {
|
|
30
30
|
kind: 'oracle';
|
|
31
31
|
slots?: {
|
|
32
|
+
readonly loadout: {
|
|
33
|
+
readonly kind: 'loadout';
|
|
34
|
+
readonly quick: true;
|
|
35
|
+
};
|
|
32
36
|
readonly connection: {
|
|
33
37
|
readonly kind: "connection";
|
|
34
38
|
readonly quick: true;
|
|
@@ -62,7 +66,7 @@ export declare const turnAdvise: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
62
66
|
}>;
|
|
63
67
|
/**
|
|
64
68
|
* Run the tool the model asked for, and hand the answer back as text it can
|
|
65
|
-
* read on the next pass
|
|
69
|
+
* read on the next pass.
|
|
66
70
|
*
|
|
67
71
|
* ## Why this is a Provider and not a Task
|
|
68
72
|
*
|
|
@@ -120,8 +124,8 @@ export declare const embedText: import("@serene-pub/sdk").Pinned<import("@serene
|
|
|
120
124
|
readonly kind: "parameters";
|
|
121
125
|
readonly schema: {
|
|
122
126
|
/**
|
|
123
|
-
* `shared`: one switch for every embed step of a
|
|
124
|
-
*
|
|
127
|
+
* `shared`: one switch for every embed step of a
|
|
128
|
+
* spec. `respond` puts it on the semantic mechanism's embed
|
|
125
129
|
* and the entity-vector mechanism's embed reads it through
|
|
126
130
|
* `slot.params({ node })` — an install with no embedding
|
|
127
131
|
* model switches both off in one place, which is the only
|
|
@@ -163,19 +167,19 @@ export declare const embedText: import("@serene-pub/sdk").Pinned<import("@serene
|
|
|
163
167
|
} | undefined;
|
|
164
168
|
}>;
|
|
165
169
|
/**
|
|
166
|
-
* An MCP tool call
|
|
167
|
-
* connection. The snapshot path
|
|
170
|
+
* An MCP tool call — the generic Provider for a tool on any MCP
|
|
171
|
+
* connection. The snapshot path projects each advertised tool as its
|
|
168
172
|
* own registry row under the connection's namespace, typed off the tool's
|
|
169
173
|
* declared input schema; this generic type is the escape hatch beneath them —
|
|
170
174
|
* pin it, choose the connection, name the tool in params.
|
|
171
175
|
*
|
|
172
176
|
* `effects: 'external'` unconditionally: MCP annotations (`readOnlyHint` and
|
|
173
177
|
* friends) are advisory by specification and are never trusted for gating
|
|
174
|
-
*
|
|
178
|
+
* The admin's per-tool classification lives on the snapshot rows;
|
|
175
179
|
* this generic type gates always, because through it any tool is reachable.
|
|
176
180
|
*
|
|
177
181
|
* The result carries the request and response verbatim in its output — which
|
|
178
|
-
* is the receipt, which is the pitch
|
|
182
|
+
* is the receipt, which is the pitch: no other MCP client can answer
|
|
179
183
|
* "what did this tool actually do, and did I approve it" from a row.
|
|
180
184
|
* @experimental
|
|
181
185
|
*/
|
|
@@ -227,10 +231,10 @@ export declare const mcpTool: import("@serene-pub/sdk").Pinned<import("@serene-p
|
|
|
227
231
|
} | undefined;
|
|
228
232
|
}>;
|
|
229
233
|
/**
|
|
230
|
-
* An MCP resource read
|
|
231
|
-
* Query may not reach the network
|
|
232
|
-
* process boundary must be recorded verbatim so replay never re-infers
|
|
233
|
-
*
|
|
234
|
+
* An MCP resource read — a Provider, deliberately not a Query. A
|
|
235
|
+
* Query may not reach the network, and everything crossing the
|
|
236
|
+
* process boundary must be recorded verbatim so replay never re-infers;
|
|
237
|
+
* a resource is external state that can change between runs, and
|
|
234
238
|
* modelling it as a Query would quietly break both rules.
|
|
235
239
|
* @experimental
|
|
236
240
|
*/
|
|
@@ -276,12 +280,12 @@ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
276
280
|
}, {
|
|
277
281
|
context: string;
|
|
278
282
|
/**
|
|
279
|
-
* Whose reply is being generated — the stop-string exclusion
|
|
280
|
-
*
|
|
283
|
+
* Whose reply is being generated — the stop-string exclusion:
|
|
284
|
+
* the speaking character's own name must not stop
|
|
281
285
|
* their own reply. The host already preferred a payload value
|
|
282
286
|
* over the run scope's; this port is what lets a spec supply
|
|
283
287
|
* one, so the exclusion follows the next-speaker node's output
|
|
284
|
-
*
|
|
288
|
+
* instead of the pre-run guess.
|
|
285
289
|
*/
|
|
286
290
|
currentCharacterId: string;
|
|
287
291
|
/**
|
|
@@ -302,6 +306,10 @@ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
302
306
|
}, "core:oracle/generate-text@1"> & {
|
|
303
307
|
kind: 'oracle';
|
|
304
308
|
slots?: {
|
|
309
|
+
readonly loadout: {
|
|
310
|
+
readonly kind: 'loadout';
|
|
311
|
+
readonly quick: true;
|
|
312
|
+
};
|
|
305
313
|
readonly connection: {
|
|
306
314
|
readonly kind: "connection";
|
|
307
315
|
readonly quick: true;
|
|
@@ -335,7 +343,7 @@ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
335
343
|
/**
|
|
336
344
|
* ⚠ No `prompts` slot, and there was one — `system` and
|
|
337
345
|
* `postHistory`, "the written instructions sent with every request
|
|
338
|
-
* from this step" (culled 2026-09-16
|
|
346
|
+
* from this step" (culled 2026-09-16). No handler read it:
|
|
339
347
|
* the instructions reach the model INSIDE the assembled context,
|
|
340
348
|
* through `core:task/assemble@2`'s own `prompts` slot, and this
|
|
341
349
|
* node sends what it is handed on `context`. Every shipped spec
|
|
@@ -368,7 +376,7 @@ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
368
376
|
} | undefined;
|
|
369
377
|
}>;
|
|
370
378
|
/**
|
|
371
|
-
* Generate, with the tools on the wire
|
|
379
|
+
* Generate, with the tools on the wire — the native door.
|
|
372
380
|
*
|
|
373
381
|
* ## Why this is a second type rather than two ports on `generate-text`
|
|
374
382
|
*
|
|
@@ -418,6 +426,10 @@ export declare const generateWithTools: import("@serene-pub/sdk").Pinned<import(
|
|
|
418
426
|
}, "core:oracle/generate-with-tools@1"> & {
|
|
419
427
|
kind: 'oracle';
|
|
420
428
|
slots?: {
|
|
429
|
+
readonly loadout: {
|
|
430
|
+
readonly kind: 'loadout';
|
|
431
|
+
readonly quick: true;
|
|
432
|
+
};
|
|
421
433
|
readonly connection: {
|
|
422
434
|
readonly kind: "connection";
|
|
423
435
|
readonly quick: true;
|
|
@@ -525,6 +537,10 @@ export declare const generateJson: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
525
537
|
}, "core:oracle/generate-json@1"> & {
|
|
526
538
|
kind: 'oracle';
|
|
527
539
|
slots?: {
|
|
540
|
+
readonly loadout: {
|
|
541
|
+
readonly kind: 'loadout';
|
|
542
|
+
readonly quick: true;
|
|
543
|
+
};
|
|
528
544
|
readonly connection: {
|
|
529
545
|
readonly kind: "connection";
|
|
530
546
|
readonly quick: true;
|
|
@@ -590,6 +606,10 @@ export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub
|
|
|
590
606
|
}, "core:oracle/speak@1"> & {
|
|
591
607
|
kind: 'oracle';
|
|
592
608
|
slots?: {
|
|
609
|
+
readonly loadout: {
|
|
610
|
+
readonly kind: 'loadout';
|
|
611
|
+
readonly quick: true;
|
|
612
|
+
};
|
|
593
613
|
readonly connection: {
|
|
594
614
|
readonly kind: "connection";
|
|
595
615
|
readonly quick: true;
|
|
@@ -652,9 +672,38 @@ export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub
|
|
|
652
672
|
* `init` is declared now rather than added later: img2img changes nothing else
|
|
653
673
|
* about this contract, and retrofitting a port onto a published type costs a
|
|
654
674
|
* version bump for every spec pinning it.
|
|
675
|
+
*
|
|
676
|
+
* ## Widened in place (2026-10-12)
|
|
677
|
+
*
|
|
678
|
+
* Additive, so still `@1` — every new port is optional and every new param
|
|
679
|
+
* has a default that reproduces the old behaviour; the descriptor hash moves.
|
|
680
|
+
*
|
|
681
|
+
* - `references` — images the output should RESEMBLE (a likeness). Not
|
|
682
|
+
* `init` (the starting canvas) and not `mask` (where to paint): three
|
|
683
|
+
* different wire fields on every backend that has them.
|
|
684
|
+
* - `series` — the pictures wanted, each `{ key, vars }`. The prompt rows
|
|
685
|
+
* render once per item with `vars` in scope; every media item out carries
|
|
686
|
+
* its `key`. How many CALLS that is, is the host's packing (loop, batch,
|
|
687
|
+
* keyed graph) from the pair's drawing sheet — never the spec's.
|
|
688
|
+
* - `orientation` swaps the longer edge of the sampling's size; `free`
|
|
689
|
+
* takes it as-is.
|
|
690
|
+
* - `cutOut` asks for a transparent background: native where the pair
|
|
691
|
+
* draws one, else the media is flagged for the cut-out task
|
|
692
|
+
* (`native-or-task`), or the bind refuses (`native-only`).
|
|
693
|
+
* - `references: required` refuses a pair that takes no reference image;
|
|
694
|
+
* `preferred` (default) runs anyway, reports `references` as ignored, and
|
|
695
|
+
* says so on the action's form before the run.
|
|
696
|
+
*
|
|
697
|
+
* `requires` stays `[text->image]`: `requires` is a static list, so the gate
|
|
698
|
+
* for reference images is the drawing sheet, read at bind, not a transform.
|
|
655
699
|
* @experimental
|
|
656
700
|
*/
|
|
657
701
|
export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
702
|
+
/**
|
|
703
|
+
* Each item is a `MediaRef` plus `key` — the series item it was
|
|
704
|
+
* drawn for (`"1"` without a series). Several items may share a
|
|
705
|
+
* key (variants); an item with no key is surplus the host kept.
|
|
706
|
+
*/
|
|
658
707
|
main: string;
|
|
659
708
|
media: string;
|
|
660
709
|
image: string;
|
|
@@ -662,11 +711,21 @@ export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
662
711
|
}, {
|
|
663
712
|
prompt: string;
|
|
664
713
|
negative: string;
|
|
665
|
-
/**
|
|
714
|
+
/** The starting canvas, for an edit (img2img). Not a reference. */
|
|
666
715
|
init: string;
|
|
716
|
+
/** Where to paint, for inpainting. Absent edits the whole frame. */
|
|
717
|
+
mask: string;
|
|
718
|
+
/** Images the output should resemble — a likeness. Not `init`. */
|
|
719
|
+
references: string;
|
|
720
|
+
/** The pictures wanted, each `{ key, vars }` (`ImageSeriesItemV1`). */
|
|
721
|
+
series: string;
|
|
667
722
|
}, "core:oracle/generate-image@1"> & {
|
|
668
723
|
kind: 'oracle';
|
|
669
724
|
slots?: {
|
|
725
|
+
readonly loadout: {
|
|
726
|
+
readonly kind: 'loadout';
|
|
727
|
+
readonly quick: true;
|
|
728
|
+
};
|
|
670
729
|
readonly connection: {
|
|
671
730
|
readonly kind: "connection";
|
|
672
731
|
readonly quick: true;
|
|
@@ -685,6 +744,16 @@ export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
685
744
|
readonly shape: string;
|
|
686
745
|
readonly description: "Steps, CFG, size, seed — the settings every image backend shares.";
|
|
687
746
|
};
|
|
747
|
+
/**
|
|
748
|
+
* 🚧 The graph a template-payload pair draws with (a ComfyUI
|
|
749
|
+
* workflow). Optional: flat dialects
|
|
750
|
+
* ignore it, and the host's bind guard requires it only when the
|
|
751
|
+
* resolved pair's drawing sheet says `payload: 'template'`.
|
|
752
|
+
*/
|
|
753
|
+
readonly workflow: {
|
|
754
|
+
readonly kind: "workflow";
|
|
755
|
+
readonly description: "Which ComfyUI workflow this step draws with, when its image server runs workflows.";
|
|
756
|
+
};
|
|
688
757
|
readonly prompts: {
|
|
689
758
|
readonly kind: "prompts";
|
|
690
759
|
readonly quick: true;
|
|
@@ -711,7 +780,131 @@ export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
711
780
|
readonly params: {
|
|
712
781
|
readonly kind: "parameters";
|
|
713
782
|
readonly schema: {
|
|
714
|
-
streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
|
|
783
|
+
readonly streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
|
|
784
|
+
readonly orientation: {
|
|
785
|
+
readonly type: "enum";
|
|
786
|
+
readonly of: readonly ["free", "square", "portrait", "landscape"];
|
|
787
|
+
readonly members: readonly [{
|
|
788
|
+
readonly key: "free";
|
|
789
|
+
readonly label: {
|
|
790
|
+
readonly en: "As set";
|
|
791
|
+
};
|
|
792
|
+
readonly description: {
|
|
793
|
+
readonly en: "Takes the sampling's width and height as they are.";
|
|
794
|
+
};
|
|
795
|
+
}, {
|
|
796
|
+
readonly key: "square";
|
|
797
|
+
readonly label: {
|
|
798
|
+
readonly en: "Square";
|
|
799
|
+
};
|
|
800
|
+
readonly description: {
|
|
801
|
+
readonly en: "Both edges become the shorter of the two.";
|
|
802
|
+
};
|
|
803
|
+
}, {
|
|
804
|
+
readonly key: "portrait";
|
|
805
|
+
readonly label: {
|
|
806
|
+
readonly en: "Portrait";
|
|
807
|
+
};
|
|
808
|
+
readonly description: {
|
|
809
|
+
readonly en: "Taller than wide: the longer edge is the height.";
|
|
810
|
+
};
|
|
811
|
+
}, {
|
|
812
|
+
readonly key: "landscape";
|
|
813
|
+
readonly label: {
|
|
814
|
+
readonly en: "Landscape";
|
|
815
|
+
};
|
|
816
|
+
readonly description: {
|
|
817
|
+
readonly en: "Wider than tall: the longer edge is the width.";
|
|
818
|
+
};
|
|
819
|
+
}];
|
|
820
|
+
readonly default: "free";
|
|
821
|
+
readonly description: "Which way up the picture is drawn. As set takes the sampling's size unchanged.";
|
|
822
|
+
};
|
|
823
|
+
readonly cutOut: {
|
|
824
|
+
readonly type: "enum";
|
|
825
|
+
readonly of: readonly ["off", "native-or-task", "native-only"];
|
|
826
|
+
readonly members: readonly [{
|
|
827
|
+
readonly key: "off";
|
|
828
|
+
readonly label: {
|
|
829
|
+
readonly en: "Off";
|
|
830
|
+
};
|
|
831
|
+
readonly description: {
|
|
832
|
+
readonly en: "Keeps the background the model draws.";
|
|
833
|
+
};
|
|
834
|
+
}, {
|
|
835
|
+
readonly key: "native-or-task";
|
|
836
|
+
readonly label: {
|
|
837
|
+
readonly en: "Transparent when possible";
|
|
838
|
+
};
|
|
839
|
+
readonly description: {
|
|
840
|
+
readonly en: "Asks the model for a transparent background, or cuts one out afterwards when it cannot.";
|
|
841
|
+
};
|
|
842
|
+
}, {
|
|
843
|
+
readonly key: "native-only";
|
|
844
|
+
readonly label: {
|
|
845
|
+
readonly en: "Transparent from the model";
|
|
846
|
+
};
|
|
847
|
+
readonly description: {
|
|
848
|
+
readonly en: "Only runs on a model that draws a transparent background itself.";
|
|
849
|
+
};
|
|
850
|
+
}];
|
|
851
|
+
readonly default: "off";
|
|
852
|
+
readonly description: "Whether the picture needs a transparent background, and where it may come from.";
|
|
853
|
+
};
|
|
854
|
+
readonly references: {
|
|
855
|
+
readonly type: "enum";
|
|
856
|
+
readonly of: readonly ["preferred", "required"];
|
|
857
|
+
readonly members: readonly [{
|
|
858
|
+
readonly key: "preferred";
|
|
859
|
+
readonly label: {
|
|
860
|
+
readonly en: "Preferred";
|
|
861
|
+
};
|
|
862
|
+
readonly description: {
|
|
863
|
+
readonly en: "Runs on a model that can't take a reference image, from the prompt alone, and says so first.";
|
|
864
|
+
};
|
|
865
|
+
}, {
|
|
866
|
+
readonly key: "required";
|
|
867
|
+
readonly label: {
|
|
868
|
+
readonly en: "Required";
|
|
869
|
+
};
|
|
870
|
+
readonly description: {
|
|
871
|
+
readonly en: "Only runs on a model that takes reference images.";
|
|
872
|
+
};
|
|
873
|
+
}];
|
|
874
|
+
readonly default: "preferred";
|
|
875
|
+
readonly description: "What happens when the model cannot take the reference images wired to this step.";
|
|
876
|
+
};
|
|
877
|
+
/**
|
|
878
|
+
* 🚧 One seed for the whole step:
|
|
879
|
+
* `per-run` draws a seed once when the sampling's
|
|
880
|
+
* seed is random and sends it with every call, so a
|
|
881
|
+
* series drawn on an SD-class model coheres. A sampling
|
|
882
|
+
* that fixes its own seed keeps it. Models that ignore
|
|
883
|
+
* seeds ignore this too.
|
|
884
|
+
*/
|
|
885
|
+
readonly seed: {
|
|
886
|
+
readonly type: "enum";
|
|
887
|
+
readonly of: readonly ["as-set", "per-run"];
|
|
888
|
+
readonly members: readonly [{
|
|
889
|
+
readonly key: "as-set";
|
|
890
|
+
readonly label: {
|
|
891
|
+
readonly en: "As set";
|
|
892
|
+
};
|
|
893
|
+
readonly description: {
|
|
894
|
+
readonly en: "Uses the sampling's seed: random stays random for every picture.";
|
|
895
|
+
};
|
|
896
|
+
}, {
|
|
897
|
+
readonly key: "per-run";
|
|
898
|
+
readonly label: {
|
|
899
|
+
readonly en: "Same for every picture";
|
|
900
|
+
};
|
|
901
|
+
readonly description: {
|
|
902
|
+
readonly en: "Picks one seed per run and draws every picture with it, so a set looks alike.";
|
|
903
|
+
};
|
|
904
|
+
}];
|
|
905
|
+
readonly default: "as-set";
|
|
906
|
+
readonly description: "Whether every picture this step draws shares one seed.";
|
|
907
|
+
};
|
|
715
908
|
};
|
|
716
909
|
};
|
|
717
910
|
} | undefined;
|
|
@@ -930,6 +1123,10 @@ export declare const summarizeBatch: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
930
1123
|
}, "core:oracle/summarize-batch@1"> & {
|
|
931
1124
|
kind: 'oracle';
|
|
932
1125
|
slots?: {
|
|
1126
|
+
readonly loadout: {
|
|
1127
|
+
readonly kind: 'loadout';
|
|
1128
|
+
readonly quick: true;
|
|
1129
|
+
};
|
|
933
1130
|
readonly connection: {
|
|
934
1131
|
readonly kind: "connection";
|
|
935
1132
|
readonly quick: true;
|
|
@@ -965,6 +1162,10 @@ export declare const summarizeSynth: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
965
1162
|
}, "core:oracle/summarize-synth@1"> & {
|
|
966
1163
|
kind: 'oracle';
|
|
967
1164
|
slots?: {
|
|
1165
|
+
readonly loadout: {
|
|
1166
|
+
readonly kind: 'loadout';
|
|
1167
|
+
readonly quick: true;
|
|
1168
|
+
};
|
|
968
1169
|
readonly connection: {
|
|
969
1170
|
readonly kind: "connection";
|
|
970
1171
|
readonly quick: true;
|
|
@@ -999,6 +1200,10 @@ export declare const nameEntry: import("@serene-pub/sdk").Pinned<import("@serene
|
|
|
999
1200
|
}, "core:oracle/name-entry@1"> & {
|
|
1000
1201
|
kind: 'oracle';
|
|
1001
1202
|
slots?: {
|
|
1203
|
+
readonly loadout: {
|
|
1204
|
+
readonly kind: 'loadout';
|
|
1205
|
+
readonly quick: true;
|
|
1206
|
+
};
|
|
1002
1207
|
readonly connection: {
|
|
1003
1208
|
readonly kind: "connection";
|
|
1004
1209
|
readonly quick: true;
|
|
@@ -1039,6 +1244,10 @@ export declare const extractCast: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
1039
1244
|
}, "core:oracle/extract-cast@1"> & {
|
|
1040
1245
|
kind: 'oracle';
|
|
1041
1246
|
slots?: {
|
|
1247
|
+
readonly loadout: {
|
|
1248
|
+
readonly kind: 'loadout';
|
|
1249
|
+
readonly quick: true;
|
|
1250
|
+
};
|
|
1042
1251
|
readonly connection: {
|
|
1043
1252
|
readonly kind: "connection";
|
|
1044
1253
|
readonly quick: true;
|
|
@@ -1092,6 +1301,10 @@ export declare const graphNodeResolution: import("@serene-pub/sdk").Pinned<impor
|
|
|
1092
1301
|
}, string> & {
|
|
1093
1302
|
kind: 'oracle';
|
|
1094
1303
|
slots?: {
|
|
1304
|
+
readonly loadout: {
|
|
1305
|
+
readonly kind: 'loadout';
|
|
1306
|
+
readonly quick: true;
|
|
1307
|
+
};
|
|
1095
1308
|
readonly connection: {
|
|
1096
1309
|
readonly kind: "connection";
|
|
1097
1310
|
readonly quick: true;
|
|
@@ -1124,6 +1337,10 @@ export declare const graphPreFilter: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
1124
1337
|
}, string> & {
|
|
1125
1338
|
kind: 'oracle';
|
|
1126
1339
|
slots?: {
|
|
1340
|
+
readonly loadout: {
|
|
1341
|
+
readonly kind: 'loadout';
|
|
1342
|
+
readonly quick: true;
|
|
1343
|
+
};
|
|
1127
1344
|
readonly connection: {
|
|
1128
1345
|
readonly kind: "connection";
|
|
1129
1346
|
readonly quick: true;
|
|
@@ -1156,6 +1373,10 @@ export declare const graphPerspective: import("@serene-pub/sdk").Pinned<import("
|
|
|
1156
1373
|
}, string> & {
|
|
1157
1374
|
kind: 'oracle';
|
|
1158
1375
|
slots?: {
|
|
1376
|
+
readonly loadout: {
|
|
1377
|
+
readonly kind: 'loadout';
|
|
1378
|
+
readonly quick: true;
|
|
1379
|
+
};
|
|
1159
1380
|
readonly connection: {
|
|
1160
1381
|
readonly kind: "connection";
|
|
1161
1382
|
readonly quick: true;
|
|
@@ -1188,6 +1409,10 @@ export declare const graphNodeDescription: import("@serene-pub/sdk").Pinned<impo
|
|
|
1188
1409
|
}, string> & {
|
|
1189
1410
|
kind: 'oracle';
|
|
1190
1411
|
slots?: {
|
|
1412
|
+
readonly loadout: {
|
|
1413
|
+
readonly kind: 'loadout';
|
|
1414
|
+
readonly quick: true;
|
|
1415
|
+
};
|
|
1191
1416
|
readonly connection: {
|
|
1192
1417
|
readonly kind: "connection";
|
|
1193
1418
|
readonly quick: true;
|
|
@@ -1220,6 +1445,10 @@ export declare const graphStateDetection: import("@serene-pub/sdk").Pinned<impor
|
|
|
1220
1445
|
}, string> & {
|
|
1221
1446
|
kind: 'oracle';
|
|
1222
1447
|
slots?: {
|
|
1448
|
+
readonly loadout: {
|
|
1449
|
+
readonly kind: 'loadout';
|
|
1450
|
+
readonly quick: true;
|
|
1451
|
+
};
|
|
1223
1452
|
readonly connection: {
|
|
1224
1453
|
readonly kind: "connection";
|
|
1225
1454
|
readonly quick: true;
|
|
@@ -1243,4 +1472,64 @@ export declare const graphStateDetection: import("@serene-pub/sdk").Pinned<impor
|
|
|
1243
1472
|
};
|
|
1244
1473
|
} | undefined;
|
|
1245
1474
|
}>;
|
|
1475
|
+
/**
|
|
1476
|
+
* 🚧 **Describe image** — a model that reads pictures is shown one or more
|
|
1477
|
+
* images and asked one written question about them; its answer is the text
|
|
1478
|
+
* out (*Describe from image*, 2026-10-12).
|
|
1479
|
+
*
|
|
1480
|
+
* Not `generate-text`: that node sends an assembled TURN (a transcript, a
|
|
1481
|
+
* speaker, a reply being continued) and its connection requires only
|
|
1482
|
+
* `text->text`, so it resolves to the instance's chat default. This node
|
|
1483
|
+
* sends no transcript — one instruction plus the images — and its connection
|
|
1484
|
+
* REQUIRES `text+image->text`, so an unset slot resolves to the default of
|
|
1485
|
+
* that job (the model that reads pictures), never to the chat model.
|
|
1486
|
+
*
|
|
1487
|
+
* Not a caption either: `caption` is `generate-image`'s out-port (the text a
|
|
1488
|
+
* picture is posted with). This node's answer is whatever the instruction
|
|
1489
|
+
* asks for — a tag list of a person's look, for the likeness helper.
|
|
1490
|
+
*
|
|
1491
|
+
* The instruction is the `prompts` slot's `instruction` field (a prompt
|
|
1492
|
+
* row), so an admin rewrites the question in Admin › Pipelines.
|
|
1493
|
+
* @experimental
|
|
1494
|
+
*/
|
|
1495
|
+
export declare const describeImage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1496
|
+
main: string;
|
|
1497
|
+
text: string;
|
|
1498
|
+
}, {
|
|
1499
|
+
/** The pictures to read, in order. Empty refuses: there is nothing to describe. */
|
|
1500
|
+
images: string;
|
|
1501
|
+
}, "core:oracle/describe-image@1"> & {
|
|
1502
|
+
kind: 'oracle';
|
|
1503
|
+
slots?: {
|
|
1504
|
+
readonly loadout: {
|
|
1505
|
+
readonly kind: 'loadout';
|
|
1506
|
+
readonly quick: true;
|
|
1507
|
+
};
|
|
1508
|
+
readonly connection: {
|
|
1509
|
+
readonly kind: "connection";
|
|
1510
|
+
readonly quick: true;
|
|
1511
|
+
readonly shape: string;
|
|
1512
|
+
/** A model that reads images — the job default this resolves to when unset. */
|
|
1513
|
+
readonly requires: readonly ["text+image->text"];
|
|
1514
|
+
readonly description: "Which model reads the picture. It must be one that can see images.";
|
|
1515
|
+
};
|
|
1516
|
+
readonly sampling: {
|
|
1517
|
+
readonly kind: "sampling";
|
|
1518
|
+
readonly quick: true;
|
|
1519
|
+
readonly shape: string;
|
|
1520
|
+
readonly description: "The sampling settings used for this request.";
|
|
1521
|
+
};
|
|
1522
|
+
readonly prompts: {
|
|
1523
|
+
readonly kind: "prompts";
|
|
1524
|
+
readonly quick: true;
|
|
1525
|
+
readonly facet: "prompts";
|
|
1526
|
+
readonly description: "The question the model is asked about the picture.";
|
|
1527
|
+
readonly fields: {
|
|
1528
|
+
readonly instruction: {
|
|
1529
|
+
readonly type: "text";
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
} | undefined;
|
|
1534
|
+
}>;
|
|
1246
1535
|
//# sourceMappingURL=oracles.d.ts.map
|