THIS AI AGENT SHOULD HAVE BEEN A SQL QUERY
Building AI Agents as streaming SQL queries can be done using platforms like Apache Flink. This approach can offer consistency, scalability, and a better developer experience, similar to how microservices can be implemented as SQL queries. Flink's ability to interact with LLMs, its event-driven architecture, and its capacity to manage context through features like lookup joins and retrieval-augmented generation makes it great for building agentic systems.