LangChain: Understanding Cognitive Architecture in AI Systems