The agentic loop consists of the core components of an AI agent:
- Brain (or reasoning engine)
- Planning: the agent uses techniques like chain-of-thought (COT) or ReAct to decide what to do next based on previous outcomes
- Memory:
- Short-term: the immediate context window (current conversation)
- Long-term: vector databases or logs that allow the agent to “remember” past experiences across different sessions
- Tools (capabilities): APIs, web search, code execution environments, or database access. Tools allow the agents to affect the real world (e.g. booking a flight, sending an email, etc.)