keyring-agent-core 0.2.40 → 0.2.42
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 +14 -0
- package/dist/index.js +69 -69
- package/dist/index.native.js +170 -170
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1438,6 +1438,15 @@ interface ChatOptions {
|
|
|
1438
1438
|
maxRetries?: number;
|
|
1439
1439
|
/** Delay between retries in ms */
|
|
1440
1440
|
retryDelayMs?: number;
|
|
1441
|
+
/**
|
|
1442
|
+
* Per-call cap on generated tokens, overriding the provider default
|
|
1443
|
+
* (`LLMProviderConfig.maxTokens`). Short structured turns — router/rewrite JSON,
|
|
1444
|
+
* language detection, yes/no guards, suggestion arrays — only need a few hundred
|
|
1445
|
+
* tokens; capping them lets the model stop sooner (fewer tokens to generate =
|
|
1446
|
+
* faster turn) instead of running up to the global 4096 budget. Leave unset to
|
|
1447
|
+
* use the provider default.
|
|
1448
|
+
*/
|
|
1449
|
+
maxOutputTokens?: number;
|
|
1441
1450
|
/**
|
|
1442
1451
|
* Force the model to call one of the supplied `tools` instead of answering in
|
|
1443
1452
|
* text (Gemini `functionCallingConfig.mode = "ANY"`). Used by action subagents
|
|
@@ -2215,6 +2224,11 @@ declare class WebsiteTrustKeyringAgent {
|
|
|
2215
2224
|
* calls where grounding only drags the reply toward the source language.
|
|
2216
2225
|
* - `maxRetries` lets search-grounded calls survive the occasional empty turn
|
|
2217
2226
|
* (a single attempt used to blank out the whole analysis).
|
|
2227
|
+
* - `maxOutputTokens` caps the reply per call. Each of these turns is a small,
|
|
2228
|
+
* schema-bound JSON (a handful of fields / 3-5 short array items), so a cap
|
|
2229
|
+
* sized just above the real output keeps latency from the odd rambling turn
|
|
2230
|
+
* without ever truncating a valid reply. Omit to fall back to the provider
|
|
2231
|
+
* default (4096).
|
|
2218
2232
|
*/
|
|
2219
2233
|
private askJson;
|
|
2220
2234
|
/**
|