@blockrun/llm 3.26.3 → 3.26.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/README.md +13 -10
- package/dist/index.cjs +2551 -2505
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +2551 -2505
- 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;
|
|
@@ -2653,6 +2655,11 @@ interface CreateSolanaPaymentOptions {
|
|
|
2653
2655
|
resourceUrl?: string;
|
|
2654
2656
|
resourceDescription?: string;
|
|
2655
2657
|
maxTimeoutSeconds?: number;
|
|
2658
|
+
/**
|
|
2659
|
+
* The 402 accept's `extra`, echoed back as `accepted.extra`. When it carries
|
|
2660
|
+
* a valid `recentBlockhash`, the transaction is signed on that blockhash
|
|
2661
|
+
* instead of one fetched from `rpcUrl`.
|
|
2662
|
+
*/
|
|
2656
2663
|
extra?: Record<string, unknown>;
|
|
2657
2664
|
extensions?: Record<string, unknown>;
|
|
2658
2665
|
rpcUrl?: string;
|
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;
|
|
@@ -2653,6 +2655,11 @@ interface CreateSolanaPaymentOptions {
|
|
|
2653
2655
|
resourceUrl?: string;
|
|
2654
2656
|
resourceDescription?: string;
|
|
2655
2657
|
maxTimeoutSeconds?: number;
|
|
2658
|
+
/**
|
|
2659
|
+
* The 402 accept's `extra`, echoed back as `accepted.extra`. When it carries
|
|
2660
|
+
* a valid `recentBlockhash`, the transaction is signed on that blockhash
|
|
2661
|
+
* instead of one fetched from `rpcUrl`.
|
|
2662
|
+
*/
|
|
2656
2663
|
extra?: Record<string, unknown>;
|
|
2657
2664
|
extensions?: Record<string, unknown>;
|
|
2658
2665
|
rpcUrl?: string;
|