@framers/agentos 0.2.7 → 0.2.8
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/ingest-router/IngestRouter.d.ts +72 -0
- package/dist/ingest-router/IngestRouter.d.ts.map +1 -0
- package/dist/ingest-router/IngestRouter.js +98 -0
- package/dist/ingest-router/IngestRouter.js.map +1 -0
- package/dist/ingest-router/classifier.d.ts +63 -0
- package/dist/ingest-router/classifier.d.ts.map +1 -0
- package/dist/ingest-router/classifier.js +111 -0
- package/dist/ingest-router/classifier.js.map +1 -0
- package/dist/ingest-router/costs.d.ts +48 -0
- package/dist/ingest-router/costs.d.ts.map +1 -0
- package/dist/ingest-router/costs.js +63 -0
- package/dist/ingest-router/costs.js.map +1 -0
- package/dist/ingest-router/dispatcher.d.ts +35 -0
- package/dist/ingest-router/dispatcher.d.ts.map +1 -0
- package/dist/ingest-router/dispatcher.js +32 -0
- package/dist/ingest-router/dispatcher.js.map +1 -0
- package/dist/ingest-router/index.d.ts +43 -0
- package/dist/ingest-router/index.d.ts.map +1 -0
- package/dist/ingest-router/index.js +37 -0
- package/dist/ingest-router/index.js.map +1 -0
- package/dist/ingest-router/routing-tables.d.ts +122 -0
- package/dist/ingest-router/routing-tables.d.ts.map +1 -0
- package/dist/ingest-router/routing-tables.js +145 -0
- package/dist/ingest-router/routing-tables.js.map +1 -0
- package/dist/ingest-router/select-strategy.d.ts +67 -0
- package/dist/ingest-router/select-strategy.d.ts.map +1 -0
- package/dist/ingest-router/select-strategy.js +100 -0
- package/dist/ingest-router/select-strategy.js.map +1 -0
- package/dist/memory-router/adaptive.d.ts +142 -0
- package/dist/memory-router/adaptive.d.ts.map +1 -0
- package/dist/memory-router/adaptive.js +202 -0
- package/dist/memory-router/adaptive.js.map +1 -0
- package/dist/memory-router/index.d.ts +2 -0
- package/dist/memory-router/index.d.ts.map +1 -1
- package/dist/memory-router/index.js +1 -0
- package/dist/memory-router/index.js.map +1 -1
- package/dist/multi-stage-guardrails/index.d.ts +190 -0
- package/dist/multi-stage-guardrails/index.d.ts.map +1 -0
- package/dist/multi-stage-guardrails/index.js +186 -0
- package/dist/multi-stage-guardrails/index.js.map +1 -0
- package/dist/read-router/ReadRouter.d.ts +58 -0
- package/dist/read-router/ReadRouter.d.ts.map +1 -0
- package/dist/read-router/ReadRouter.js +91 -0
- package/dist/read-router/ReadRouter.js.map +1 -0
- package/dist/read-router/classifier.d.ts +54 -0
- package/dist/read-router/classifier.d.ts.map +1 -0
- package/dist/read-router/classifier.js +104 -0
- package/dist/read-router/classifier.js.map +1 -0
- package/dist/read-router/costs.d.ts +23 -0
- package/dist/read-router/costs.d.ts.map +1 -0
- package/dist/read-router/costs.js +51 -0
- package/dist/read-router/costs.js.map +1 -0
- package/dist/read-router/dispatcher.d.ts +33 -0
- package/dist/read-router/dispatcher.d.ts.map +1 -0
- package/dist/read-router/dispatcher.js +29 -0
- package/dist/read-router/dispatcher.js.map +1 -0
- package/dist/read-router/index.d.ts +23 -0
- package/dist/read-router/index.d.ts.map +1 -0
- package/dist/read-router/index.js +17 -0
- package/dist/read-router/index.js.map +1 -0
- package/dist/read-router/routing-tables.d.ts +85 -0
- package/dist/read-router/routing-tables.d.ts.map +1 -0
- package/dist/read-router/routing-tables.js +79 -0
- package/dist/read-router/routing-tables.js.map +1 -0
- package/dist/read-router/select-strategy.d.ts +42 -0
- package/dist/read-router/select-strategy.d.ts.map +1 -0
- package/dist/read-router/select-strategy.js +92 -0
- package/dist/read-router/select-strategy.js.map +1 -0
- package/package.json +16 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file routing-tables.ts
|
|
3
|
+
* @description Preset routing tables for {@link ReadRouter}.
|
|
4
|
+
*
|
|
5
|
+
* ReadRouter is the read-stage sibling of MemoryRouter (recall-stage)
|
|
6
|
+
* and IngestRouter (input-stage). It picks a reader strategy after
|
|
7
|
+
* retrieval has produced candidate evidence — single-call generation
|
|
8
|
+
* vs two-call extract-then-answer (Emergence pattern) vs commit-vs-
|
|
9
|
+
* abstain (explicit binary decision before answer) vs verbatim citation
|
|
10
|
+
* vs scratchpad-then-answer (chain-of-thought-lite for temporal questions).
|
|
11
|
+
*
|
|
12
|
+
* @module @framers/agentos/read-router/routing-tables
|
|
13
|
+
*/
|
|
14
|
+
export const READ_INTENTS = [
|
|
15
|
+
'precise-fact',
|
|
16
|
+
'multi-source-synthesis',
|
|
17
|
+
'time-interval',
|
|
18
|
+
'preference-recommendation',
|
|
19
|
+
'abstention-candidate',
|
|
20
|
+
];
|
|
21
|
+
/**
|
|
22
|
+
* Preset: precise-fact (default for fact-recall workloads).
|
|
23
|
+
*
|
|
24
|
+
* Precise facts get single-call (cheap, accurate when evidence is clear).
|
|
25
|
+
* Synthesis gets two-call extract-then-answer. Time intervals get
|
|
26
|
+
* scratchpad. Preferences get single-call. Abstention candidates get the
|
|
27
|
+
* explicit commit-vs-abstain decision.
|
|
28
|
+
*/
|
|
29
|
+
export const PRECISE_FACT_TABLE = Object.freeze({
|
|
30
|
+
preset: 'precise-fact',
|
|
31
|
+
defaultMapping: Object.freeze({
|
|
32
|
+
'precise-fact': 'single-call',
|
|
33
|
+
'multi-source-synthesis': 'two-call-extract-answer',
|
|
34
|
+
'time-interval': 'scratchpad-then-answer',
|
|
35
|
+
'preference-recommendation': 'single-call',
|
|
36
|
+
'abstention-candidate': 'commit-vs-abstain',
|
|
37
|
+
}),
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* Preset: synthesis (synthesis-heavy workloads).
|
|
41
|
+
*
|
|
42
|
+
* Routes more aggressively to two-call extract-then-answer for both
|
|
43
|
+
* synthesis and precise-fact (the extract pass cleans up noisy evidence).
|
|
44
|
+
* Verbatim citation for KU/SSU-style precise facts to reduce paraphrase
|
|
45
|
+
* loss. Higher cost, higher fidelity.
|
|
46
|
+
*/
|
|
47
|
+
export const SYNTHESIS_TABLE = Object.freeze({
|
|
48
|
+
preset: 'synthesis',
|
|
49
|
+
defaultMapping: Object.freeze({
|
|
50
|
+
'precise-fact': 'verbatim-citation',
|
|
51
|
+
'multi-source-synthesis': 'two-call-extract-answer',
|
|
52
|
+
'time-interval': 'scratchpad-then-answer',
|
|
53
|
+
'preference-recommendation': 'two-call-extract-answer',
|
|
54
|
+
'abstention-candidate': 'commit-vs-abstain',
|
|
55
|
+
}),
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* Preset: temporal (time-heavy workloads).
|
|
59
|
+
*
|
|
60
|
+
* Almost everything goes through scratchpad-then-answer because the
|
|
61
|
+
* scratchpad's date-arithmetic discipline transfers to non-temporal
|
|
62
|
+
* questions about WHEN events happened.
|
|
63
|
+
*/
|
|
64
|
+
export const TEMPORAL_TABLE = Object.freeze({
|
|
65
|
+
preset: 'temporal',
|
|
66
|
+
defaultMapping: Object.freeze({
|
|
67
|
+
'precise-fact': 'scratchpad-then-answer',
|
|
68
|
+
'multi-source-synthesis': 'scratchpad-then-answer',
|
|
69
|
+
'time-interval': 'scratchpad-then-answer',
|
|
70
|
+
'preference-recommendation': 'single-call',
|
|
71
|
+
'abstention-candidate': 'commit-vs-abstain',
|
|
72
|
+
}),
|
|
73
|
+
});
|
|
74
|
+
export const PRESET_READ_TABLES = Object.freeze({
|
|
75
|
+
'precise-fact': PRECISE_FACT_TABLE,
|
|
76
|
+
synthesis: SYNTHESIS_TABLE,
|
|
77
|
+
temporal: TEMPORAL_TABLE,
|
|
78
|
+
});
|
|
79
|
+
//# sourceMappingURL=routing-tables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing-tables.js","sourceRoot":"","sources":["../../src/read-router/routing-tables.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,cAAc;IACd,wBAAwB;IACxB,eAAe;IACf,2BAA2B;IAC3B,sBAAsB;CACd,CAAC;AAyDX;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAqB,MAAM,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,cAAuB;IAC/B,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC;QAC5B,cAAc,EAAE,aAAa;QAC7B,wBAAwB,EAAE,yBAAyB;QACnD,eAAe,EAAE,wBAAwB;QACzC,2BAA2B,EAAE,aAAa;QAC1C,sBAAsB,EAAE,mBAAmB;KAC5C,CAAC;CACH,CAAqB,CAAC;AAEvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAqB,MAAM,CAAC,MAAM,CAAC;IAC7D,MAAM,EAAE,WAAoB;IAC5B,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC;QAC5B,cAAc,EAAE,mBAAmB;QACnC,wBAAwB,EAAE,yBAAyB;QACnD,eAAe,EAAE,wBAAwB;QACzC,2BAA2B,EAAE,yBAAyB;QACtD,sBAAsB,EAAE,mBAAmB;KAC5C,CAAC;CACH,CAAqB,CAAC;AAEvB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAqB,MAAM,CAAC,MAAM,CAAC;IAC5D,MAAM,EAAE,UAAmB;IAC3B,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC;QAC5B,cAAc,EAAE,wBAAwB;QACxC,wBAAwB,EAAE,wBAAwB;QAClD,eAAe,EAAE,wBAAwB;QACzC,2BAA2B,EAAE,aAAa;QAC1C,sBAAsB,EAAE,mBAAmB;KAC5C,CAAC;CACH,CAAqB,CAAC;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAE3B,MAAM,CAAC,MAAM,CAAC;IAChB,cAAc,EAAE,kBAAkB;IAClC,SAAS,EAAE,eAAe;IAC1B,QAAQ,EAAE,cAAc;CACzB,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file select-strategy.ts
|
|
3
|
+
* @description Pure selection function for ReadRouter. Mirrors the
|
|
4
|
+
* memory-router and ingest-router patterns.
|
|
5
|
+
*
|
|
6
|
+
* @module @framers/agentos/read-router/select-strategy
|
|
7
|
+
*/
|
|
8
|
+
import type { ReadStrategyCostPoint } from './costs.js';
|
|
9
|
+
import type { ReadIntent, ReadRouterPreset, ReadRoutingTable, ReadStrategyId } from './routing-tables.js';
|
|
10
|
+
export type ReadBudgetMode = 'hard' | 'soft' | 'cheapest-fallback';
|
|
11
|
+
export interface ReadRouterConfig {
|
|
12
|
+
readonly table: ReadRoutingTable;
|
|
13
|
+
readonly budgetPerReadUsd: number | null;
|
|
14
|
+
readonly budgetMode: ReadBudgetMode;
|
|
15
|
+
readonly strategyCosts: Readonly<Record<ReadStrategyId, ReadStrategyCostPoint>>;
|
|
16
|
+
}
|
|
17
|
+
export interface ReadRoutingDecision {
|
|
18
|
+
readonly predictedIntent: ReadIntent;
|
|
19
|
+
readonly groundTruthIntent: ReadIntent | null;
|
|
20
|
+
readonly chosenStrategy: ReadStrategyId;
|
|
21
|
+
readonly chosenStrategyReason: string;
|
|
22
|
+
readonly estimatedCostUsd: number;
|
|
23
|
+
readonly budgetCeiling: number | null;
|
|
24
|
+
readonly budgetExceeded: boolean;
|
|
25
|
+
readonly preset: ReadRouterPreset;
|
|
26
|
+
}
|
|
27
|
+
export declare class ReadRouterUnknownIntentError extends Error {
|
|
28
|
+
readonly intent: string;
|
|
29
|
+
constructor(intent: string);
|
|
30
|
+
}
|
|
31
|
+
export declare class ReadRouterBudgetExceededError extends Error {
|
|
32
|
+
readonly strategy: ReadStrategyId;
|
|
33
|
+
readonly cost: number;
|
|
34
|
+
readonly budget: number;
|
|
35
|
+
constructor(strategy: ReadStrategyId, cost: number, budget: number);
|
|
36
|
+
}
|
|
37
|
+
export declare function selectReadStrategy(args: {
|
|
38
|
+
predictedIntent: ReadIntent;
|
|
39
|
+
groundTruthIntent: ReadIntent | null;
|
|
40
|
+
config: ReadRouterConfig;
|
|
41
|
+
}): ReadRoutingDecision;
|
|
42
|
+
//# sourceMappingURL=select-strategy.d.ts.map
|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AAM;gBAFd,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM;CAQjC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,eAAe,EAAE,UAAU,CAAC;IAC5B,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,MAAM,EAAE,gBAAgB,CAAC;CAC1B,GAAG,mBAAmB,CAoFtB"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file select-strategy.ts
|
|
3
|
+
* @description Pure selection function for ReadRouter. Mirrors the
|
|
4
|
+
* memory-router and ingest-router patterns.
|
|
5
|
+
*
|
|
6
|
+
* @module @framers/agentos/read-router/select-strategy
|
|
7
|
+
*/
|
|
8
|
+
export class ReadRouterUnknownIntentError extends Error {
|
|
9
|
+
constructor(intent) {
|
|
10
|
+
super(`ReadRouter: intent '${intent}' not in routing table`);
|
|
11
|
+
this.intent = intent;
|
|
12
|
+
this.name = 'ReadRouterUnknownIntentError';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class ReadRouterBudgetExceededError extends Error {
|
|
16
|
+
constructor(strategy, cost, budget) {
|
|
17
|
+
super(`ReadRouter: strategy '${strategy}' cost $${cost.toFixed(4)} ` +
|
|
18
|
+
`exceeds hard budget $${budget.toFixed(4)}`);
|
|
19
|
+
this.strategy = strategy;
|
|
20
|
+
this.cost = cost;
|
|
21
|
+
this.budget = budget;
|
|
22
|
+
this.name = 'ReadRouterBudgetExceededError';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export function selectReadStrategy(args) {
|
|
26
|
+
const { predictedIntent, groundTruthIntent, config } = args;
|
|
27
|
+
const { table, budgetPerReadUsd, budgetMode, strategyCosts } = config;
|
|
28
|
+
const picked = table.defaultMapping[predictedIntent];
|
|
29
|
+
if (!picked) {
|
|
30
|
+
throw new ReadRouterUnknownIntentError(predictedIntent);
|
|
31
|
+
}
|
|
32
|
+
const pickedCost = strategyCosts[picked].avgCostPerReadUsd;
|
|
33
|
+
if (budgetPerReadUsd === null || pickedCost <= budgetPerReadUsd) {
|
|
34
|
+
return {
|
|
35
|
+
predictedIntent,
|
|
36
|
+
groundTruthIntent,
|
|
37
|
+
chosenStrategy: picked,
|
|
38
|
+
chosenStrategyReason: budgetPerReadUsd === null
|
|
39
|
+
? 'routing-table pick, no budget'
|
|
40
|
+
: 'routing-table pick fits budget',
|
|
41
|
+
estimatedCostUsd: pickedCost,
|
|
42
|
+
budgetCeiling: budgetPerReadUsd,
|
|
43
|
+
budgetExceeded: false,
|
|
44
|
+
preset: table.preset,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (budgetMode === 'hard') {
|
|
48
|
+
throw new ReadRouterBudgetExceededError(picked, pickedCost, budgetPerReadUsd);
|
|
49
|
+
}
|
|
50
|
+
const candidates = Object.values(strategyCosts).map((c) => ({
|
|
51
|
+
strategy: c.strategy,
|
|
52
|
+
cost: c.avgCostPerReadUsd,
|
|
53
|
+
}));
|
|
54
|
+
const fits = candidates.filter((c) => c.cost <= budgetPerReadUsd);
|
|
55
|
+
const cheapestFits = fits.length > 0 ? fits.reduce((a, b) => (a.cost <= b.cost ? a : b)) : null;
|
|
56
|
+
if (!cheapestFits) {
|
|
57
|
+
const globallyCheapest = candidates.reduce((a, b) => a.cost <= b.cost ? a : b);
|
|
58
|
+
return {
|
|
59
|
+
predictedIntent,
|
|
60
|
+
groundTruthIntent,
|
|
61
|
+
chosenStrategy: globallyCheapest.strategy,
|
|
62
|
+
chosenStrategyReason: 'no strategy fits budget; picking absolute cheapest',
|
|
63
|
+
estimatedCostUsd: globallyCheapest.cost,
|
|
64
|
+
budgetCeiling: budgetPerReadUsd,
|
|
65
|
+
budgetExceeded: true,
|
|
66
|
+
preset: table.preset,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
if (budgetMode === 'cheapest-fallback') {
|
|
70
|
+
return {
|
|
71
|
+
predictedIntent,
|
|
72
|
+
groundTruthIntent,
|
|
73
|
+
chosenStrategy: cheapestFits.strategy,
|
|
74
|
+
chosenStrategyReason: 'budget downgrade (cheapest-fallback mode)',
|
|
75
|
+
estimatedCostUsd: cheapestFits.cost,
|
|
76
|
+
budgetCeiling: budgetPerReadUsd,
|
|
77
|
+
budgetExceeded: false,
|
|
78
|
+
preset: table.preset,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
predictedIntent,
|
|
83
|
+
groundTruthIntent,
|
|
84
|
+
chosenStrategy: picked,
|
|
85
|
+
chosenStrategyReason: 'soft exceed: keeping picked despite budget breach',
|
|
86
|
+
estimatedCostUsd: pickedCost,
|
|
87
|
+
budgetCeiling: budgetPerReadUsd,
|
|
88
|
+
budgetExceeded: true,
|
|
89
|
+
preset: table.preset,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=select-strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-strategy.js","sourceRoot":"","sources":["../../src/read-router/select-strategy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA8BH,MAAM,OAAO,4BAA6B,SAAQ,KAAK;IACrD,YAA4B,MAAc;QACxC,KAAK,CAAC,uBAAuB,MAAM,wBAAwB,CAAC,CAAC;QADnC,WAAM,GAAN,MAAM,CAAQ;QAExC,IAAI,CAAC,IAAI,GAAG,8BAA8B,CAAC;IAC7C,CAAC;CACF;AAED,MAAM,OAAO,6BAA8B,SAAQ,KAAK;IACtD,YACkB,QAAwB,EACxB,IAAY,EACZ,MAAc;QAE9B,KAAK,CACH,yBAAyB,QAAQ,WAAW,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG;YAC5D,wBAAwB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAC9C,CAAC;QAPc,aAAQ,GAAR,QAAQ,CAAgB;QACxB,SAAI,GAAJ,IAAI,CAAQ;QACZ,WAAM,GAAN,MAA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;QACtB,oBAAoB,EAAE,mDAAmD;QACzE,gBAAgB,EAAE,UAAU;QAC5B,aAAa,EAAE,gBAAgB;QAC/B,cAAc,EAAE,IAAI;QACpB,MAAM,EAAE,KAAK,CAAC,MAAM;KACrB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framers/agentos",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Modular AgentOS orchestration library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -263,6 +263,21 @@
|
|
|
263
263
|
"default": "./dist/memory-router/index.js",
|
|
264
264
|
"types": "./dist/memory-router/index.d.ts"
|
|
265
265
|
},
|
|
266
|
+
"./ingest-router": {
|
|
267
|
+
"import": "./dist/ingest-router/index.js",
|
|
268
|
+
"default": "./dist/ingest-router/index.js",
|
|
269
|
+
"types": "./dist/ingest-router/index.d.ts"
|
|
270
|
+
},
|
|
271
|
+
"./read-router": {
|
|
272
|
+
"import": "./dist/read-router/index.js",
|
|
273
|
+
"default": "./dist/read-router/index.js",
|
|
274
|
+
"types": "./dist/read-router/index.d.ts"
|
|
275
|
+
},
|
|
276
|
+
"./multi-stage-guardrails": {
|
|
277
|
+
"import": "./dist/multi-stage-guardrails/index.js",
|
|
278
|
+
"default": "./dist/multi-stage-guardrails/index.js",
|
|
279
|
+
"types": "./dist/multi-stage-guardrails/index.d.ts"
|
|
280
|
+
},
|
|
266
281
|
"./memory/index": {
|
|
267
282
|
"import": "./dist/memory/index.js",
|
|
268
283
|
"default": "./dist/memory/index.js",
|