package com.agent.management.rag.structured; import com.agent.management.rag.model.RagQuery; import org.springframework.stereotype.Service; import java.util.Optional;
@Service public class ExplicitSqlGenerationService implements SqlGenerationService { public Optional<String> generateSql(RagQuery q,Long id){Object v=q.getFilters()==null?null:q.getFilters().get("sql"); return v==null||String.valueOf(v).isBlank()?Optional.empty():Optional.of(String.valueOf(v));}}
