@far-world-labs/verblets 0.6.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,9 +25,9 @@ Or use a `.env` file in your project root (loaded automatically via dotenv).
25
25
  Then initialize and call a function:
26
26
 
27
27
  ```js
28
- import { init, score } from '@far-world-labs/verblets';
28
+ import { init } from '@far-world-labs/verblets';
29
29
 
30
- init();
30
+ const { score } = init();
31
31
 
32
32
  const results = await score(
33
33
  ['reliability', 'performance', 'ease of use'],
@@ -35,18 +35,43 @@ const results = await score(
35
35
  );
36
36
  ```
37
37
 
38
- `init()` validates that an API key is present and sets up internal services. Call it once at startup. It accepts optional configuration:
38
+ `init()` validates that an API key is present, creates a fresh model service, and returns an object of wrapped functions with services pre-injected. Destructure the functions you need:
39
39
 
40
40
  ```js
41
- init({
41
+ const { filter, map, bool, llm } = init({
42
42
  embed: true, // enable local embedding model
43
43
  redis: redisClient, // pre-configured Redis client for caching
44
- modelOverrides: { // override default model selection
45
- modelName: 'claude-sonnet-4-20250514',
44
+ models: { // extend the model catalog (additive)
45
+ 'my-llama': { provider: 'openai', apiUrl: 'http://localhost:11434/v1', endpoint: '/chat/completions', maxContextWindow: 8192, maxOutputTokens: 4096 },
46
+ },
47
+ rules: [ // override negotiation rules (first match wins)
48
+ { match: { sensitive: true, good: true }, use: 'my-llama' },
49
+ { match: { sensitive: true }, use: 'my-llama' },
50
+ { match: { reasoning: true }, use: 'claude-opus-4-6' },
51
+ { match: { cheap: true, good: false }, use: 'gpt-4.1-nano' },
52
+ { use: 'gpt-4.1-mini' }, // catch-all default
53
+ ],
54
+ policy: { // base policy for all LLM calls
55
+ temperature: () => 0.7,
46
56
  },
47
57
  });
48
58
  ```
49
59
 
60
+ Each `init()` call creates an isolated instance with its own ModelService, so two instances do not share model configuration or caches:
61
+
62
+ ```js
63
+ const a = init({ rules: [{ use: 'gpt-4.1' }] });
64
+ const b = init({ rules: [{ use: 'claude-sonnet-4-20250514' }] });
65
+ await a.filter(items, 'urgent'); // uses gpt-4.1
66
+ await b.filter(items, 'urgent'); // uses claude-sonnet-4-20250514
67
+ ```
68
+
69
+ The library selects models through ordered pattern-matching rules. Each rule has an optional `match` (capability conditions) and a `use` (model name). The first matching rule wins. A rule's `match` maps capabilities to `true` (must be requested) or `false` (must NOT be requested). Unmentioned capabilities are don't-care.
70
+
71
+ Consumers express intent as capability objects: `{ fast: true }`, `{ reasoning: true }`, `{ sensitive: true, good: true }`. The value `'prefer'` acts as a soft preference that falls through gracefully when unavailable. Capabilities: `fast`, `cheap`, `good`, `reasoning`, `multi`, `sensitive`.
72
+
73
+ Sensitive and reasoning capabilities are gated by default — they only match rules that explicitly mention them, preventing sensitive data from reaching cloud models or expensive reasoning models from being selected without opt-in.
74
+
50
75
  Without Redis, caching is disabled and the library operates statelessly.
51
76
 
52
77
  ## Repository Guide
@@ -55,6 +80,7 @@ Without Redis, caching is disabled and the library operates statelessly.
55
80
 
56
81
  - [Chains](./src/chains/) - Prompt chains and algorithms based on LLMs
57
82
  - [Verblets](./src/verblets/) - Core AI utility functions. At most a single LLM call, no prompt chains.
83
+ - [Embedding](./src/embed/) - Local embedding, vector scoring, and semantic state construction
58
84
  - [Library Helpers](./src/lib/) - Utility functions and wrappers
59
85
  - [Prompts](./src/prompts/) - Reusable prompt templates
