package com.yaoai.agent.service;

import com.yaoai.domain.entity.ProjectAsset;
import com.yaoai.domain.entity.ScriptUnderstanding;

import java.util.Optional;

public interface ScriptUnderstandingService {

    Optional<ProjectAsset> latestScriptAsset(Long projectId, Long tenantId);

    ScriptUnderstanding understandLatestScript(Long projectId, Long tenantId, Long userId, String goal);

    String toGenerationContext(ScriptUnderstanding understanding, String fallbackGoal);
}
