keyring-agent-core 0.2.41 → 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 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
@@ -2224,6 +2237,18 @@ declare class WebsiteTrustKeyringAgent {
2224
2237
  * calls where grounding only drags the reply toward the source language.
2225
2238
  * - `maxRetries` lets search-grounded calls survive the occasional empty turn
2226
2239
  * (a single attempt used to blank out the whole analysis).
2240
+ * - `maxOutputTokens` caps the reply per call. Each of these turns is a small,
2241
+ * schema-bound JSON (a handful of fields / 3-5 short array items), so a cap
2242
+ * sized just above the real output keeps latency from the odd rambling turn
2243
+ * without ever truncating a valid reply. Omit to fall back to the provider
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.
2227
2252
  */
2228
2253
  private askJson;
2229
2254
  /**