Marvin: Deterministic LLM Agents with Knowledge Graph