liveBook · Manning

LangChain

As explained in Investing for Programmers

LangChain is a software framework for building applications that compose large language models with prompts, tools, data sources, and workflow logic.

LangChain is a Python framework for applications that connect large language models with prompts, data sources, tools, and workflow logic. It simplifies the LLM application lifecycle and provides a common interface across providers, including a shared invoke() method for sending prompts. section 9.3.1

LangChain supports two useful levels of integration:

  • One-shot prompting wraps provider access in modules such as ChatOpenAI, while retaining configurable models, temperature, tokens, retries, and timeouts. section 9.3.1
  • Agents connect tools and data sources to an LLM, enabling workflows such as retrieving current financial news before answering a question. section 9.3.1

How Investing for Programmers covers it

How deep it goes
Explains provider abstraction, invoke(), one-shot prompts, and tool-using agents through executable listings.
Examples
Demonstrates a Google SWOT prompt and a Yahoo Finance News agent answering what happened with Microsoft stock.
What it assumes
Assumes basic LLM prompting and Python familiarity while demonstrating framework-based provider and agent integration.
What you can do after
Apply it via Python to invoke multiple LLM providers and build agents that retrieve financial information through tools.
How it connects
Connects LLMs, prompts, AI agents, data sources, tools, OpenAI, Anthropic, and Yahoo Finance.

Also explained in

Compare how 19 books explain LangChain →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Investing for Programmers. The section links point to the parts of the book it draws on.