@blockrun/llm 3.26.3 → 3.26.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.
- package/README.md +13 -10
- package/dist/index.cjs +2529 -2491
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +2529 -2491
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -3,17 +3,19 @@ import * as _anthropic_ai_sdk from '@anthropic-ai/sdk';
|
|
|
3
3
|
/**
|
|
4
4
|
* Smart Router Types
|
|
5
5
|
*
|
|
6
|
-
* Four
|
|
7
|
-
*
|
|
8
|
-
* complex
|
|
6
|
+
* Four capability tiers. REASONING is distinct from COMPLEX because proof,
|
|
7
|
+
* derivation and multi-step math reward a different model set than broad
|
|
8
|
+
* complex work; the configured chains in config.ts carry the current picks.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Tier scoring uses weighted float dimensions with sigmoid confidence
|
|
11
|
+
* calibration (rules.ts); the portfolio strategy ranks within a tier.
|
|
11
12
|
*/
|
|
12
13
|
type Tier = "SIMPLE" | "MEDIUM" | "COMPLEX" | "REASONING";
|
|
13
14
|
type RoutingDecision$1 = {
|
|
14
15
|
model: string;
|
|
15
16
|
tier: Tier;
|
|
16
17
|
confidence: number;
|
|
18
|
+
/** `"llm"` is reserved for a host-side classifier; core strategies emit `"rules"` or `"portfolio"`. */
|
|
17
19
|
method: "rules" | "llm" | "portfolio";
|
|
18
20
|
reasoning: string;
|
|
19
21
|
costEstimate: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,17 +3,19 @@ import * as _anthropic_ai_sdk from '@anthropic-ai/sdk';
|
|
|
3
3
|
/**
|
|
4
4
|
* Smart Router Types
|
|
5
5
|
*
|
|
6
|
-
* Four
|
|
7
|
-
*
|
|
8
|
-
* complex
|
|
6
|
+
* Four capability tiers. REASONING is distinct from COMPLEX because proof,
|
|
7
|
+
* derivation and multi-step math reward a different model set than broad
|
|
8
|
+
* complex work; the configured chains in config.ts carry the current picks.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Tier scoring uses weighted float dimensions with sigmoid confidence
|
|
11
|
+
* calibration (rules.ts); the portfolio strategy ranks within a tier.
|
|
11
12
|
*/
|
|
12
13
|
type Tier = "SIMPLE" | "MEDIUM" | "COMPLEX" | "REASONING";
|
|
13
14
|
type RoutingDecision$1 = {
|
|
14
15
|
model: string;
|
|
15
16
|
tier: Tier;
|
|
16
17
|
confidence: number;
|
|
18
|
+
/** `"llm"` is reserved for a host-side classifier; core strategies emit `"rules"` or `"portfolio"`. */
|
|
17
19
|
method: "rules" | "llm" | "portfolio";
|
|
18
20
|
reasoning: string;
|
|
19
21
|
costEstimate: number;
|