What is a LangChain agent and how does its architecture work? A LangChain agent is a wrapper around a language model that lets you define a loop of thought → action → observation . In practice the agent receives a user prompt, asks the model to decide what to do next, executes the chosen tool (...
Source: [Dev.to](https://dev.to/ayush_kumar_085a0f2c54e3f/building-an-ai-agent-python-langchain-with-fastapi-hb3)