The GitHub Actions job "Backport Approval Check" on 
texera.git/refactor/react-step-modal-types has succeeded.
Run started by GitHub user bobbai00 (triggered by bobbai00).

Head commit for run:
36d8defe5ad82e441e8d00f97688a79be0958ef0 / Matthew Ball <[email protected]>
Type the ReAct step detail modal's message helpers

ReActStepDetailModalComponent renders a ReActStep's input messages and tool 
activity. Its message-reading helpers took and returned any; they now work 
against two local interfaces. MessagePart is a flat shape for one content part: 
a required string type tag plus the optional fields the modal reads by name, 
namely text, toolName and toolCallId, args or input for a tool call's arguments 
(each carrying an optional operatorId), and result, output, or content for a 
tool result's payload. InputMessage is a role plus content that is either a 
string or a MessagePart array.

getTextFromMessage, getToolCallSummaries, getToolResultFullItems, and 
getToolResultItems now take InputMessage | null and filter content by the type 
tag before reading a part's fields, so a missing field is a typed undefined 
rather than an unchecked any; getToolCallSummaries returns fullArgs as 
Record<string, unknown>, and buildToolCallNameMap records a tool call only when 
both its id and name are present. formatResult, formatJson, and getToolResult 
take and return unknown, since they stringify arbitrary payloads without 
inspecting their shape.

Report URL: https://github.com/apache/texera/actions/runs/43686018026

With regards,
GitHub Actions via GitBox

Reply via email to