@t2000/engine 0.28.2 → 0.28.3
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 +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -152,6 +152,8 @@ interface EngineConfig {
|
|
|
152
152
|
temperature?: number;
|
|
153
153
|
/** Force tool usage on the first LLM turn (prevents text-only refusals). */
|
|
154
154
|
toolChoice?: ToolChoice;
|
|
155
|
+
/** Environment variables forwarded to tool context (API keys, URLs). */
|
|
156
|
+
env?: Record<string, string>;
|
|
155
157
|
costTracker?: {
|
|
156
158
|
budgetLimitUsd?: number;
|
|
157
159
|
inputCostPerToken?: number;
|
|
@@ -255,6 +257,7 @@ declare class QueryEngine {
|
|
|
255
257
|
private readonly suiRpcUrl;
|
|
256
258
|
private serverPositions;
|
|
257
259
|
private readonly positionFetcher;
|
|
260
|
+
private readonly env;
|
|
258
261
|
private readonly txMutex;
|
|
259
262
|
private readonly costTracker;
|
|
260
263
|
private messages;
|
package/dist/index.js
CHANGED
|
@@ -2667,6 +2667,7 @@ var QueryEngine = class {
|
|
|
2667
2667
|
suiRpcUrl;
|
|
2668
2668
|
serverPositions;
|
|
2669
2669
|
positionFetcher;
|
|
2670
|
+
env;
|
|
2670
2671
|
txMutex = new TxMutex();
|
|
2671
2672
|
costTracker;
|
|
2672
2673
|
messages = [];
|
|
@@ -2679,6 +2680,7 @@ var QueryEngine = class {
|
|
|
2679
2680
|
this.suiRpcUrl = config.suiRpcUrl;
|
|
2680
2681
|
this.serverPositions = config.serverPositions;
|
|
2681
2682
|
this.positionFetcher = config.positionFetcher;
|
|
2683
|
+
this.env = config.env;
|
|
2682
2684
|
this.model = config.model;
|
|
2683
2685
|
this.maxTurns = config.maxTurns ?? DEFAULT_MAX_TURNS;
|
|
2684
2686
|
this.maxTokens = config.maxTokens ?? DEFAULT_MAX_TOKENS;
|
|
@@ -2791,6 +2793,7 @@ var QueryEngine = class {
|
|
|
2791
2793
|
suiRpcUrl: this.suiRpcUrl,
|
|
2792
2794
|
serverPositions: this.serverPositions,
|
|
2793
2795
|
positionFetcher: this.positionFetcher,
|
|
2796
|
+
env: this.env,
|
|
2794
2797
|
signal
|
|
2795
2798
|
};
|
|
2796
2799
|
let turns = 0;
|