package cn.nianxx.thhotel.integrations.ai.superagent.common.dto;

import java.time.LocalDateTime;

/**
 * SuperAgent dispatch 持久化快照。Service 使用该对象处理 worker 调度，不直接接触 Entity。
 */
public record SuperAgentDispatchRunSnapshot(
        Long id,
        String hotelId,
        Long sourceMessageId,
        String sourceProvider,
        String sourceChannel,
        String externalMessageId,
        String externalConversationId,
        String dispatchSource,
        String idempotencyKey,
        String requestId,
        String dispatchStatus,
        int attemptCount,
        int maxAttempts,
        LocalDateTime nextAttemptAt,
        LocalDateTime lockedUntil,
        String superagentSessionId,
        String superagentRunId,
        String superagentRunUri,
        String lastEventId,
        String superagentRawAnswer,
        String superagentParsedJson,
        String superagentTraceJson,
        String safeErrorCode,
        String safeErrorSummary,
        LocalDateTime createdAt,
        LocalDateTime updatedAt
) {
}
