@axlsdk/axl 0.12.0 → 0.13.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/index.cjs CHANGED
@@ -5536,7 +5536,7 @@ var AxlRuntime = class extends import_node_events2.EventEmitter {
5536
5536
  });
5537
5537
  return { output: result2.output, cost: result2.cost ?? trackedCost };
5538
5538
  };
5539
- result = await runEvalFn(entry.config, wrappedExecuteFn, void 0, this);
5539
+ result = await runEvalFn(entry.config, wrappedExecuteFn, this);
5540
5540
  } else {
5541
5541
  result = await this.eval(
5542
5542
  entry.config
@@ -5615,6 +5615,10 @@ var AxlRuntime = class extends import_node_events2.EventEmitter {
5615
5615
  registerProvider(name, provider) {
5616
5616
  this.providerRegistry.registerInstance(name, provider);
5617
5617
  }
5618
+ /** Resolve a provider:model URI to a Provider instance and model name. */
5619
+ resolveProvider(uri) {
5620
+ return this.providerRegistry.resolve(uri, this.config);
5621
+ }
5618
5622
  /** Execute a workflow and return the result. */
5619
5623
  async execute(name, input, options) {
5620
5624
  const workflow2 = this.workflows.get(name);
@@ -6071,7 +6075,7 @@ var AxlRuntime = class extends import_node_events2.EventEmitter {
6071
6075
  });
6072
6076
  return { output: result, cost };
6073
6077
  };
6074
- return runEvalFn(config, executeWorkflow, void 0, this);
6078
+ return runEvalFn(config, executeWorkflow, this);
6075
6079
  }
6076
6080
  /**
6077
6081
  * Compare two evaluation results to detect regressions and improvements.