@theokit/sdk 2.23.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/a2a/index.js CHANGED
@@ -12919,6 +12919,7 @@ function buildLoopInputs(options, runId, userText) {
12919
12919
  ...options.onStep !== void 0 ? { onStep: options.onStep } : {},
12920
12920
  ...options.onDelta !== void 0 ? { onDelta: options.onDelta } : {},
12921
12921
  ...options.sendOptions.toolChoice !== void 0 ? { toolChoice: options.sendOptions.toolChoice } : {},
12922
+ ...options.sendOptions.activeTools !== void 0 ? { activeTools: options.sendOptions.activeTools } : {},
12922
12923
  ...options.priorMessages !== void 0 ? { priorMessages: options.priorMessages } : {},
12923
12924
  ...options.memoryTools !== void 0 && options.memoryTools.length > 0 ? { memoryTools: options.memoryTools } : {},
12924
12925
  ...buildCustomToolsInput(
@@ -13018,6 +13019,7 @@ var init_real_local_run = __esm({
13018
13019
  init_register_plugin_providers();
13019
13020
  init_tracer();
13020
13021
  init_personality_filter();
13022
+ init_async_local_storage();
13021
13023
  init_fixture_run_base();
13022
13024
  init_run_registry();
13023
13025
  pluginProvidersAnnounced = false;
@@ -13067,7 +13069,7 @@ var init_real_local_run = __esm({
13067
13069
  }
13068
13070
  async executeAgentLoop(inputs) {
13069
13071
  try {
13070
- const output = await runAgentLoop(inputs);
13072
+ const output = inputs.activeTools !== void 0 ? await withToolWhitelist(new Set(inputs.activeTools), () => runAgentLoop(inputs)) : await runAgentLoop(inputs);
13071
13073
  this.applyAgentLoopOutput(output);
13072
13074
  this.transitionTo(output.finalStatus);
13073
13075
  } catch (cause) {