@theokit/sdk 2.22.0 → 2.24.0

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/eval.js CHANGED
@@ -13299,6 +13299,7 @@ function levenshtein(a, b) {
13299
13299
  }
13300
13300
 
13301
13301
  // src/internal/runtime/local-agent/real-local-run.ts
13302
+ init_async_local_storage();
13302
13303
  function createRealLocalRun(options) {
13303
13304
  const { userText, id, startTime } = prepareRunContext(options.message);
13304
13305
  const supported = /* @__PURE__ */ new Set(["stream", "wait", "cancel", "conversation"]);
@@ -13410,6 +13411,7 @@ function buildLoopInputs(options, runId, userText) {
13410
13411
  ...options.onStep !== void 0 ? { onStep: options.onStep } : {},
13411
13412
  ...options.onDelta !== void 0 ? { onDelta: options.onDelta } : {},
13412
13413
  ...options.sendOptions.toolChoice !== void 0 ? { toolChoice: options.sendOptions.toolChoice } : {},
13414
+ ...options.sendOptions.activeTools !== void 0 ? { activeTools: options.sendOptions.activeTools } : {},
13413
13415
  ...options.priorMessages !== void 0 ? { priorMessages: options.priorMessages } : {},
13414
13416
  ...options.memoryTools !== void 0 && options.memoryTools.length > 0 ? { memoryTools: options.memoryTools } : {},
13415
13417
  ...buildCustomToolsInput(
@@ -13540,7 +13542,7 @@ var RealLocalRun = class extends FixtureRunBase {
13540
13542
  }
13541
13543
  async executeAgentLoop(inputs) {
13542
13544
  try {
13543
- const output = await runAgentLoop(inputs);
13545
+ const output = inputs.activeTools !== void 0 ? await withToolWhitelist(new Set(inputs.activeTools), () => runAgentLoop(inputs)) : await runAgentLoop(inputs);
13544
13546
  this.applyAgentLoopOutput(output);
13545
13547
  this.transitionTo(output.finalStatus);
13546
13548
  } catch (cause) {