@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/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 classification tiers — REASONING is distinct from COMPLEX because
7
- * reasoning tasks need different models (o3, gemini-pro) than general
8
- * complex tasks (gpt-4o, sonnet-4).
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
- * Scoring uses weighted float dimensions with sigmoid confidence calibration.
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 classification tiers — REASONING is distinct from COMPLEX because
7
- * reasoning tasks need different models (o3, gemini-pro) than general
8
- * complex tasks (gpt-4o, sonnet-4).
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
- * Scoring uses weighted float dimensions with sigmoid confidence calibration.
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;