@distri/core 0.3.4 → 0.3.5
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2241,7 +2241,7 @@ var Agent = class _Agent {
|
|
|
2241
2241
|
const enhancedParams = this.enhanceParamsWithTools(params, tools);
|
|
2242
2242
|
const a2aStream = this.client.sendMessageStream(this.agentDefinition.id, enhancedParams);
|
|
2243
2243
|
const self = this;
|
|
2244
|
-
return
|
|
2244
|
+
return async function* () {
|
|
2245
2245
|
try {
|
|
2246
2246
|
for await (const event of a2aStream) {
|
|
2247
2247
|
const converted = decodeA2AStreamEvent(event);
|
|
@@ -2274,7 +2274,7 @@ var Agent = class _Agent {
|
|
|
2274
2274
|
};
|
|
2275
2275
|
yield runError;
|
|
2276
2276
|
}
|
|
2277
|
-
}
|
|
2277
|
+
}();
|
|
2278
2278
|
}
|
|
2279
2279
|
/**
|
|
2280
2280
|
* Validate that required external tools are registered before invoking.
|