@springbrand/agent-runtime 0.3.0-alpha.12 → 0.3.0-alpha.14
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/package.json
CHANGED
|
@@ -373,6 +373,23 @@ export class PiChunkEncoder {
|
|
|
373
373
|
const chunks = this.toolInputs.has(event.toolCallId)
|
|
374
374
|
? []
|
|
375
375
|
: this.toolInput(event.toolCallId, event.toolName, event.args);
|
|
376
|
+
const partialResult = isRecord(event.partialResult)
|
|
377
|
+
? event.partialResult
|
|
378
|
+
: undefined;
|
|
379
|
+
const details = isRecord(partialResult?.details)
|
|
380
|
+
? partialResult.details
|
|
381
|
+
: undefined;
|
|
382
|
+
const actionToolMeta = isRecord(details?.actionToolMeta)
|
|
383
|
+
? details.actionToolMeta
|
|
384
|
+
: undefined;
|
|
385
|
+
if (actionToolMeta) {
|
|
386
|
+
chunks.push({
|
|
387
|
+
type: "data-action-tool-meta",
|
|
388
|
+
id: event.toolCallId,
|
|
389
|
+
data: { toolCallId: event.toolCallId, ...actionToolMeta },
|
|
390
|
+
});
|
|
391
|
+
return chunks;
|
|
392
|
+
}
|
|
376
393
|
chunks.push({
|
|
377
394
|
type: "tool-output-available",
|
|
378
395
|
toolCallId: event.toolCallId,
|