{"id":1020,"date":"2026-11-25T15:55:34","date_gmt":"2026-11-25T15:55:34","guid":{"rendered":"https:\/\/quickref.me\/blog\/?p=1020"},"modified":"2026-11-25T15:55:34","modified_gmt":"2026-11-25T15:55:34","slug":"ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics","status":"publish","type":"post","link":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/","title":{"rendered":"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">A working reference for the four things you touch on every agent project: the orchestration graph, the agent runtime, the tool protocol, and the evaluation loop. Code is current as of September 2026. Links go to primary docs, because these APIs move.<\/span><\/p>\n<h2><b>Pick your layer first<\/b><\/h2>\n<table>\n<thead>\n<tr>\n<th><b>Layer<\/b><\/th>\n<th><b>What it gives you<\/b><\/th>\n<th><b>Reach for it when<\/b><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><b>LangGraph<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Explicit state machine: nodes, edges, conditional routing, checkpointed state<\/span><\/td>\n<td><span style=\"font-weight: 400;\">You need loops, branching, human-in-the-loop pauses, or several cooperating agents<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>OpenAI Agents SDK<\/b><\/td>\n<td><span style=\"font-weight: 400;\">A runner that executes the tool loop, handoffs, guardrails, sessions, tracing<\/span><\/td>\n<td><span style=\"font-weight: 400;\">You want the loop run for you and one specialist or a small team of agents<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>MCP<\/b><\/td>\n<td><span style=\"font-weight: 400;\">A standard protocol for exposing tools, resources and prompts to any host<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Your tools should be reusable across hosts instead of hard-wired into one app<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>Evals<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Datasets, graders, trajectory checks, regression runs<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Always. Without this you cannot tell whether a change helped<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">These are not competitors. A common production shape is a LangGraph graph whose nodes call agents, with tools exposed over MCP, and an eval suite running against recorded traces.<\/span><\/p>\n<h2><b>LangGraph<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Docs: <\/span><a href=\"https:\/\/docs.langchain.com\/oss\/python\/langgraph\/graph-api\"><span style=\"font-weight: 400;\">LangGraph Graph API<\/span><\/a><span style=\"font-weight: 400;\">. Requires Python 3.10 or later. Install with pip install langgraph.<\/span><\/p>\n<h3><b>Minimal graph<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">from typing_extensions import TypedDict<\/span><\/p>\n<p><span style=\"font-weight: 400;\">from typing import NotRequired<\/span><\/p>\n<p><span style=\"font-weight: 400;\">from langgraph.graph import StateGraph, START, END<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">class State(TypedDict):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0topic: str<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0result: NotRequired[str]<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def work(state: State):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0return {&#8220;result&#8221;: f&#8221;handled {state[&#8216;topic&#8217;]}&#8221;} \u00a0 # return a partial update<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder = StateGraph(State)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder.add_node(&#8220;work&#8221;, work)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder.add_edge(START, &#8220;work&#8221;)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder.add_edge(&#8220;work&#8221;, END)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">graph = builder.compile()<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">graph.invoke({&#8220;topic&#8221;: &#8220;refunds&#8221;})<\/span><\/p>\n<h3><b>Conditional routing and a tool loop<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">from langgraph.prebuilt import ToolNode, tools_condition<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder = StateGraph(State)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder.add_node(&#8220;agent&#8221;, call_model)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder.add_node(&#8220;tools&#8221;, ToolNode(tools))<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder.add_edge(START, &#8220;agent&#8221;)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder.add_conditional_edges(&#8220;agent&#8221;, tools_condition)\u00a0 # -&gt; &#8220;tools&#8221; or END<\/span><\/p>\n<p><span style=\"font-weight: 400;\">builder.add_edge(&#8220;tools&#8221;, &#8220;agent&#8221;)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">graph = builder.compile()<\/span><\/p>\n<h3><b>Message state<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">from typing import Annotated, Sequence<\/span><\/p>\n<p><span style=\"font-weight: 400;\">from langchain_core.messages import BaseMessage<\/span><\/p>\n<p><span style=\"font-weight: 400;\">from langgraph.graph.message import add_messages<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">class AgentState(TypedDict):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0messages: Annotated[Sequence[BaseMessage], add_messages]\u00a0 # appends, not replaces<\/span><\/p>\n<h3><b>Persistence and threads<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">from langgraph.checkpoint.memory import InMemorySaver<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">graph = builder.compile(checkpointer=InMemorySaver())<\/span><\/p>\n<p><span style=\"font-weight: 400;\">config = {&#8220;configurable&#8221;: {&#8220;thread_id&#8221;: &#8220;user-42&#8221;}}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">graph.invoke({&#8220;topic&#8221;: &#8220;refunds&#8221;}, config) \u00a0 # same thread_id resumes state<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">InMemorySaver is for development only. It loses everything on restart.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Local persistence: SqliteSaver. Managed Postgres: AsyncPostgresSaver.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Prebuilt shortcut: create_react_agent in langgraph.prebuilt, also exposed as create_agent in langchain.agents in v1. Start prebuilt, drop to StateGraph when you need extra state keys or custom branching.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Runaway loops raise GraphRecursionError. Lower recursion_limit while debugging and add an explicit exit condition in state.<\/span><\/li>\n<\/ul>\n<h2><b>OpenAI Agents SDK<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Docs: <\/span><a href=\"https:\/\/openai.github.io\/openai-agents-python\/\"><span style=\"font-weight: 400;\">OpenAI Agents SDK<\/span><\/a><span style=\"font-weight: 400;\">. Install with pip install openai-agents. Provider-agnostic, and uses the Responses API by default for OpenAI models.<\/span><\/p>\n<h3><b>Hello world<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">from agents import Agent, Runner<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">agent = Agent(name=&#8221;Assistant&#8221;, instructions=&#8221;You are a helpful assistant&#8221;)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">result = Runner.run_sync(agent, &#8220;Write a haiku about recursion.&#8221;)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">print(result.final_output)<\/span><\/p>\n<h3><b>Function tools<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">from agents import Agent, Runner, function_tool<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">@function_tool<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def get_weather(city: str) -&gt; str:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;&#8221;Return the weather for a city.&#8221;&#8221;&#8221;\u00a0 \u00a0 \u00a0 # docstring becomes the description<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0return f&#8221;Sunny in {city}&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">agent = Agent(name=&#8221;Weather&#8221;, instructions=&#8221;Be brief.&#8221;, tools=[get_weather])<\/span><\/p>\n<p><span style=\"font-weight: 400;\">result = await Runner.run(agent, input=&#8221;Weather in Lviv?&#8221;)<\/span><\/p>\n<h3><b>Handoffs<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">spanish = Agent(name=&#8221;Spanish agent&#8221;, instructions=&#8221;You only speak Spanish.&#8221;)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">english = Agent(name=&#8221;English agent&#8221;, instructions=&#8221;You only speak English.&#8221;)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">triage = Agent(<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0name=&#8221;Triage agent&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0instructions=&#8221;Handoff to the agent matching the language of the request.&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0handoffs=[spanish, english],<\/span><\/p>\n<p><span style=\"font-weight: 400;\">)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">result = await Runner.run(triage, input=&#8221;Hola, como estas?&#8221;)<\/span><\/p>\n<h3><b>Guardrails<\/b><\/h3>\n<p><span style=\"font-weight: 400;\"># A guardrail returns GuardrailFunctionOutput; set tripwire_triggered to stop the run.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># The runner then raises InputGuardrailTripwireTriggered or<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># OutputGuardrailTripwireTriggered, which you catch and handle.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">agent = Agent(<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0name=&#8221;Support&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0instructions=&#8221;Help the customer.&#8221;,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0input_guardrails=[no_pii],<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0output_guardrails=[no_promises],<\/span><\/p>\n<p><span style=\"font-weight: 400;\">)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Input guardrails run in parallel with the agent and only on the first agent in a run.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Handoffs bypass the function-tool pipeline, so tool guardrails do not apply to the handoff call itself.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Hosted tools such as WebSearchTool, FileSearchTool, HostedMCPTool, CodeInterpreterTool and ImageGenerationTool also skip the tool-guardrail pipeline.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Sessions give you conversation history across runs. Tracing is built in. Lifecycle callbacks come from RunHooks and AgentHooks, including on_agent_start, on_llm_end, on_agent_end and on_handoff.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Force a tool call with ModelSettings.tool_choice. Expose an agent as a tool with Agent.as_tool(). Copy with agent.clone(), and pass a new list if you do not want the clone sharing the original tools list.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Pass dependencies through context=&#8230; on Runner.run(), and every agent, tool and handoff receives it.<\/span><\/li>\n<\/ul>\n<h2><b>MCP<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Three primitives, one message format. Tools are callable actions, resources are data addressed by URI, prompts are reusable templates. Everything travels as JSON-RPC 2.0 over stdio or Streamable HTTP, and SSE is deprecated though still supported by some tooling. Spec changes below come from the <\/span><a href=\"https:\/\/blog.modelcontextprotocol.io\/posts\/2026-07-28\/\"><span style=\"font-weight: 400;\">MCP specification revision of 28 July 2026<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h3><b>Client call, Python SDK<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">import asyncio<\/span><\/p>\n<p><span style=\"font-weight: 400;\">from mcp import Client<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">async def main() -&gt; None:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0async with Client(&#8220;http:\/\/localhost:8000\/mcp&#8221;) as client:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0result = await client.call_tool(&#8220;add&#8221;, {&#8220;a&#8221;: 1, &#8220;b&#8221;: 2})<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0print(result.structured_content)\u00a0 \u00a0 \u00a0 # {&#8216;result&#8217;: 3}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">asyncio.run(main())<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># A URL means Streamable HTTP. Client can also launch a local server<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># as a stdio subprocess, or take a custom transport.<\/span><\/p>\n<h3><b>What changed in the 2026-07-28 revision<\/b><\/h3>\n<table>\n<thead>\n<tr>\n<th><b>Change<\/b><\/th>\n<th><b>What it means for you<\/b><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><b>Mcp-Method and Mcp-Name headers required on Streamable HTTP<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Gateways, rate limiters and WAFs can route and meter without parsing JSON bodies<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>ttlMs and cacheScope on tools\/list, prompts\/list, resources\/list, resources\/read<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Capability listings are cacheable, so stop re-listing on every turn<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>MRTR replaces server-initiated elicitation, sampling and roots requests<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Server returns resultType &#8220;input_required&#8221; with what it needs, and the client retries with inputResponses attached<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>Tasks moved to the io.modelcontextprotocol\/tasks extension<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Long-running work is polled through tasks\/get rather than held open<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Transport rule of thumb: stdio for local and most interoperable, Streamable HTTP for anything remote.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">HTTP servers use a subset of OAuth 2.1. An unauthenticated request should get a 401 with a WWW-Authenticate header pointing at protected resource metadata.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Treat every tool result as untrusted input. Text inside a document or page can contain instructions, and that is prompt injection with a delivery mechanism.<\/span><\/li>\n<\/ul>\n<h2><b>Evaluation basics<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">An agent without evals is a demo. The minimum viable setup is a dataset of real inputs with known-good outcomes, a grader per outcome type, and a run you can repeat on every change.<\/span><\/p>\n<table>\n<thead>\n<tr>\n<th><b>What to measure<\/b><\/th>\n<th><b>How<\/b><\/th>\n<th><b>Catches<\/b><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><b>Final answer quality<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Exact match, or an LLM judge with a rubric and few-shot examples<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Regressions from prompt, model or retrieval changes<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>Tool choice<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Assert which tools were called, in what order<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The agent taking an expensive or wrong path to a right answer<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>Trajectory<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Step count, loops, retries per run<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Runaway loops and quiet cost growth<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>Retrieval<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Precision and recall of retrieved passages against labelled sets<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Answers that are right for the wrong reason<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>Refusal behaviour<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Cases where the correct output is I do not know<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Confident answers with no grounding<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>Cost and latency<\/b><\/td>\n<td><span style=\"font-weight: 400;\">Tokens and wall clock per completed task, p50 and p95<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The version that got better and twice as expensive<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Build the dataset from production traces, not imagination. Twenty real cases beat two hundred invented ones.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Version the eval set. When it changes, say so, or your trend line is meaningless.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Grade the steps, not only the ending. Two runs with the same answer and different tool paths are not equally good.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Pin your model version in CI. A silent provider update is otherwise indistinguishable from your own regression.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Keep a small adversarial set: prompt injection in tool output, missing data, contradictory instructions, and inputs where refusing is correct.<\/span><\/li>\n<\/ul>\n<h2><b>Failure modes worth memorising<\/b><\/h2>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">No exit condition. Add a step budget in state and a recursion limit, not just a hopeful prompt.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Tool descriptions written for humans. The model reads them as the spec, so name arguments precisely and say what the tool must not be used for.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Silent retries. Retrying a non-idempotent tool call duplicates the side effect. Make writes idempotent or record an operation key.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Unbounded context. Every appended message is paid for on every subsequent turn. Summarise or window it deliberately.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">State stored only in the transport. If a restart loses the run, it was never persisted. Compile with a checkpointer.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Permissions ignored during retrieval. Access rules do not survive into an index unless someone carries them across and filters per user.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">No human gate on consequential actions. Anything that spends money, emails a customer or writes to a system of record needs an approval step and a log.<\/span><\/li>\n<\/ul>\n<h2><b>Credits<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Compiled by the AI agent development team at <\/span><a href=\"https:\/\/litslink.com\/\"><span style=\"font-weight: 400;\">https:\/\/litslink.com\/<\/span><\/a><span style=\"font-weight: 400;\">. Verify APIs against the primary documentation linked above before shipping, since all three move quickly.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A working reference for the four things you touch on every agent project: the orchestration graph, the agent runtime, the tool protocol, and the evaluation loop. Code is current as &hellip; <a href=\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1020","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics - Blog QuickRef<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics - Blog QuickRef\" \/>\n<meta property=\"og:description\" content=\"A working reference for the four things you touch on every agent project: the orchestration graph, the agent runtime, the tool protocol, and the evaluation loop. Code is current as &hellip; Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog QuickRef\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-25T15:55:34+00:00\" \/>\n<meta name=\"author\" content=\"tedm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"tedm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/\"},\"author\":{\"name\":\"tedm\",\"@id\":\"https:\/\/quickref.me\/blog\/#\/schema\/person\/781b09d7f4bdae81ce0d191fb1b1d5ec\"},\"headline\":\"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics\",\"datePublished\":\"2026-11-25T15:55:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/\"},\"wordCount\":1471,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/quickref.me\/blog\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/\",\"url\":\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/\",\"name\":\"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics - Blog QuickRef\",\"isPartOf\":{\"@id\":\"https:\/\/quickref.me\/blog\/#website\"},\"datePublished\":\"2026-11-25T15:55:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/quickref.me\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/quickref.me\/blog\/#website\",\"url\":\"https:\/\/quickref.me\/blog\/\",\"name\":\"Blog QuickRef\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/quickref.me\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/quickref.me\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/quickref.me\/blog\/#organization\",\"name\":\"Blog QuickRef\",\"url\":\"https:\/\/quickref.me\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/quickref.me\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/quickref.me\/blog\/wp-content\/uploads\/2023\/10\/cropped-wuickref.png\",\"contentUrl\":\"https:\/\/quickref.me\/blog\/wp-content\/uploads\/2023\/10\/cropped-wuickref.png\",\"width\":236,\"height\":63,\"caption\":\"Blog QuickRef\"},\"image\":{\"@id\":\"https:\/\/quickref.me\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/quickref.me\/blog\/#\/schema\/person\/781b09d7f4bdae81ce0d191fb1b1d5ec\",\"name\":\"tedm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/quickref.me\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2689288940b2c1525bf9633d5f4c4b96d14ab0593b0ec8d5404a1f968810e963?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2689288940b2c1525bf9633d5f4c4b96d14ab0593b0ec8d5404a1f968810e963?s=96&d=mm&r=g\",\"caption\":\"tedm\"},\"sameAs\":[\"https:\/\/quickref.me\/blog\"],\"url\":\"https:\/\/quickref.me\/blog\/author\/tedm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics - Blog QuickRef","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/","og_locale":"en_US","og_type":"article","og_title":"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics - Blog QuickRef","og_description":"A working reference for the four things you touch on every agent project: the orchestration graph, the agent runtime, the tool protocol, and the evaluation loop. Code is current as &hellip; Read More","og_url":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/","og_site_name":"Blog QuickRef","article_published_time":"2026-11-25T15:55:34+00:00","author":"tedm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"tedm","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/#article","isPartOf":{"@id":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/"},"author":{"name":"tedm","@id":"https:\/\/quickref.me\/blog\/#\/schema\/person\/781b09d7f4bdae81ce0d191fb1b1d5ec"},"headline":"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics","datePublished":"2026-11-25T15:55:34+00:00","mainEntityOfPage":{"@id":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/"},"wordCount":1471,"commentCount":0,"publisher":{"@id":"https:\/\/quickref.me\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/","url":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/","name":"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics - Blog QuickRef","isPartOf":{"@id":"https:\/\/quickref.me\/blog\/#website"},"datePublished":"2026-11-25T15:55:34+00:00","breadcrumb":{"@id":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/quickref.me\/blog\/ai-agent-development-cheat-sheet-langgraph-openai-agents-sdk-mcp-and-evaluation-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/quickref.me\/blog\/"},{"@type":"ListItem","position":2,"name":"AI Agent Development Cheat Sheet: LangGraph, OpenAI Agents SDK, MCP and Evaluation Basics"}]},{"@type":"WebSite","@id":"https:\/\/quickref.me\/blog\/#website","url":"https:\/\/quickref.me\/blog\/","name":"Blog QuickRef","description":"","publisher":{"@id":"https:\/\/quickref.me\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/quickref.me\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/quickref.me\/blog\/#organization","name":"Blog QuickRef","url":"https:\/\/quickref.me\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/quickref.me\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/quickref.me\/blog\/wp-content\/uploads\/2023\/10\/cropped-wuickref.png","contentUrl":"https:\/\/quickref.me\/blog\/wp-content\/uploads\/2023\/10\/cropped-wuickref.png","width":236,"height":63,"caption":"Blog QuickRef"},"image":{"@id":"https:\/\/quickref.me\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/quickref.me\/blog\/#\/schema\/person\/781b09d7f4bdae81ce0d191fb1b1d5ec","name":"tedm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/quickref.me\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2689288940b2c1525bf9633d5f4c4b96d14ab0593b0ec8d5404a1f968810e963?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2689288940b2c1525bf9633d5f4c4b96d14ab0593b0ec8d5404a1f968810e963?s=96&d=mm&r=g","caption":"tedm"},"sameAs":["https:\/\/quickref.me\/blog"],"url":"https:\/\/quickref.me\/blog\/author\/tedm\/"}]}},"_links":{"self":[{"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/posts\/1020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/comments?post=1020"}],"version-history":[{"count":1,"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/posts\/1020\/revisions"}],"predecessor-version":[{"id":1021,"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/posts\/1020\/revisions\/1021"}],"wp:attachment":[{"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/media?parent=1020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/categories?post=1020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/quickref.me\/blog\/wp-json\/wp\/v2\/tags?post=1020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}