@distri/core 0.3.0 → 0.3.2

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.mjs CHANGED
@@ -1896,7 +1896,7 @@ var Agent = class _Agent {
1896
1896
  const enhancedParams = this.enhanceParamsWithTools(params, tools);
1897
1897
  const a2aStream = this.client.sendMessageStream(this.agentDefinition.id, enhancedParams);
1898
1898
  const self = this;
1899
- return (async function* () {
1899
+ return async function* () {
1900
1900
  for await (const event of a2aStream) {
1901
1901
  const converted = decodeA2AStreamEvent(event);
1902
1902
  if (converted && converted.type === "inline_hook_requested") {
@@ -1917,7 +1917,7 @@ var Agent = class _Agent {
1917
1917
  yield converted;
1918
1918
  }
1919
1919
  }
1920
- })();
1920
+ }();
1921
1921
  }
1922
1922
  /**
1923
1923
  * Validate that required external tools are registered before invoking.
@@ -1974,6 +1974,9 @@ var Agent = class _Agent {
1974
1974
  if (!toolConfig?.external || !Array.isArray(toolConfig.external)) {
1975
1975
  return [];
1976
1976
  }
1977
+ if (toolConfig.external.includes("*")) {
1978
+ return [];
1979
+ }
1977
1980
  return toolConfig.external.filter((tool) => typeof tool === "string" && tool.trim().length > 0);
1978
1981
  }
1979
1982
  resolveToolConfig() {