Özer Cem KELAHMETKELAHMET
Agentic AI

Agentic AI

Agentic AI end to end: how an agent runs step by step, the frameworks (LangChain, LangGraph, CrewAI and the agent SDKs), tools and MCP, memory, multi-agent systems, tracing with LangSmith and Langfuse, evaluation with DeepEval and RAGAS, guardrails, tutorials and the latest trends, with simulations you can run.

Download Markdown

How an agent works, step by step

The whole agentic stack in eight steps, from the first instruction to production. Each step links to the guide and the simulation that go deeper.

1

Give it a goal and instructions

An agent starts from a task and a system prompt that says what it may do and how to report back. Clear instructions, a list of tools and a definition of done matter more than any framework.

2

Let the model reason and choose

On each turn the LLM reads the conversation and decides: answer now, or call a tool. This reason-act-observe cycle is the ReAct loop, and it repeats until the task is done or a step limit is hit.

3

Call tools

The model emits a structured tool call (function calling); your code runs it and returns the result. The Model Context Protocol standardises how tools, data and prompts are offered to any agent.

4

Keep state and memory

Every step adds to the agent's state: messages, tool results, intermediate decisions. LangGraph stores it in checkpoints so a run can pause, resume or be replayed; long-term memory keeps facts across sessions.

5

Control the flow

Real agents are graphs: routing, loops, retries, parallel branches, hand-offs to other agents and pauses for a human to approve risky actions.

6

Trace every step

Tracing records each LLM call, tool call, token count, latency and cost as a tree of spans. LangSmith and Langfuse show why an agent did what it did and where time and money went.

7

Evaluate

Test the final answers and the path to them on a fixed dataset: task success, tool-call correctness, faithfulness to retrieved context. DeepEval, RAGAS and LLM-as-judge turn this into repeatable scores.

8

Guard and deploy

Limit permissions, sandbox tools, defend against prompt injection, set budgets and monitor in production, then improve the agent from the traces and evaluations.

November 2026 42

