keyring-agent-core 0.2.42 → 0.2.43
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.ts +20 -0
- package/dist/index.js +28 -28
- package/dist/index.native.js +40 -40
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1447,6 +1447,19 @@ interface ChatOptions {
|
|
|
1447
1447
|
* use the provider default.
|
|
1448
1448
|
*/
|
|
1449
1449
|
maxOutputTokens?: number;
|
|
1450
|
+
/**
|
|
1451
|
+
* Gemini 2.5 thinking budget, in tokens. These models spend reasoning
|
|
1452
|
+
* ("thinking") tokens that count AGAINST `maxOutputTokens` before any visible
|
|
1453
|
+
* output — so a tight `maxOutputTokens` cap on a thinking model can be consumed
|
|
1454
|
+
* entirely by reasoning, cutting the turn off with `MAX_TOKENS` before a single
|
|
1455
|
+
* JSON byte is emitted. For the short, schema-bound JSON calls that carry a
|
|
1456
|
+
* `maxOutputTokens` cap, thinking adds no value, so it is disabled by default
|
|
1457
|
+
* (budget 0) whenever a cap is set — making the cap apply fully to real output.
|
|
1458
|
+
* Pass an explicit value to override: `0` forces thinking off, `-1` restores the
|
|
1459
|
+
* model's dynamic budget, a positive number sets a fixed budget. Leave unset to
|
|
1460
|
+
* use the cap-driven default.
|
|
1461
|
+
*/
|
|
1462
|
+
thinkingBudget?: number;
|
|
1450
1463
|
/**
|
|
1451
1464
|
* Force the model to call one of the supplied `tools` instead of answering in
|
|
1452
1465
|
* text (Gemini `functionCallingConfig.mode = "ANY"`). Used by action subagents
|
|
@@ -2229,6 +2242,13 @@ declare class WebsiteTrustKeyringAgent {
|
|
|
2229
2242
|
* sized just above the real output keeps latency from the odd rambling turn
|
|
2230
2243
|
* without ever truncating a valid reply. Omit to fall back to the provider
|
|
2231
2244
|
* default (4096).
|
|
2245
|
+
* - `thinkingBudget` controls the Gemini 2.5 reasoning budget (tokens count
|
|
2246
|
+
* AGAINST `maxOutputTokens`). The provider defaults it to 0 whenever a
|
|
2247
|
+
* `maxOutputTokens` cap is set, so a formatting/extraction call spends its
|
|
2248
|
+
* whole budget on real output. The one call that needs real reasoning —
|
|
2249
|
+
* {@link investigate}, which must correctly judge official vs. look-alike —
|
|
2250
|
+
* passes an explicit positive budget AND a cap wide enough to hold thinking +
|
|
2251
|
+
* JSON, so accuracy is preserved without re-triggering MAX_TOKENS.
|
|
2232
2252
|
*/
|
|
2233
2253
|
private askJson;
|
|
2234
2254
|
/**
|