@tangle-network/agent-app 0.63.58 → 0.63.60

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.
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ReasoningRow,
3
- chatToolCallPart
4
- } from "../chunk-H7CSSEP7.js";
3
+ chatToolCallPart,
4
+ resolveToolPresentation
5
+ } from "../chunk-LAZCUQFZ.js";
5
6
  import "../chunk-UHSUY6H6.js";
6
7
  import "../chunk-3HUFJ5LO.js";
7
8
  import "../chunk-7PULOECS.js";
@@ -2687,6 +2688,7 @@ function buildAssistantTimeline(view, options = {}) {
2687
2688
  if (!call) return;
2688
2689
  const renderer = options.toolRenderers?.[call.name];
2689
2690
  const host = { id: message.id, role: "assistant", content: "" };
2691
+ const custom = renderer ? resolveToolPresentation(renderer(call, host)) : void 0;
2690
2692
  items.push({
2691
2693
  id: message.id,
2692
2694
  kind: "custom",
@@ -2694,8 +2696,9 @@ function buildAssistantTimeline(view, options = {}) {
2694
2696
  InlineToolItem,
2695
2697
  {
2696
2698
  part: chatToolCallPart(call),
2697
- title: toolTitle(call.name),
2698
- renderToolDetail: renderer ? () => renderer(call, host) : void 0
2699
+ title: custom?.title ?? toolTitle(call.name),
2700
+ description: custom?.description,
2701
+ renderToolDetail: renderer ? () => custom?.detail : void 0
2699
2702
  }
2700
2703
  )
2701
2704
  });