Agent tutorials14 minNewTutorial: build a read-only SQL data agent with LangChain 1.5 and test it without an LLMBuild a LangChain 1.5 agent that answers questions from SQLite, recovers from SQL errors, obeys call limits and passes four pytest tests with a scripted model.Read Tree of Thoughts12 minNewTree of Thoughts explained: propose, evaluate and search with a runnable Game of 24How Tree of Thoughts makes a model search: proposals, sure/likely/impossible values, BFS with beam b=5, the paper's 74% Game of 24 result and runnable code.Read Other agent frameworks14 minNewsmolagents 1.26 in depth: code agents versus JSON tool calls, sandboxes and managed agentsRun Hugging Face smolagents 1.26 offline with a scripted model: CodeAgent vs ToolCallingAgent, blocked imports, answer checks, max_steps and managed agents.Read Self-consistency11 minNewSelf-consistency explained: sample many reasoning paths, vote, and know when it paysHow self-consistency samples several chains of thought and majority-votes the answer: the paper's algorithm and gains, agreement as confidence, cost and code.Read ReWOO11 minNewReWOO explained: plan every tool call up front and cut agent tokens, step by stepHow ReWOO plans all tool calls in one pass with #E placeholders, runs them without the LLM, then solves: the 5x token claim, worked maths and runnable code.Read Reflexion12 minNewReflexion explained: agents that learn from failure with verbal feedback, step by stepHow Reflexion turns failures into written lessons an agent reuses on its next try: actor, evaluator, self-reflection, memory, paper results and LangGraph code.Read ReAct13 minNewReAct explained: the reason-act-observe loop from the paper to LangChain 1.5 codeHow ReAct interleaves thoughts, tool calls and observations: the 2022 paper step by step, its prompt, results, costs and runnable Python and LangChain 1.5 code.Read Plan-and-Execute11 minNewPlan-and-execute agents explained: planner, executor and replanner in LangGraph 1.2How plan-and-execute agents work: Plan-and-Solve prompting, the planner, executor and replanner loop, a runnable LangGraph 1.2 graph, costs and trade-offs.Read Trends11 minNewAnt's Ling-3.2-air and LingSante-3.1: open hybrid-linear MoE models for agents and medicineAnt Group's inclusionAI released Ling-3.2-air and two LingSante medical models under MIT. How KDA linear attention, 512-expert MoE and MTP decoding work.Read LATS11 minNewLATS explained: Monte Carlo tree search for language agents, step by step with codeHow Language Agent Tree Search joins ReAct, reflection and Monte Carlo tree search: selection, expansion, values, rollouts, backpropagation and code.Read Agent trends14 minNewAgent trends this week: LangSmith Tool Gateway, Agent 365 identities and manager agentsLangSmith Tool Gateway, Agent 365 identities, Azure Monitor agent tracing, Devin Bots and Replit Missions: what shipped on 17 to 19 November and how it works.Read Agent routing11 minNewAgent routing explained: send each task to the cheapest model that can do it wellHow routers and cascades pick a model per request: classifier routing, confidence cascades, RouteLLM and FrugalGPT results, LangChain 1.5 code and cost maths.Read Agentic AI basics12 minNewWhat is an AI agent? Agents versus chatbots and workflows, explained with runnable codeA plain guide to AI agents: how they differ from chatbots and fixed workflows, the loop at their core, the five workflow patterns and when an agent is worth it.Read Engineering14 minNewStateless MCP explained: how multi round-trip requests replace sessions and callbacksHow the MCP 2026-07-28 spec drops sessions and the initialize handshake, and how multi round-trip requests, requestState and cache hints work in practice.Read End-to-end workflows14 minNewAn agentic workflow end to end: build, guard, trace, evaluate and deploy a refund agentBuild a refund agent with LangChain 1.5, guard it with approvals and limits, trace it in Langfuse, gate releases with DeepEval and RAGAS, deploy with LangGraph.Read RAGAS11 minNewRAGAS 0.4.4 in practice: faithfulness, tool call metrics and experiments, step by stepRAGAS 0.4.4 fixes a broken import and keeps the 0.4 collections API. Learn how faithfulness, ToolCallAccuracy, ToolCallF1 and experiments score agents.Read Agent tutorials14 minNewTutorial: build and test a typed support agent with Pydantic AI 2.71, step by stepBuild a typed order-support agent with Pydantic AI 2.71: dependencies, tools, retries, structured output, usage limits and pytest tests that never call a model.Read Other agent frameworks12 minNewOne agent in seven frameworks: CrewAI, Agent Framework, OpenAI, Claude, ADK and moreOne order-status agent built in CrewAI, Microsoft Agent Framework, OpenAI Agents SDK, Claude Agent SDK, Google ADK, LlamaIndex and smolagents, with tested code.Read Multi-agent systems13 minNewMulti-agent systems in practice: supervisors, handoffs, swarms and subagents comparedHow supervisors, handoffs, swarms, routers and subagents work, with runnable LangGraph 1.2 code, counted model calls and token costs to help you pick a pattern.Read Tools and MCP11 minNewBuilding MCP tools with Python SDK 2.3: typed tools, safe errors and the 2026-07-28 protocolA runnable MCP Python SDK 2.3 walkthrough: MCPServer tools with typed output, ToolError versus crashes, resources, in-process clients and protocol discovery.Read Agent guardrails11 minNewLayered agent guardrails you can run: PII redaction, risk classifiers and human approvalBuild layered guardrails for an AI agent with LangChain 1.5: redact PII, cap tool calls, block risky commands with a classifier and require human approval.Read LangSmith11 minNewLangSmith SDK 0.16 explained: traceable spans, local-only evaluations and review queuesHow LangSmith SDK 0.16 traces agents with @traceable, runs evaluate() locally with the new upload_runs flag, and what the new SQL and review APIs add.Read LangGraph11 minNewLangGraph 1.2 in depth: state, checkpoints, human interrupts, retries and time travelA runnable LangGraph 1.2.24 walkthrough: typed state and reducers, conditional edges, InMemorySaver checkpoints, interrupt and resume, retry policies, forks.Read LangChain13 minNewLangChain 1.5 middleware explained: hooks, limits, tool errors and the new routersHow LangChain 1.5 create_agent middleware works step by step: hooks, order, call limits, tool errors, retries and the new beta model router and auto mode.Read DeepEval11 minNewDeepEval 4.3 agent metrics in depth: tool checks, permission gates, loop detection, G-EvalHow DeepEval 4.3.4 scores AI agents: ToolCorrectness, ToolPermission and AgentLoopDetection formulas, G-Eval with an offline judge, and how to build CI gates.Read Agent observability13 minNewAgent observability in practice: Langfuse 5, OpenTelemetry GenAI spans, cost and latencyTrace AI agents with Langfuse 5.2, OpenTelemetry GenAI spans and Phoenix, then turn spans into p95 latency and cost per run. Runnable offline code and numbers.Read Agent memory15 minNewAgent memory explained: threads, long-term stores, trimming and summaries in LangGraph 1.2How agents remember: thread checkpoints for short-term memory, namespaced stores for long-term facts, and trimming or summaries for small context. With code.Read Agent steps11 minNewThe agent loop step by step: instructions, tool calls, observations, errors and stoppingFollow one AI agent run step by step in 60 lines of Python: tool calls, observations, an unknown-tool error, loop guards and stop rules versus frameworks.Read Agent trends12 minNewAgent trends this week: pass^k in ADK, OpenAI SDK session tools, Phoenix 22 cost trackingWhat changed in agent frameworks from 16 to 22 November 2026: ADK 2.15 reliability metrics and sandboxes, OpenAI Agents SDK 0.25, Phoenix 22 cost tracking.Read Agent evaluation12 minNewAgent evaluation step by step: trajectory matching, LLM judges, pass^k and benchmark mathsHow to evaluate AI agents: trajectory match modes, LLM judges with agreement checks, pass@k versus pass^k, confidence intervals and what tau-bench 2.0 changed.Read Trends15 minNewPerformance Factory: how OpenAI checks the agents that debug ChatGPT in productionOpenAI runs Codex agents on ChatGPT slowdowns. How durable task state, adversarial review, leak-free backtests and a synthetic Google web keep them honest.Read Trends14 minNewGemini 4 Neon explained: model tiers, thinking levels, cached input and orchestrator agentsGoogle's Gemini 4 Neon sits between Carbon and Hydrogen. Learn how model tiers, thinking levels, 95% cached input and orchestrator subagents shape cost.Read Trends14 minNewContext has a price: why trimming a coding agent's prompt can double its billA 20,000-run study shows retrieved code and observation masking can raise coding agent cost under prefix caching. How the token bill works and how to measure.Read Trends15 minNewOpenAI lets outside evaluators inside as California sues over agents that escaped a testOpenAI gives Apollo, METR, Transluce and Goodfire inside access to models and data, days before California sues over agents alleged to have escaped a test.Read Engineering14 minNewAgentic AI frameworks explained: the Lang family and every major alternativeEvery agent framework that matters in November 2026: LangChain, LangGraph, LangSmith, Langflow, Langfuse and the rest, compared with code and a guide to choosing.Read Concepts8 minNewRAG types explained: naive, hybrid, reranked, HyDE, corrective, agentic and GraphRAGThe main kinds of retrieval-augmented generation, what each fixes, what it costs and when to use it, with a live simulation that scores each on one corpus.Read Trends14 minNewAI agents get a front door and a wallet: Poppy 1.0, ChatGPT Wallet and Uber's intent checksHow Sierra's Poppy 1.0, OpenAI's ChatGPT Wallet and Uber's intent checks fit together: discovery files, OAuth delegation, UCP checkout and tokenized payments.Read Engineering12 minNewBuilding an agentic AI system from scratch with LangGraph, Langfuse, DeepEval and RAGASStep by step: build a tool-using RAG agent with LangGraph, trace it with Langfuse, test it with DeepEval and score retrieval with RAGAS, with a live simulation.Read Trends14 minNewSubagents become the default in coding agents: Antigravity, OpenCode and Copilot CLIAntigravity /teamwork, OpenCode 2.3.0 and Copilot CLI 1.0.111 make subagents the default. How orchestrator-worker agents, context, budgets and permissions work.Read Trends14 minNewRevolut, AMD and Mistral show coding agents moving to self-hosted open-weight modelsRevolut, AMD and Mistral point coding agents towards self-hosted open-weight models. How the serving stack, routing, evals, licences and the cost maths work.Read Trends14 minNewGoverning AI agent access with scoped credentials and undo buttonsA reported Palo Alto deal, Goldman's tool limits and a deleted syllabus show why AI agent credentials and permissions are becoming their own security category.Read Trends14 minNewAlways-on AI agents move from chat sessions to background teammatesPerplexity, Meta, DeepSeek and Airbnb moved agents towards persistent background work this week. How long-running agents are built, governed and budgeted.Read

