import { jsx as _jsx } from "react/jsx-runtime";
import { AiResponseMessage } from "./AiResponseMessage";
import { getOperationsForMessageGroup } from "../../agentMessageGrouping";
import { convertAgentMessagesToAiFormat } from "../../agentMessageConversion";
export function AgentSummaryAssistantResponse({ summaryGroup, isExecuting, operations, defaultCollapseJson, agentId, allPendingApprovals, onSwitchToAutonomous, readOnly, onQuickAction, }) {
    const summaryMessages = convertAgentMessagesToAiFormat(summaryGroup.messages);
    const summaryOperations = getOperationsForMessageGroup(summaryMessages, operations);
    return (_jsx("div", { className: "space-y-0 select-text", children: _jsx(AiResponseMessage, { messages: summaryMessages, finished: !summaryGroup.isLastGroup || !isExecuting, editOperations: summaryOperations, defaultCollapseJson: defaultCollapseJson, agentId: agentId, allPendingApprovals: allPendingApprovals, onSwitchToAutonomous: onSwitchToAutonomous, readOnly: readOnly, onQuickAction: (action) => onQuickAction(action) }) }));
}
//# sourceMappingURL=AgentSummaryAssistantResponse.js.map