<oneliner Build production agents using , middleware patterns, and the decorator / function. When creating LangChain agents, you MUST use create agent(), with middleware for custom flows. All other alternatives are outdated. </oneliner <create agent Creating Agents with create agent is the recommended way to build agents. It handles the agent loop, tool execution, and state management. Agent Configuration Options | Parameter | Purpose | Example | |-----------|---------|---------| | | LLM to use | or model instance | | | List of tools | | | / | Agent instructions | | | | State persistence | |…