October 2026 1

01Simulations 18

Interactive simulations of agent loops, tool calls, tracing and evaluation: change the settings and watch every step.

AgentsIntermediate4 minNewReal computationYour inputStep by stepWhy agent runs get expensive: tokens, context growth and prompt cachingTrace a twelve-step agent run: input tokens grow every step, cost grows with the square of the steps, and prompt caching changes the bill. Use your own trace.Open simulation AgentsBeginner4 minNewReal computationYour inputStep by stepCan you trust your LLM judge? Agreement with human labels and Cohen's kappaCalibrate an LLM judge against human labels: pick its threshold, measure agreement and Cohen's kappa, and see which answers it wrongly passes or fails.Open simulation AgentsIntermediate5 minNewReal computationYour inputStep by stepPrompt cache hits in an agent session, how lifetime, write premium and pauses set the billSimulate prompt caching across 24 agent calls: cache lifetime, hits and misses, write premium, read discount, break-even reads and the saving on the session.Open simulation AgentsIntermediate4 minNewReal computationYour inputStep by stepEvaluating a RAG agent: faithfulness, context precision and recall, step by stepScore a RAG agent like RAGAS and DeepEval do: faithfulness, context precision and context recall per question, a release bar, and how the metrics connect.Open simulation AgentsIntermediate5 minNewReal computationYour inputStep by stepAgent benchmark scores with confidence intervals and the cost of each resolved taskSimulate a coding agent's SWE-bench Verified score: Wilson confidence interval, test against a rival, funnel plot by repository and cost per resolved task.Open simulation AgentsIntermediate5 minNewReal computationYour inputStep by stepTool-call retries with exponential backoff, success rate, waiting time and extra loadSimulate retries for agent tool calls: success after M attempts, expected attempts, backoff with jitter, extra load and the chance a whole agent task succeeds.Open simulation AgentsIntermediate6 minNewReal computationYour inputStep by stepAgent step limits: how a turn cap trades solved tasks against cost per resolved taskSet a step limit on thirty coding-agent runs and see which get cut off, how the resolve rate falls, and why cost per resolved task has a minimum. Live numbers.Open simulation AgentsIntermediate5 minNewReal computationYour inputStep by stepContext compaction for agents: when to summarise the history and what it savesFit how fast an agent's context grows, set a compaction trigger and summary size, and run the loop to see when it summarises, how often, and what it saves.Open simulation AgentsBeginner5 minNewReal computationYour inputStep by stepLLM cascade simulation: answer with a small model, escalate hard queries, and save costSimulate a FrugalGPT-style LLM cascade on 30 queries: a scorer keeps or escalates the small model's answer. Set the threshold and see accuracy and cost move.Open simulation AgentsBeginner6 minNewReal computationYour inputStep by stepParallel versus sequential tool calls: waves, the critical path and agent latencyGroup an agent's tool calls into dependency waves and see how parallel calls cut run time to the critical path plus one model turn per wave. Live numbers.Open simulation AgentsIntermediate6 minNewReal computationYour inputStep by stepReflexion simulation: how self-written lessons raise an agent's success over retriesSimulate Reflexion on 24 ALFWorld-style tasks: compare plain retries with retries that carry written lessons, set memory size and trials, and see success grow.Open simulation AgentsIntermediate5 minNewReal computationYour inputStep by stepReWOO versus ReAct: how many tokens an agent saves by planning its tool calls up frontCompare ReAct and ReWOO on 20 HotpotQA-style questions: count the tokens each sends, see why ReAct grows with every step and how much planning once saves.Open simulation AgentsBeginner8 minScripted runCode labAgentic patterns: ReAct, plan and execute, reflection, multi-agent, routingSix ways to wire models, tools and people: ReAct, plan and execute, reflection, orchestrator and workers, routing and human approval.Open simulation AgentsIntermediate8 minScripted runCode labAn agent run: LangGraph loop, Langfuse trace, DeepEval and RAGAS scoresFollow an AI agent step by step: the LangGraph loop between model and tools, the trace as spans with time and tokens, and evaluation scores.Open simulation AgentsIntermediate10 minScripted runCode labLangGraph state, checkpoints, interrupts and time travelStep through a LangGraph run: the state after every node, saved checkpoints, an interrupt for human approval, and time travel from an earlier checkpoint.Open simulation AgentsIntermediate10 minReal tools, rule-based plannerYour inputCode labReAct agent: thought, tool call, observation, with your own questionAsk your own question and watch an agent plan, call a calculator, unit converter, date tool or knowledge-base search, read the result and answer.Open simulation AgentsIntermediate10 minReal computationYour inputCode labGuardrails: prompt injection, PII masking and grounding checksType any message and watch input and output guardrails detect prompt injection, mask cards and emails, stop off-topic requests and remove unsupported sentences.Open simulation AgentsAdvanced12 minReal tools, rule-based plannerYour inputCode labMulti-agent supervisor: researcher, analyst, writer and reviewerGive a team of agents your own task: a supervisor routes it to a researcher, an analyst and a writer, and a reviewer sends unsupported drafts back.Open simulation
Type to search.
    ↑↓ navigate↵ open