60
86
  - [JSON Schemas](./src/json-schemas/) - Data validation schemas
@@ -77,7 +103,6 @@ Math chains transform values using conceptual reasoning and subjective judgment
77
103
 
78
104
  - [scale](./src/chains/scale) - Convert qualitative descriptions to numeric values using a specification generator for consistency across invocations
79
105
  - [calibrate](./src/chains/calibrate) - Build and apply specification-based classifiers with adjustable sensitivity
80
- - [probe-scan](./src/chains/probe-scan) - Scan items for relevance using embedding similarity with configurable detection thresholds
81
106
 
82
107
  ### Lists
83
108
 
@@ -142,7 +167,6 @@ Retrieval utilities transform queries and prepare text for search and RAG (retri
142
167
  - [embed-step-back](./src/verblets/embed-step-back) - Broaden queries to underlying concepts and principles
143
168
  - [embed-subquestions](./src/verblets/embed-subquestions) - Split complex queries into atomic sub-questions
144
169
  - [embed-rewrite-to-output-doc](./src/verblets/embed-rewrite-to-output-doc) - Rewrite a query as if it were the answer document
145
- - [embed-score](./src/lib/embed-score) - Score and rank items against a query using embedding similarity
146
170
 
147
171
 
148
172
  ### Utility Operations
@@ -167,18 +191,81 @@ Codebase utilities analyze, test, and improve code quality using AI reasoning.
167
191
  - [test](./src/chains/test) - Generate test cases covering happy paths, edge cases, and error conditions
168
192
 
169
193
 
194
+ ## Instruction Bundles
195
+
196
+ All chains and verblets accept instructions as a string or an object with named context. Unknown keys become XML context prepended to the prompt; known keys override internal derivation (skipping expensive LLM calls). This enables pipeline patterns where one chain's derived artifacts feed the next.
197
+
198
+ ```js
199
+ // String — unchanged behavior
200
+ const scores = await score(articles, 'Rate persuasiveness 0-10');
201
+
202
+ // Object — text plus named context
203
+ const scores = await score(articles, {
204
+ text: 'Rate persuasiveness 0-10',
205
+ domain: 'Political campaign ads',
206
+ });
207
+
208
+ // Known key — reuse a spec from a prior chain, skipping spec generation
209
+ const scores = await score(articles, {
210
+ text: 'Rate persuasiveness 0-10',
211
+ spec: priorSpec,
212
+ });
213
+ ```
214
+
215
+ Capture derived artifacts for reuse with `collectEventsWith`:
216
+
217
+ ```js
218
+ import { collectEventsWith, extractEntities } from '@far-world-labs/verblets';
219
+
220
+ const [entities, { specification }] = await collectEventsWith(
221
+ (onProgress) => extractEntities(doc, 'Extract organizations', { onProgress }),
222
+ 'specification',
223
+ );
224
+
225
+ // Reuse — skips the spec generation LLM call
226
+ const more = await extractEntities(doc2, { text: 'Extract organizations', spec: specification });
227
+ ```
228
+
229
+ Each function exports a `knownTexts` property listing the keys it recognizes.
230
+
231
+ ## Embedding
232
+
233
+ Embedding utilities provide local vector embedding and a semantic state construction system for building vector representations of structured objects.
234
+
235
+ ### Primitives
236
+
237
+ - [embed](./src/embed) - Local embedding: `embed`, `embedBatch`, `embedChunked`, `embedWarmup`, `embedImage`, `embedImageBatch`
238
+ - [normalize-text](./src/embed/normalize-text) - Normalize text (NFC, whitespace, line endings) for consistent embedding
239
+ - [neighbor-chunks](./src/embed/neighbor-chunks) - Expand retrieved chunks with neighboring context
240
+ - [score-chunks-by-probes](./src/embed/score-chunks-by-probes) - Score chunk×probe pairs by cosine similarity, sorted by score
241
+
242
+ ### Object Construction
243
+
244
+ Build multi-projection vector states from text sources using LLM-driven fragmentation and local embedding.
245
+
246
+ - [embed-object-define](./src/chains/embed-object-define) - Discover projection schema from example texts
247
+ - [embed-object-fragment](./src/chains/embed-object-fragment) - Fragment source texts into projection-tagged pieces
248
+ - [embed-object-refine](./src/chains/embed-object-refine) - Refine schema using a study set of selected states
249
+ - [embed-object](./src/embed/embed-object) - Embed fragments into multi-projection vector states
250
+ - [shape-state](./src/embed/shape-state) - Clone and scale projection vectors within states
251
+ - [plan-read](./src/embed/plan-read) - Construct read plans from schema defaults or overrides
252
+ - [read](./src/embed/read) - Extract scalar property values from states (`read` and `readDetails`)
253
+ - [match](./src/embed/match) - Weighted cosine matching across projection vectors
254
+
170
255
  ## Library Helpers
171
256
 
172
257
  Low-level utilities that support chains and verblets. Most are synchronous and make no LLM calls.
173
258
 
174
259
  - [llm](./src/lib/llm) - Core LLM wrapper with capability-based model selection and structured output
175
- - [context](./src/lib/context) - Config resolution: `getOption`, `getOptions`, `withPolicy`, `scopeOperation`
260
+ - [context](./src/lib/context) - Config resolution: `nameStep`, `getOption`, `getOptions`, `withPolicy`
261
+ - [instruction](./src/lib/instruction) - Instruction normalization: `resolveTexts`, `resolveArgs`, `normalizeInstruction`
262
+ - [context-budget](./src/lib/context-budget) - XML context assembler: collect named entries, wrap, join
263
+ - [collect-events-with](./src/lib/collect-events-with) - Wrap a chain call and capture derived artifacts from progress events
264
+ - [template-builder](./src/lib/template-builder) - Immutable tagged-template prompt builder with named slots
176
265
  - [prompt-cache](./src/lib/prompt-cache) - Cache LLM prompts and responses
177
266
  - [retry](./src/lib/retry) - Config-aware async retry
178
267
  - [parallel-batch](./src/lib/parallel-batch) - Parallel execution with concurrency limits
179
268
  - [ring-buffer](./src/lib/ring-buffer) - Circular buffer for running LLMs on streams of data
180
- - [embed-normalize-text](./src/lib/embed-normalize-text) - Normalize text (NFC, whitespace, line endings) for consistent embedding
181
- - [embed-neighbor-chunks](./src/lib/embed-neighbor-chunks) - Expand retrieved chunks with neighboring context
182
269
  - [progress](./src/lib/progress) - Progress event system: lifecycle tracking, batch progress, event emission
183
270
 
184
271
  ## Contributing
@@ -1,214 +1,214 @@
1
- import { cM as a } from "./shared-BSAzZOFX.js";
2
- import { cJ as i, P as r, L as c, R as n, aY as o, N as l, M as b, aw as p, Q as u, bo as m, br as g, cc as d, bI as I, bD as S, bE as T, cb as y, a7 as h, J as R, ag as v, a6 as C, be as E, z as f, aC as M, aM as F, bG as P, p as B, aV as L, bF as N, ad as x, H as A, I as O, aU as k, bB as w, a9 as D, aa as G, cr as z, c5 as V, t as U, aW as W, c3 as _, aX as q, cs as K, bt as Q, cL as Y, m as j, aZ as J, ct as H, c7 as X, K as Z, S as $, ah as aa, c as sa, bf as ea, A as ta, aN as ia, aO as ra, Z as ca, q as na, c6 as oa, r as la, X as ba, ab as pa, ac as ua, ax as ma, a_ as ga, b0 as da, b2 as Ia, b3 as Sa, bO as Ta, c1 as ya, bP as ha, b$ as Ra, bQ as va, c0 as Ca, bV as Ea, b_ as fa, bZ as Ma, bU as Fa, bY as Pa, bT as Ba, c2 as La, bW as Na, bX as xa, bR as Aa, ae as Oa, aj as ka, al as wa, am as Da, ai as Ga, ak as za, af as Va, a4 as Ua, a5 as Wa, _ as _a, bH as qa, an as Ka, ci as Qa, b4 as Ya, ao as ja, b5 as Ja, ap as Ha, au as Xa, cI as Za, a$ as $a, V as as, W as ss, g as es, aq as ts, ar as is, cK as rs, bJ as cs, as as ns, b6 as os, cu as ls, at as bs, av as ps, ay as us, r as ms, bK as gs, bL as ds, az as Is, b7 as Ss, b8 as Ts, n as ys, c8 as hs, u as Rs, v as vs, T as Cs, U as Es, cv as fs, c9 as Ms, ca as Fs, cq as Ps, bg as Bs, bh as Ls, b9 as Ns, bL as xs, cw as As, cC as Os, ba as ks, G as ws, cF as Ds, cG as Gs, cD as zs, bb as Vs, c4 as Us, d as Ws, bd as _s, bc as qs, bj as Ks, bl as Qs, bm as Ys, bi as js, bk as Js, cH as Hs, f as Xs, ce as Zs, x as $s, C as ae, E as se, F as ee, B as te, D as ie, y as re, bn as ce, cE as ne, bA as oe, s as le, aA as be, aF as pe, aH as ue, aI as me, aD as ge, aE as de, aG as Ie, aB as Se, bM as Te, o as ye, bS as he, bN as Re, cB as ve, b1 as Ce, bp as Ee, bC as fe, aJ as Me, cx as Fe, bq as Pe, ck as Be, cj as Le, a8 as Ne, aL as xe, bs as Ae, aK as Oe, aQ as ke, aS as we, aT as De, aP as Ge, aR as ze, a0 as Ve, a1 as Ue, $ as We, a3 as _e, cd as qe, bu as Ke, bv as Qe, cl as Ye, cn as je, co as Je, cm as He, cp as Xe, bw as Ze, bx as $e, cy as at, a2 as st, Y as et, cz as tt, bz as it, by as rt, cf as ct, cg as nt, ch as ot, w as lt, cA as bt } from "./shared-BSAzZOFX.js";
1
+ import { cM as a } from "./shared-Dc73O74G.js";
2
+ import { cJ as c, L as i, I as r, M as n, bX as o, aI as l, bV as b, aE as m, K as p, D as u, J as d, cH as g, bZ as h, b_ as S, an as T, cG as v, c0 as y, e as E, c1 as I, Q as C, a_ as R, b$ as f, b1 as B, bY as M, bP as P, bi as O, bd as x, be as L, bO as N, a4 as A, a3 as k, bg as D, u as F, aB as w, bf as z, aa as j, F as V, H as W, G as K, aA as U, bb as _, a6 as G, a7 as Q, co as Y, bJ as q, x as J, bU as H, aC as X, bH as Z, aD as $, cp as aa, b3 as sa, cL as ea, t as ta, aF as ca, cq as ia, bL as ra, N as na, c as oa, W as la, v as ba, bK as ma, r as pa, U as ua, a8 as da, a9 as ga, ao as ha, aG as Sa, aJ as Ta, aL as va, bo as ya, bF as Ea, bp as Ia, bD as Ca, bq as Ra, bt as fa, bu as Ba, bE as Ma, bx as Pa, bC as Oa, bB as xa, cE as La, bw as Na, bA as Aa, bG as ka, by as Da, bz as Fa, br as wa, ad as za, ac as ja, a1 as Va, a2 as Wa, X as Ka, bh as Ua, ae as _a, ab as Ga, cf as Qa, aU as Ya, aM as qa, af as Ja, aN as Ha, c8 as Xa, ag as Za, c9 as $a, al as as, aH as ss, S as es, T as ts, g as cs, ah as is, ai as rs, cb as ns, cK as os, bj as ls, aj as bs, aO as ms, j as ps, cr as us, ak as ds, am as gs, ap as hs, r as Ss, bk as Ts, bl as vs, aq as ys, c7 as Es, ay as Is, aP as Cs, aQ as Rs, n as fs, bR as Bs, bM as Ms, y as Ps, z as Os, P as xs, R as Ls, cs as Ns, c3 as As, c4 as ks, c6 as Ds, c2 as Fs, c5 as ws, p as zs, bN as js, cn as Vs, aW as Ws, aX as Ks, aR as Us, bl as _s, ct as Gs, cz as Qs, aS as Ys, cC as qs, cD as Js, cA as Hs, aT as Xs, bI as Zs, f as $s, ca as ae, aY as se, aV as ee, h as te, cI as ce, cF as ie, k as re, l as ne, bW as oe, C as le, A as be, B as me, aZ as pe, cB as ue, ba as de, s as ge, ar as he, bv as Se, au as Te, at as ve, as as ye, bm as Ee, bs as Ie, bn as Ce, cy as Re, aK as fe, bT as Be, a$ as Me, bc as Pe, av as Oe, cu as xe, b0 as Le, ch as Ne, cg as Ae, a5 as ke, az as De, aw as Fe, ax as we, b2 as ze, Z as je, _ as Ve, Y as We, a0 as Ke, bS as Ue, bQ as _e, b4 as Ge, b5 as Qe, ci as Ye, ck as qe, cl as Je, cj as He, cm as Xe, b6 as Ze, b7 as $e, cv as at, $ as st, V as et, cw as tt, b9 as ct, b8 as it, cc as rt, cd as nt, ce as ot, w as lt, cx as bt } from "./shared-Dc73O74G.js";
3
3
  a();
4
4
  export {
5
- i as CAPABILITY_KEYS,
6
- r as COMPLIANCE,
7
- c as CONTEXT_KINDS,
5
+ c as CAPABILITY_KEYS,
6
+ i as COMPLIANCE,
7
+ r as CONTEXT_KINDS,
8
8
  n as COST_POSTURE,
9
- o as Conversation,
10
- l as DOMAIN,
11
- b as ENVIRONMENT,
12
- p as ListStyle,
13
- u as QUALITY_INTENT,
14
- m as SocraticMethod,
15
- g as SummaryMap,
16
- d as TimedAbortController,
17
- I as aiExpect,
18
- S as analyzeImage,
19
- T as analyzeImageMapDetail,
20
- y as anySignal,
21
- h as applyAllTargetingRules,
22
- R as applyCalibrate,
23
- v as applyEntities,
24
- C as applyFirstTargetingRule,
25
- E as applyRelations,
26
- f as applyScale,
27
- M as applyScore,
28
- F as applyTags,
29
- P as auto,
30
- B as bool,
31
- L as buildSeedGenerationPrompt,
32
- N as buildVisionPrompt,
33
- x as calculateStatistics,
34
- A as calibrate,
35
- O as calibrateSpec,
36
- k as categorySamples,
37
- w as causalFramePrompt,
38
- D as centralTendency,
39
- G as centralTendencyLines,
40
- z as chunk,
41
- V as chunkSentences,
42
- U as classify,
43
- W as collectTerms,
44
- _ as combinations,
45
- q as commonalities,
46
- K as compact,
47
- Q as computeTagStatistics,
48
- Y as config,
49
- j as constants,
50
- J as conversationTurnReduce,
51
- H as cosineSimilarity,
52
- X as createBatches,
53
- Z as createCalibratedClassifier,
54
- $ as createContextBuilder,
55
- aa as createEntityExtractor,
56
- sa as createProgressEmitter,
57
- ea as createRelationExtractor,
58
- ta as createScale,
59
- ia as createTagExtractor,
60
- ra as createTagger,
61
- ca as createTraceCollector,
62
- na as date,
63
- oa as debug,
64
- la as default,
65
- ba as descriptorToSchema,
66
- pa as detectPatterns,
67
- ua as detectThreshold,
68
- ma as determineStyle,
69
- ga as disambiguate,
70
- da as dismantle,
71
- Ia as dismantleFactory,
72
- Sa as documentShrink,
73
- Ta as embed,
74
- ya as embedAssembleSpan,
75
- ha as embedBatch,
76
- Ra as embedBuildIndex,
77
- va as embedChunked,
78
- Ca as embedMergeRanges,
79
- Ea as embedMultiQuery,
80
- fa as embedNeighborChunks,
81
- Ma as embedNormalizeText,
82
- Fa as embedRewriteQuery,
83
- Pa as embedRewriteToOutputDoc,
84
- Ba as embedScore,
85
- La as embedStandaloneSpan,
86
- Na as embedStepBack,
87
- xa as embedSubquestions,
88
- Aa as embedWarmup,
89
- Oa as entities,
90
- ka as entitiesFilterInstructions,
91
- wa as entitiesFindInstructions,
92
- Da as entitiesGroupInstructions,
93
- Ga as entitiesMapInstructions,
94
- za as entitiesReduceInstructions,
95
- Va as entitySpec,
96
- Ua as evaluateTargetingClause,
9
+ o as ChainEvent,
10
+ l as ChainTree,
11
+ b as ContextBudget,
12
+ m as Conversation,
13
+ p as DOMAIN,
14
+ u as DomainEvent,
15
+ d as ENVIRONMENT,
16
+ g as EmbeddingService,
17
+ h as Kind,
18
+ S as Level,
19
+ T as ListStyle,
20
+ v as ModelService,
21
+ y as ModelSource,
22
+ E as OpEvent,
23
+ I as OptionSource,
24
+ C as QUALITY_INTENT,
25
+ R as SocraticMethod,
26
+ f as StatusCode,
27
+ B as SummaryMap,
28
+ M as TelemetryEvent,
29
+ P as TimedAbortController,
30
+ O as aiExpect,
31
+ x as analyzeImage,
32
+ L as analyzeImageMapDetail,
33
+ N as anySignal,
34
+ A as applyAllTargetingRules,
35
+ k as applyFirstTargetingRule,
36
+ D as auto,
37
+ F as bool,
38
+ w as buildSeedGenerationPrompt,
39
+ z as buildVisionPrompt,
40
+ j as calculateStatistics,
41
+ V as calibrate,
42
+ W as calibrateInstructions,
43
+ K as calibrateSpec,
44
+ U as categorySamples,
45
+ _ as causalFramePrompt,
46
+ G as centralTendency,
47
+ Q as centralTendencyLines,
48
+ Y as chunk,
49
+ q as chunkSentences,
50
+ J as classify,
51
+ H as collectEventsWith,
52
+ X as collectTerms,
53
+ Z as combinations,
54
+ $ as commonalities,
55
+ aa as compact,
56
+ sa as computeTagStatistics,
57
+ ea as config,
58
+ ta as constants,
59
+ ca as conversationTurnReduce,
60
+ ia as cosineSimilarity,
61
+ ra as createBatches,
62
+ na as createContextBuilder,
63
+ oa as createProgressEmitter,
64
+ la as createTraceCollector,
65
+ ba as date,
66
+ ma as debug,
67
+ pa as default,
68
+ ua as descriptorToSchema,
69
+ da as detectPatterns,
70
+ ga as detectThreshold,
71
+ ha as determineStyle,
72
+ Sa as disambiguate,
73
+ Ta as dismantle,
74
+ va as documentShrink,
75
+ ya as embed,
76
+ Ea as embedAssembleSpan,
77
+ Ia as embedBatch,
78
+ Ca as embedBuildIndex,
79
+ Ra as embedChunked,
80
+ fa as embedImage,
81
+ Ba as embedImageBatch,
82
+ Ma as embedMergeRanges,
83
+ Pa as embedMultiQuery,
84
+ Oa as embedNeighborChunks,
85
+ xa as embedNormalizeText,
86
+ La as embedObject,
87
+ Na as embedRewriteQuery,
88
+ Aa as embedRewriteToOutputDoc,
89
+ ka as embedStandaloneSpan,
90
+ Da as embedStepBack,
91
+ Fa as embedSubquestions,
92
+ wa as embedWarmup,
93
+ za as entityInstructions,
94
+ ja as entitySpec,
95
+ Va as evaluateTargetingClause,
97
96
  Wa as evaluateTargetingRule,
98
- _a as eventToTrace,
99
- qa as expect,
100
- Ka as extractBlocks,
97
+ Ka as eventToTrace,
98
+ Ua as expect,
99
+ _a as extractBlocks,
100
+ Ga as extractEntities,
101
101
  Qa as extractJson,
102
- Ya as fillMissing,
103
- ja as filter,
104
- Ja as filterAmbiguous,
105
- Ha as find,
106
- Xa as generateList,
107
- Za as getCapabilities,
108
- $a as getMeanings,
109
- as as getOption,
110
- ss as getOptionDetail,
111
- es as getOptions,
112
- ts as glossary,
113
- is as group,
114
- rs as init,
115
- cs as intent,
116
- ns as intersections,
117
- os as join,
118
- ls as last,
119
- bs as list,
120
- ps as listBatch,
121
- us as listExpand,
122
- ms as llm,
123
- gs as llmLogger,
124
- ds as makePrompt,
125
- Is as map,
126
- Ss as name,
127
- Ts as nameSimilarTo,
128
- ys as nameStep,
129
- hs as normalizeLlm,
130
- Rs as number,
131
- vs as numberWithUnits,
132
- Cs as observeApplication,
133
- Es as observeProviders,
134
- fs as omit,
135
- Ms as parallel,
136
- Fs as parallelMap,
137
- Ps as parseLLMList,
138
- Bs as parseRDFLiteral,
139
- Ls as parseRelations,
140
- Ns as people,
141
- xs as phailForge,
142
- As as pick,
143
- Os as pipe,
144
- ks as popReference,
145
- ws as probeScan,
146
- Ds as promptCache,
147
- Gs as promptPiece,
148
- zs as prompts,
149
- Vs as questions,
150
- Us as rangeCombinations,
151
- Ws as reduce,
152
- _s as relationSpec,
153
- qs as relations,
154
- Ks as relationsFilterInstructions,
155
- Qs as relationsFindInstructions,
156
- Ys as relationsGroupInstructions,
157
- js as relationsMapInstructions,
158
- Js as relationsReduceInstructions,
159
- Hs as resolveModel,
160
- Xs as retry,
161
- Zs as ringBuffer,
162
- $s as scale,
163
- ae as scaleFilterInstructions,
164
- se as scaleFindInstructions,
165
- ee as scaleGroupInstructions,
166
- te as scaleMapInstructions,
167
- ie as scaleReduceInstructions,
168
- re as scaleSpec,
169
- ce as schemaOrg,
170
- ne as schemas,
171
- oe as scientificFramingPrompt,
172
- le as scopePhase,
173
- be as score,
174
- pe as scoreFilterInstructions,
175
- ue as scoreFindInstructions,
176
- me as scoreGroupInstructions,
177
- ge as scoreItem,
178
- de as scoreMapInstructions,
179
- Ie as scoreReduceInstructions,
180
- Se as scoreSpec,
181
- Te as sentiment,
182
- ye as services,
183
- he as setEmbedEnabled,
184
- Re as setInterval,
185
- ve as shuffle,
186
- Ce as simplifyTree,
187
- Ee as socratic,
188
- fe as softCoverPrompt,
189
- Me as sort,
190
- Fe as sortBy,
191
- Pe as split,
192
- Be as stripNumeric,
193
- Le as stripResponse,
194
- Ne as suggestTargetingRules,
195
- xe as tagSpec,
196
- Ae as tagVocabulary,
197
- Oe as tags,
198
- ke as tagsFilterInstructions,
199
- we as tagsFindInstructions,
200
- De as tagsGroupInstructions,
201
- Ge as tagsMapInstructions,
202
- ze as tagsReduceInstructions,
203
- Ve as targetingClause,
204
- Ue as targetingRule,
102
+ Ya as extractRelations,
103
+ qa as fillMissing,
104
+ Ja as filter,
105
+ Ha as filterAmbiguous,
106
+ Xa as filterEach,
107
+ Za as find,
108
+ $a as findEach,
109
+ as as generateList,
110
+ ss as getMeanings,
111
+ es as getOption,
112
+ ts as getOptionDetail,
113
+ cs as getOptions,
114
+ is as glossary,
115
+ rs as group,
116
+ ns as groupEach,
117
+ os as init,
118
+ ls as intent,
119
+ bs as intersections,
120
+ ms as join,
121
+ ps as jsonSchema,
122
+ us as last,
123
+ ds as list,
124
+ gs as listBatch,
125
+ hs as listExpand,
126
+ Ss as llm,
127
+ Ts as llmLogger,
128
+ vs as makePrompt,
129
+ ys as map,
130
+ Es as mapEach,
131
+ Is as mapTags,
132
+ Cs as name,
133
+ Rs as nameSimilarTo,
134
+ fs as nameStep,
135
+ Bs as normalizeInstruction,
136
+ Ms as normalizeLlm,
137
+ Ps as number,
138
+ Os as numberWithUnits,
139
+ xs as observeApplication,
140
+ Ls as observeProviders,
141
+ Ns as omit,
142
+ As as pFilter,
143
+ ks as pFind,
144
+ Ds as pGroup,
145
+ Fs as pMap,
146
+ ws as pReduce,
147
+ zs as parallel,
148
+ js as parallelMap,
149
+ Vs as parseLLMList,
150
+ Ws as parseRDFLiteral,
151
+ Ks as parseRelations,
152
+ Us as people,
153
+ _s as phailForge,
154
+ Gs as pick,
155
+ Qs as pipe,
156
+ Ys as popReference,
157
+ qs as promptCache,
158
+ Js as promptPiece,
159
+ Hs as prompts,
160
+ Xs as questions,
161
+ Zs as rangeCombinations,
162
+ $s as reduce,
163
+ ae as reduceEach,
164
+ se as relationInstructions,
165
+ ee as relationSpec,
166
+ te as resolveArgs,
167
+ ce as resolveEmbedding,
168
+ ie as resolveModel,
169
+ re as resolveTexts,
170
+ ne as retry,
171
+ oe as ringBuffer,
172
+ le as scaleInstructions,
173
+ be as scaleItem,
174
+ me as scaleSpec,
175
+ pe as schemaOrg,
176
+ ue as schemas,
177
+ de as scientificFramingPrompt,
178
+ ge as scopePhase,
179
+ he as score,
180
+ Se as scoreChunksByProbes,
181
+ Te as scoreInstructions,
182
+ ve as scoreItem,
183
+ ye as scoreSpec,
184
+ Ee as sentiment,
185
+ Ie as setEmbedEnabled,
186
+ Ce as setInterval,
187
+ Re as shuffle,
188
+ fe as simplifyTree,
189
+ Be as slot,
190
+ Me as socratic,
191
+ Pe as softCoverPrompt,
192
+ Oe as sort,
193
+ xe as sortBy,
194
+ Le as split,
195
+ Ne as stripNumeric,
196
+ Ae as stripResponse,
197
+ ke as suggestTargetingRules,
198
+ De as tagInstructions,
199
+ Fe as tagItem,
200
+ we as tagSpec,
201
+ ze as tagVocabulary,
202
+ je as targetingClause,
203
+ Ve as targetingRule,
205
204
  We as targetingRuleOps,
206
- _e as targetingRuleSchema,
207
- qe as templateReplace,
208
- Ke as themes,
205
+ Ke as targetingRuleSchema,
206
+ Ue as templateBuilder,
207
+ _e as templateReplace,
208
+ Ge as themes,
209
209
  Qe as timeline,
210
210
  Ye as toBool,
211
- je as toDate,
211
+ qe as toDate,
212
212
  Je as toEnum,
213
213
  He as toNumber,
214
214
  Xe as toNumberWithUnits,
@@ -218,9 +218,9 @@ export {
218
218
  st as validateTargetingRules,
219
219
  et as valueArbitrate,
220
220
  tt as vectorSearch,
221
- it as veiledVariantStrategies,
222
- rt as veiledVariants,
223
- ct as version,
221
+ ct as veiledVariantStrategies,
222
+ it as veiledVariants,
223
+ rt as version,
224
224
  nt as windowFor,
225
225
  ot as withInactivityTimeout,
226
226
  lt as withPolicy,