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