FORWARD-DEPLOYED ENGINEERING 101 · FREE, NO MODEL KEY
Understand it.
Then build it.
You can be an experienced engineer and still be new to agents. Start with what each thing is and how it helps a person do useful work. Explore 64 original introductions across software, agents, cloud, security and delivery. Start here without a model key; each topic connects to deeper instruction and practice.
A place to start.
Choose a short reading route, or look up a concept below.
- 101UnderstandPlain language, visual walkthrough, vocabulary
- 102Build with guidanceOriginal lessons, examples and knowledge checks
- 103Practise and explainRunnable labs, failure cases and handover
An open-source software framework
What is LangChain?
LangChain is a software framework with building blocks for applications that use language models. You use it from languages such as Python or JavaScript to connect a model, give it tools and run an agent loop. LangChain is not a model, a programming language or a replacement for your application's security rules.
It can save you from writing every model integration and tool-calling loop yourself. You still need to understand the task, validate tool inputs and test the behavior you deliver.
UNDERSTAND THE SYSTEM
LangChain assembles models, tools and an agent loop
LangChain is an application framework. Its model integrations, tool interfaces and agent abstractions help you assemble an AI application without writing every integration from scratch.
Read the connections in plain English
- 01Your application → LangChain agent
The application supplies a task and trusted execution context.
- 02LangChain agent → Model integration
The agent passes messages and allowed tool definitions to the model.
- 03Model integration → Your lookup tool
Framework orchestration dispatches a proposed call; the tool still enforces access.
- 04Your lookup tool → LangChain agent
The result returns to the agent loop for the next model call or stopping decision.
- 05LangChain agent → Application result
The application receives the final output and handles it according to its contract.
Check your understanding: Does choosing LangChain also choose your model?
No. The framework integrates with model providers. You still select a supported model, credentials, data policy and cost limits; the framework is not the model itself.
CONNECT IT TO WHAT YOU KNOW
Start with something familiar.
If you have used a web framework to assemble routing, handlers and middleware, the role is familiar: LangChain provides building blocks and abstractions for assembling model-and-tool applications.
LangChain is a software framework. It does not supply the business authority of a tool or guarantee that an agent's answer is correct.
Words worth knowing
- Framework
- Reusable software that supplies structure and common building blocks for your application.
- Integration
- Code that connects your application to another model, tool or service.
- create_agent
- LangChain's entry point for configuring and running an agent loop.
Useful foundations
Open a definition and diagram here. Your lesson stays in place.
An application built around an AI modelWhat is an AI agent?
QUICK REFERENCE / 101
What is an AI agent?
An AI agent is software that uses an AI model to choose some of the steps needed to complete a task. It can call tools, inspect their results and decide what to do next within limits set by the application. The model is one component; the agent also needs code, tools and rules about when to stop.
An FDE needs to decide when model-driven choices help a real task and when a predictable sequence is enough. An agent is useful only if it improves the work and stays within its allowed scope.
A software development kitWhat is an SDK?
QUICK REFERENCE / 101
What is an SDK?
An SDK is a collection of code and supporting tools that helps you use a platform from a programming language. A model-provider SDK can turn a Python method call into an authenticated HTTP request and parse its response. The SDK is not the model or the remote service.
FDEs integrate models, gateways and business systems. Knowing the underlying contract lets you diagnose failures when an SDK hides details.
ONE EXAMPLE / FICTIONAL CASE
Follow the connections.
Think about the maintenance assistant. LangChain helps connect the model to a lookup function. Your own application still decides which procedures the signed-in person can read and whether any action may run.
LangChain: the agent message loop
Follow a tool proposal through application checks, a matching tool result and the next model call.
Choose a chapter to pause at that moment. Press play when you’re ready.
Read the complete visual transcript
- LangChain assembles model-and-tool applications. A model proposes actions; application code runs tools and enforces access.
- The first model call receives the user message and the permitted tool descriptions. Our example asks for stock of item W-17.
- The model returns a structured tool call: lookup_stock, item W-17, call ID c01. This message has not run the function.
- The application validates the arguments and checks read access before dispatching the permitted lookup function.
- The function returns eight available units. The tool-result message carries tool_call_id c01, matching the original proposal.
- The second model call receives the conversation, including the tool proposal and its matching result. Tool output is new input.
- Here the model returns an answer: eight units available. An agent may loop again; the application must enforce its stopping limits.
- In this illustration: two model calls and one tool execution. The framework does not make an answer correct or grant business permission.
UNDERSTAND THE SYSTEM
LangChain assembles models, tools and an agent loop
LangChain is an application framework. Its model integrations, tool interfaces and agent abstractions help you assemble an AI application without writing every integration from scratch.
Choose the ingredients
Read the full worked example
- 01Choose the ingredients
A support application needs one model and a read-only order lookup. LangChain supplies common interfaces for wiring them together.
Ingredients: task + model integration + lookup_order tool
- 02Use a tool
The model asks for order 104. The tool checks the caller's scope rather than trusting a tenant ID invented by the model.
Tool result: order: 104 · state: dispatched
- 03Return a bounded answer
The application receives an answer based on the lookup and stops within its configured budget.
Outcome: Order 104 has been dispatched.
Read the connections in plain English
- 01Your application → LangChain agent
The application supplies a task and trusted execution context.
- 02LangChain agent → Model integration
The agent passes messages and allowed tool definitions to the model.
- 03Model integration → Your lookup tool
Framework orchestration dispatches a proposed call; the tool still enforces access.
- 04Your lookup tool → LangChain agent
The result returns to the agent loop for the next model call or stopping decision.
- 05LangChain agent → Application result
The application receives the final output and handles it according to its contract.
Check your understanding: Does choosing LangChain also choose your model?
No. The framework integrates with model providers. You still select a supported model, credentials, data policy and cost limits; the framework is not the model itself.
Work through it, step by step.
Connect a model
Choose a model integration. The model will interpret the request and propose a response or tool call.
What you have now: A model that accepts your application's messages
Provide a tool
Describe a procedure-lookup function and its inputs. Check permissions in the function's application boundary.
What you have now: A lookup the model can request, not unrestricted database access
Run and inspect
Let the agent loop use the returned information. Inspect which tool it requested and whether the final draft is supported.
What you have now: A draft plus a record of how it was produced
LANGCHAIN · FOLLOW THE CONVERSATION
The model asks. Your code does the work.
A teammate needs a draft based on a maintenance procedure. Follow a proposed lookup into an ordinary Python function, then watch its result return to the model. Compare a source the application allows with one it refuses. This replays a local LangChain run with a scripted stand-in for the model, so no model key is needed.
P1 belongs to the host's synthetic north scope. The permitted excerpt returns to the model adapter, which prepares a draft.
ONE TASK · TWO MODEL CALLS · ONE TOOL FUNCTION
- A request to run code
- The result becomes context
The model proposes an action. Your application executes the allowed function. Its result goes back to the model.
A person supplies the task
The application starts with the user's request and a separate system prompt asking for a supported draft. This scripted case selects P1 or P9; it does not infer the identifier from the request. No function has run.
- Model calls so far
- 0
- Function runs so far
- 0
Prepare a synthetic operator draft.
Inspect the recorded JSON
{
"type": "human",
"content": "Prepare a synthetic operator draft."
}Reference output from LangChain 1.4.6 with LangGraph 1.2.16. Model choices use a scripted test adapter; these are observable messages, not hidden reasoning. The Python tool and framework loop ran locally. These controls replay that output without running code, sending data or recording progress.
Use the free setup, run both cases, then change one allowed source and check the result.
Open the runnable first-agent lab ↗FROM RECOGNITION TO REASONING
Explain the conversation around one Python function.
- 01
Before stepping through, predict how many model calls and function runs happen just after the proposal and at the end.
- 02
Compare P1 and P9. Match the call ID to its result, then name what the second model call receives and what stays in the application.
- 03
Run the linked Python lab. Change only the allowed synthetic source in a separate copy, and verify that the draft changes while the other source stays unavailable.
An annotated exchange, two actual local outputs and a checked source change.
Compare your reasoning when you are ready
A tool proposal is data. The framework dispatches it, and the Python function checks access before returning a result. The result becomes input to another model call. Both recorded cases run the function once and call the scripted model twice; one returns a draft, the other withholds it. No sending tool or live inference model is present.
Keep notes in your own working copy. Moving through these cards does not record completion.
TURN THE IDEA INTO USEFUL WORK
You can now go deeper.
Use LangChain for model, tool and agent-loop building blocks. Your application remains responsible for access, limits and useful results.
Academy lessons use your existing training access. Free guides stay open.
Learn with the original creators
Start with Module 1: Foundational Models and Tools. Compare those building blocks with the message exchange here, then return for the local first-agent lab. Provider registration may be required.