Ma77Ball commented on code in PR #9432:
URL: https://github.com/apache/texera/pull/9432#discussion_r4650904570


##########
frontend/src/app/workspace/component/agent/agent-panel/react-step-detail-modal/react-step-detail-modal.component.ts:
##########
@@ -27,6 +27,30 @@ import { NzDescriptionsComponent, 
NzDescriptionsItemComponent } from "ng-zorro-a
 import { NzTagComponent } from "ng-zorro-antd/tag";
 import { NzCollapseComponent, NzCollapsePanelComponent } from 
"ng-zorro-antd/collapse";
 
+/**
+ * A content part of an input message. The agent backend tags each part with a 
`type` and
+ * fills only the fields for that kind, so every field but the tag is optional 
here and the
+ * modal reads them by name. Tool-call arguments arrive under `args` or 
`input`; a tool
+ * result arrives under `result`, `output`, or `content`.
+ */
+interface MessagePart {

Review Comment:
   Typed inputMessages as ModelMessage[] and narrowed each content part on type 
to the SDK's TextPart, ToolCallPart, and ToolResultPart, reading tool-call 
input and tool-result output directly; the result part's own toolName now 
supplies the name, so buildToolCallNameMap is gone.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to