{"id":7160,"date":"2026-09-28T12:37:30","date_gmt":"2026-09-28T17:37:30","guid":{"rendered":"https:\/\/ykim.synology.me\/wordpress\/prefect-in-an-ai-agent-backend-7160\/"},"modified":"2026-09-28T14:12:55","modified_gmt":"2026-09-28T19:12:55","slug":"prefect-in-an-ai-agent-backend","status":"publish","type":"post","link":"https:\/\/ykim.synology.me\/wordpress\/prefect-in-an-ai-agent-backend-7160\/","title":{"rendered":"Prefect In An AI Agent Backend"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/github.com\/yBarn1\/Images\/blob\/main\/diagrams\/prefect-orchestrator.png?raw=true\" alt=\"\" style=\"width:auto;height:500px\"\/><\/figure>\n\n\n<style>.kt-tabs-id7160_77e58f-82 > .kt-tabs-content-wrap > .wp-block-kadence-tab{border-top:3px solid #0a6689;border-right:0px solid #0a6689;border-bottom:0px solid #0a6689;border-left:0px solid #0a6689;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);background:var(--global-palette9, #ffffff);}.wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-title-list li{margin-top:0px;margin-right:8px;margin-bottom:0px;margin-left:0px;}.wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-title-list li:last-child{margin-right:0px;}.wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-title-list li .kt-tab-title, .wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-content-wrap > .kt-tabs-accordion-title .kt-tab-title{line-height:1.4em;font-weight:regular;font-style:normal;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;padding-top:8px;padding-right:20px;padding-bottom:8px;padding-left:20px;border-color:var(--global-palette7, #eeeeee);color:var(--global-palette4, #2D3748);background:var(--global-palette7, #eeeeee);}.wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-content-wrap > .kt-tabs-accordion-title .kt-tab-title{margin-top:0px;margin-right:8px;margin-bottom:0px;margin-left:0px;}.wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-title-list li .kt-tab-title:hover, .wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-content-wrap > .kt-tabs-accordion-title .kt-tab-title:hover{border-color:var(--global-palette7, #eeeeee);color:var(--global-palette3, #1A202C);background:var(--global-palette8, #F7FAFC);}.wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title, .wp-block-kadence-tabs .kt-tabs-id7160_77e58f-82 > .kt-tabs-content-wrap > .kt-tabs-accordion-title.kt-tab-title-active .kt-tab-title{border-color:var(--global-palette7, #eeeeee);color:#ffffff;background:#0a6689;}@media all and (max-width: 1024px){.kt-tabs-id7160_77e58f-82 > .kt-tabs-content-wrap > .wp-block-kadence-tab{border-top:3px solid #0a6689;border-right:0px solid #0a6689;border-bottom:0px solid #0a6689;border-left:0px solid #0a6689;}}@media all and (max-width: 767px){.kt-tabs-id7160_77e58f-82 > .kt-tabs-content-wrap > .wp-block-kadence-tab{border-top:3px solid #0a6689;border-right:0px solid #0a6689;border-bottom:0px solid #0a6689;border-left:0px solid #0a6689;}}<\/style>\n<div class=\"wp-block-kadence-tabs alignnone\"><div class=\"kt-tabs-wrap kt-tabs-id7160_77e58f-82 kt-tabs-has-2-tabs kt-active-tab-2 kt-tabs-layout-tabs kt-tabs-tablet-layout-inherit kt-tabs-mobile-layout-inherit kt-tab-alignment-left \"><ul class=\"kt-tabs-title-list\"><li id=\"tab-english\" class=\"kt-title-item kt-title-item-1 kt-tabs-svg-show-always kt-tabs-icon-side-right kt-tab-title-inactive\"><a href=\"#tab-english\" data-tab=\"1\" class=\"kt-tab-title kt-tab-title-1 \"><span class=\"kt-title-text\">English<\/span><\/a><\/li><li id=\"tab-korean\" class=\"kt-title-item kt-title-item-2 kt-tabs-svg-show-always kt-tabs-icon-side-right kt-tab-title-active\"><a href=\"#tab-korean\" data-tab=\"2\" class=\"kt-tab-title kt-tab-title-2 \"><span class=\"kt-title-text\">Korean<\/span><\/a><\/li><\/ul><div class=\"kt-tabs-content-wrap\">\n<div class=\"wp-block-kadence-tab kt-tab-inner-content kt-inner-tab-1 kt-inner-tab7160_59c670-e3\"><div class=\"kt-tab-inner-content-inner\"><p><div class=\"github-readme-container markdown-body\"><div id=\"file\" class=\"md\" data-path=\"AIOps\/Prefect-AI-Agent-Backend\/prefect-ai-agent-backend.md\"><article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Prefect In An AI Agent Backend<\/h1><a id=\"user-content-prefect-in-an-ai-agent-backend\" class=\"anchor\" aria-label=\"Permalink: Prefect In An AI Agent Backend\" href=\"#prefect-in-an-ai-agent-backend\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Version 58 | Created: 2026-09-27 | Updated: 2026-11-07 13:46 UTC<\/p>\n<ul dir=\"auto\">\n<li><a href=\"#1-purpose\">1. Purpose<\/a><\/li>\n<li><a href=\"#2-summary\">2. Summary<\/a><\/li>\n<li><a href=\"#3-taxonomy-and-its-hierarchy\">3. Taxonomy and its Hierarchy<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#31-comparison\">3.1 Comparison<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#4-backend-composition\">4. Backend Composition<\/a><\/li>\n<li><a href=\"#5-benchmarking\">5. Benchmarking<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#51-criteria\">5.1 Criteria<\/a><\/li>\n<li><a href=\"#52-comparison\">5.2 Comparison<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#6-strength\">6. Strength<\/a><\/li>\n<li><a href=\"#7-application\">7. Application<\/a><\/li>\n<li><a href=\"#references\">References<\/a><\/li>\n<li><a href=\"#appendix-a-terminology\">Appendix A. Terminology<\/a><\/li>\n<li><a href=\"#appendix-b-what-prefect-does-in-an-agent-backend\">Appendix B. What Prefect Does In An Agent Backend<\/a><\/li>\n<li><a href=\"#appendix-c-how-an-event-trigger-is-done-in-prefect\">Appendix C. How An Event Trigger Is Done In Prefect<\/a><\/li>\n<li><a href=\"#appendix-d-agent-frameworks-in-use-as-of-september-2026\">Appendix D. Agent Frameworks In Use As Of September 2026<\/a><\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">1. Purpose<\/h2><a id=\"user-content-1-purpose\" class=\"anchor\" aria-label=\"Permalink: 1. Purpose\" href=\"#1-purpose\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li><strong>Problem Statement<\/strong>: No account exists of how a Prefect workflow is used to build an AI agent or an AI orchestrator, or of where using it creates a strength.<\/li>\n<li><strong>Goal<\/strong>: Split the frontend and backend roles of an AI orchestrator and an AI agent, and state what Prefect can specially do for the backend role and how it does it, so as to produce the benchmarking material a manager or a designer consults.<\/li>\n<li><strong>Non-Goal<\/strong>: Designing an agent's prompt and its tools is not covered, the implementation Python code is not given, and no comparison is made with orchestrators other than Prefect (Airflow, Temporal, Dagster and the like).<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">2. Summary<\/h2><a id=\"user-content-2-summary\" class=\"anchor\" aria-label=\"Permalink: 2. Summary\" href=\"#2-summary\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">An AI agent backend carries three responsibilities that decide what starts a run, how many calls run at once, and what ran. Those three together are the orchestrator [<a href=\"#ref-1\">1<\/a>], and Prefect is the product that carries them. Wrapping a tool call as a task puts the point a stopped run resumes from and the retry of a failed step on Prefect as well, while the LLM call that picks the next action and the Python code inside a tool stay with the agent framework. <a href=\"#fig-1\">Fig 1<\/a> draws where the orchestrator sits inside the backend. An agent framework does the work inside one run only, so without Prefect the backend engineer implements those three in Python code. Six of the ten functions in <a href=\"#table-3\">Table 3<\/a> \u2014 suspension, idempotent rerun, declared rate limiting, per-step observability, one admission path and ML pipeline integration \u2014 together with orchestrator scope, access control and inbound events make the nine criteria a benchmarking sheet compares products on.<\/p>\n<p dir=\"auto\">The frontend keeps its three roles when Prefect is used and gains one duty: the answer a paused run waits for arrives through the frontend. The agent framework the comparison is made against is LangGraph, chosen because its checkpointer and its node retry policy, the two entries the <code>Without Prefect<\/code> column of <a href=\"#table-3\">Table 3<\/a> rests on, are stated in vendor documentation [<a href=\"#ref-2\">2<\/a>]; the other frameworks in use are listed in <a href=\"#appendix-d-agent-frameworks-in-use-as-of-september-2026\">Appendix D<\/a>. <a href=\"#appendix-b-what-prefect-does-in-an-agent-backend\">Appendix B<\/a> lists the nine things Prefect does inside an agent backend and the three it leaves to the agent framework and the API server, and <a href=\"#appendix-c-how-an-event-trigger-is-done-in-prefect\">Appendix C<\/a> shows how the event trigger among them is attached.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">3. Taxonomy and its Hierarchy<\/h2><a id=\"user-content-3-taxonomy-and-its-hierarchy\" class=\"anchor\" aria-label=\"Permalink: 3. Taxonomy and its Hierarchy\" href=\"#3-taxonomy-and-its-hierarchy\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The frontend's work ends once it has put the user's request into the form the backend accepts, and the backend takes over at the first LLM call, so the backend runs the reasoning loop. Ten responsibilities split across the two layers, three on the frontend and seven on the backend, of which admission, throughput and record are the orchestrator. The seven are ordered by the scope each one has to hold: one step, one run, or every run at once.<\/p>\n<p dir=\"auto\">Scope is what decides who carries a responsibility. A framework runs inside one graph run, so it covers the one-step and one-run responsibilities; the orchestrator is the part that carries the three every-run responsibilities, namely admission, throughput and record. The ten roles, the layer of each, and what each one decides are drawn in <a href=\"#fig-1\">Fig 1<\/a>.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"LAYER          ROLE              WHAT THE ROLE DECIDES                        SCOPE       PART\n\nFrontend  &gt;    Intent            What the user asked, in the backend's form   one request\n               Approval          The answer a paused run is waiting for       one run\n               Presentation      What the user sees of the result             one request\n      |   one request crosses the boundary\n      v\nBackend   &gt;    Reasoning         Which action the LLM picks next              one step    --+\n               Tool execution    The action actually carried out              one step      |\n               State             The point a stopped run resumes from         one run       |  Agent\n               Recovery          Which failed step is retried, and how often  one run     --+\n               Admission         What starts a run: request, schedule, event  every run   --+\n               Throughput        How many calls run at once, and how fast     every run     |  Orchestrator\n               Record            What ran, when, and with which result        every run   --+\"><pre lang=\"text\" class=\"notranslate\"><code>LAYER          ROLE              WHAT THE ROLE DECIDES                        SCOPE       PART\n\nFrontend  &gt;    Intent            What the user asked, in the backend's form   one request\n               Approval          The answer a paused run is waiting for       one run\n               Presentation      What the user sees of the result             one request\n      |   one request crosses the boundary\n      v\nBackend   &gt;    Reasoning         Which action the LLM picks next              one step    --+\n               Tool execution    The action actually carried out              one step      |\n               State             The point a stopped run resumes from         one run       |  Agent\n               Recovery          Which failed step is retried, and how often  one run     --+\n               Admission         What starts a run: request, schedule, event  every run   --+\n               Throughput        How many calls run at once, and how fast     every run     |  Orchestrator\n               Record            What ran, when, and with which result        every run   --+\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-1\"><\/a>\nFig 1. The three frontend roles and the seven backend responsibilities ordered by scope, four of them the agent and three the orchestrator<\/p>\n<p dir=\"auto\">Each time the scope widens, one more place is needed for the state that has to outlive the previous scope. One-step scope needs nothing beyond the process, one-run scope needs a store the process can die without losing, and every-run scope needs a service that outlives every process and reports which runs there were.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.1 Comparison<\/h3><a id=\"user-content-31-comparison\" class=\"anchor\" aria-label=\"Permalink: 3.1 Comparison\" href=\"#31-comparison\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a id=\"user-content-table-1\"><\/a>\nTable 1. Each role, the part that holds it, and what settles it<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Role<\/th>\n<th align=\"center\">Part<\/th>\n<th align=\"center\">Scope<\/th>\n<th align=\"center\">Settled by<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">Intent<\/td>\n<td align=\"center\">Frontend<\/td>\n<td align=\"center\">One request<\/td>\n<td align=\"center\">The request schema the backend accepts<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">Approval<\/td>\n<td align=\"center\">Frontend<\/td>\n<td align=\"center\">One run<\/td>\n<td align=\"center\">The input form that carries the answer a paused run waits for<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">Presentation<\/td>\n<td align=\"center\">Frontend<\/td>\n<td align=\"center\">One request<\/td>\n<td align=\"center\">The stream or page the user reads<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Reasoning<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">One step<\/td>\n<td align=\"center\">The LLM call and the tool choice that call returns<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Tool execution<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">One step<\/td>\n<td align=\"center\">The Python function the chosen tool names<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">State<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">One run<\/td>\n<td align=\"center\">The checkpoint a resumed run reads<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">Recovery<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">One run<\/td>\n<td align=\"center\">The retry count, and the finished steps a rerun skips<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"center\">Admission<\/td>\n<td align=\"center\">Orchestrator<\/td>\n<td align=\"center\">Every run<\/td>\n<td align=\"center\">The deployment and the request, schedule or event that starts it<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9<\/td>\n<td align=\"center\">Throughput<\/td>\n<td align=\"center\">Orchestrator<\/td>\n<td align=\"center\">Every run<\/td>\n<td align=\"center\">The concurrency limit and the call rate<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">10<\/td>\n<td align=\"center\">Record<\/td>\n<td align=\"center\">Orchestrator<\/td>\n<td align=\"center\">Every run<\/td>\n<td align=\"center\">The run history each step writes<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">No agent framework carries the three orchestrator rows, so a design names a product on those rows and writes Python code on the others.<\/p>\n<p dir=\"auto\">\ud83c\udf33 Prefect carries all three orchestrator roles \u2014 #8 Admission, #9 Throughput and #10 Record \u2014 and, once a tool call is wrapped as a task, the retries and the result caching of #6 State and #7 Recovery as well. It does not carry #4 Reasoning or #5 Tool execution, which is why the LLM call that picks the next action and the Python code inside a tool stay with the agent framework.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">4. Backend Composition<\/h2><a id=\"user-content-4-backend-composition\" class=\"anchor\" aria-label=\"Permalink: 4. Backend Composition\" href=\"#4-backend-composition\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The two compositions run the same reasoning loop and differ in where that loop lives. Without Prefect the loop runs inside the process that answered the request; with Prefect the loop is a flow that a worker starts on the infrastructure its work pool names, and the request only asks for that flow to start. The two are drawn in <a href=\"#fig-2\">Fig 2<\/a>.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"WITHOUT PREFECT                        WITH PREFECT (self-hosted)\n\n[ HTTP request ]                       [ HTTP request ]  [ Schedule ]  [ Event ]\n       |                                      |               |            |\n       v                                      +-------+-------+------------+\n[ Web process ]                                       |\n       |                                              v\n       +--&gt; agent loop, in-process              [ Prefect Server ]\n       +--&gt; RetryPolicy on a node                 API, UI, scheduler,\n       +--&gt; checkpointer -&gt; DB                    events and automations\n       |                                                |\n       v                                                v   run queued in a work pool\n[ Response ]                                      [ Worker polls the pool ]\n                                                        |\nwritten by hand beside the web process:                 v\n   cron or a queue, for schedules             [ Flow: the agent loop ]\n   a semaphore, for the call rate                       |\n   a log table, for the run history                     +--&gt; Task per tool call\n   a guard, so a rerun skips done work                  |      retries, cache, rate limit\n                                                        +--&gt; pause or suspend for input\n                                                        +--&gt; checkpointer -&gt; DB\n                                                        |\n                                                        v\n                                               [ Response, and a run record ]\"><pre lang=\"text\" class=\"notranslate\"><code>WITHOUT PREFECT                        WITH PREFECT (self-hosted)\n\n&#91; HTTP request &#93;                       &#91; HTTP request &#93;  &#91; Schedule &#93;  &#91; Event &#93;\n       |                                      |               |            |\n       v                                      +-------+-------+------------+\n&#91; Web process &#93;                                       |\n       |                                              v\n       +--&gt; agent loop, in-process              &#91; Prefect Server &#93;\n       +--&gt; RetryPolicy on a node                 API, UI, scheduler,\n       +--&gt; checkpointer -&gt; DB                    events and automations\n       |                                                |\n       v                                                v   run queued in a work pool\n&#91; Response &#93;                                      &#91; Worker polls the pool &#93;\n                                                        |\nwritten by hand beside the web process:                 v\n   cron or a queue, for schedules             &#91; Flow: the agent loop &#93;\n   a semaphore, for the call rate                       |\n   a log table, for the run history                     +--&gt; Task per tool call\n   a guard, so a rerun skips done work                  |      retries, cache, rate limit\n                                                        +--&gt; pause or suspend for input\n                                                        +--&gt; checkpointer -&gt; DB\n                                                        |\n                                                        v\n                                               &#91; Response, and a run record &#93;\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-2\"><\/a>\nFig 2. The same backend without Prefect and with a self-hosted Prefect Server<\/p>\n<p dir=\"auto\">An agent framework covers the four inner responsibilities of <a href=\"#fig-1\">Fig 1<\/a> and leaves the orchestrator's three to the backend engineer. A checkpointer saves a snapshot of the graph state at every super-step under a thread id, which is what lets a stopped run resume and what lets a human interrupt, inspect and approve a step, and a retry policy attached to a node retries it with exponential backoff [<a href=\"#ref-2\">2<\/a>]. The backend engineer then writes and maintains a scheduler, a semaphore and a log table.<\/p>\n<p dir=\"auto\">Prefect fills the same three with a server and a worker, and the agent loop becomes a flow whose tool calls are tasks. A deployment states where, when and how the flow runs, which turns the loop into an entity the API manages, triggered by a schedule, the UI, an automation or the REST API, while a work pool names the infrastructure and a worker polls the pool and starts the run on it [<a href=\"#ref-3\">3<\/a>]. The self-hosted server carries the API, the UI, scheduling, work pools, and the events and automations engine [<a href=\"#ref-4\">4<\/a>]. The official integration between Prefect and Pydantic AI wraps the tools as tasks, so the backend engineer does not write that Python code: tools become tasks automatically, each with its own retries, its own cached result and its own line in the run history [<a href=\"#ref-5\">5<\/a>]. This is where #6 State and #7 Recovery of <a href=\"#table-1\">Table 1<\/a> come onto Prefect alongside the orchestrator rows.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">5. Benchmarking<\/h2><a id=\"user-content-5-benchmarking\" class=\"anchor\" aria-label=\"Permalink: 5. Benchmarking\" href=\"#5-benchmarking\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">A benchmarking sheet compares two things. <a href=\"#table-2\">Table 2<\/a> holds the criteria products are compared on, with Prefect's answer to each, and <a href=\"#table-3\">Table 3<\/a> holds the difference between a backend with Prefect and the same backend without it.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">5.1 Criteria<\/h3><a id=\"user-content-51-criteria\" class=\"anchor\" aria-label=\"Permalink: 5.1 Criteria\" href=\"#51-criteria\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The nine rows of <a href=\"#table-2\">Table 2<\/a> are the criteria a benchmarking sheet compares products on, and the <code>Prefect<\/code> column holds Prefect's answer to each.<\/p>\n<p dir=\"auto\"><a id=\"user-content-table-2\"><\/a>\nTable 2. The benchmarking criteria, with Prefect's answer to each<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Criterion<\/th>\n<th align=\"center\">Criterion details<\/th>\n<th align=\"center\">Prefect<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">Orchestrator scope<\/td>\n<td align=\"center\">Which of admission, throughput and record the product carries<\/td>\n<td align=\"center\">Admission, throughput and record<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">Suspension<\/td>\n<td align=\"center\">What a run waiting for a person holds open<\/td>\n<td align=\"center\">Nothing, the process exits<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">Idempotent rerun<\/td>\n<td align=\"center\">What a rerun does with work already done<\/td>\n<td align=\"center\">The previous result, loaded<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Rate limiting<\/td>\n<td align=\"center\">How the call rate is bounded<\/td>\n<td align=\"center\">Declared, in any Python code<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Per-step observability<\/td>\n<td align=\"center\">How far down a failure is located<\/td>\n<td align=\"center\">The one tool call<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">One admission path<\/td>\n<td align=\"center\">How many Python code paths the triggers need<\/td>\n<td align=\"center\">One deployment<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">ML pipeline integration<\/td>\n<td align=\"center\">Whether the same product also runs the retraining and deployment pipelines<\/td>\n<td align=\"center\">It does<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"center\">Access control<\/td>\n<td align=\"center\">What guards the API and the UI<\/td>\n<td align=\"center\">Nothing in the open source server<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9<\/td>\n<td align=\"center\">Inbound events<\/td>\n<td align=\"center\">How an outside system starts a run<\/td>\n<td align=\"center\">A Cloud webhook, or a relay<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">A row the product does not answer is filled by the backend engineer in Python code.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">5.2 Comparison<\/h3><a id=\"user-content-52-comparison\" class=\"anchor\" aria-label=\"Permalink: 5.2 Comparison\" href=\"#52-comparison\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Ten functions are needed in either composition, and <a href=\"#table-3\">Table 3<\/a> sets out what holds each one on each side. The <code>Without Prefect<\/code> column is the composition that uses only an agent framework, and the <code>With Prefect<\/code> column is that same framework with Prefect added on top of it. An agent framework is the Python library a backend engineer writes the LLM call and tool selection loop into, and this document uses LangGraph as that framework [<a href=\"#ref-2\">2<\/a>].<\/p>\n<p dir=\"auto\"><a id=\"user-content-table-3\"><\/a>\nTable 3. The same function in each composition<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Function<\/th>\n<th align=\"center\">Without Prefect<\/th>\n<th align=\"center\">With Prefect<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">Step retry<\/td>\n<td align=\"center\">A retry policy on a node, inside one graph run<\/td>\n<td align=\"center\"><code>retries<\/code> and <code>retry_delay_seconds<\/code> on every task<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">Resume after a crash<\/td>\n<td align=\"center\">The checkpointer replays the thread from its last super-step<\/td>\n<td align=\"center\">The framework's checkpointer, and the run state the Prefect server holds<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">Human approval<\/td>\n<td align=\"center\">An interrupt, and a resume call the backend engineer routes<\/td>\n<td align=\"center\"><code>pause_flow_run<\/code> with <code>wait_for_input<\/code>, answered by API<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Where a run executes<\/td>\n<td align=\"center\">The web process that answered<\/td>\n<td align=\"center\">A work pool, with a worker polling it<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Suspension<\/td>\n<td align=\"center\">The web process holds the thread and waits for the person<\/td>\n<td align=\"center\"><code>suspend_flow_run<\/code> exits, and the run starts again when the input arrives<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">Idempotent rerun<\/td>\n<td align=\"center\">The backend engineer writes the skip condition into the node<\/td>\n<td align=\"center\">Result caching loads the previous result instead of running again<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">Rate limiting<\/td>\n<td align=\"center\">The backend engineer writes a semaphore to bound the calls<\/td>\n<td align=\"center\">A global concurrency limit and a rate limit<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"center\">Per-step observability<\/td>\n<td align=\"center\">The backend engineer builds a log table and writes each step to it<\/td>\n<td align=\"center\">Every flow run and task run, in the server's UI<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9<\/td>\n<td align=\"center\">One admission path<\/td>\n<td align=\"center\">The backend engineer connects each trigger to the run by hand<\/td>\n<td align=\"center\">One deployment, on a request, a schedule or an automation<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">10<\/td>\n<td align=\"center\">ML pipeline integration<\/td>\n<td align=\"center\">The backend engineer runs retraining and deployment on a separate scheduler<\/td>\n<td align=\"center\">Retraining, deployment and the agent run as flows on one server, each able to start the next<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">Nine of the ten rows are met by the Prefect API calls and settings named in the <code>With Prefect<\/code> column alone, and #2 uses the agent framework's checkpointer alongside them. The framework keeps a part in all ten rows: what Prefect wraps is that framework's loop and its tool code, and the framework side is what decides where a run pauses, which results may be cached, and what counts as one step.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">6. Strength<\/h2><a id=\"user-content-6-strength\" class=\"anchor\" aria-label=\"Permalink: 6. Strength\" href=\"#6-strength\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">In rows #5 to #10 of <a href=\"#table-3\">Table 3<\/a> the agent framework does not do the work itself. The backend engineer fills those rows with Python code written by hand, or leaves them undone. Those six rows are what separates one product from another on a benchmarking sheet, and the six are listed below under the same names, each with what Prefect does in its place.<\/p>\n<ul dir=\"auto\">\n<li><strong>Suspension<\/strong>: <code>pause_flow_run<\/code> keeps the flow alive while it waits, and <code>suspend_flow_run<\/code> exits so the infrastructure can be taken down, with the run started again when the input arrives [<a href=\"#ref-6\">6<\/a>]. A HITL step that waits a day occupies no process at all.<\/li>\n<li><strong>Idempotent rerun<\/strong>: Prefect's transactional orchestration loads the previous result instead of running again when the context is identical [<a href=\"#ref-5\">5<\/a>]. Under that idempotency a retried agent run does not pay the LLM twice for the same tool call.<\/li>\n<li><strong>Rate limiting<\/strong>: a global concurrency limit bounds how many calls are in flight, and a rate limit paces them by a slot decay per second [<a href=\"#ref-7\">7<\/a>]. Both work in Python code outside a flow, so a tool never wrapped as a task stays bounded too.<\/li>\n<li><strong>Per-step observability<\/strong>: each tool call is a task, so each one appears in the run history and is retried on its own [<a href=\"#ref-5\">5<\/a>]. The failure report carries which tool call failed on which input, not only that an agent run failed.<\/li>\n<li><strong>One admission path<\/strong>: one deployment answers an interactive request, a nightly schedule and an event-driven automation [<a href=\"#ref-3\">3<\/a>]. The overnight batch and the chat request run the same Python code rather than two copies.<\/li>\n<li><strong>ML pipeline integration<\/strong>: retraining, deployment and the agent run as flows on one server, and the state of a finished flow starts the next [<a href=\"#ref-8\">8<\/a>]. Retraining and the agent need not sit in two systems with a bridge written between them.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">7. Application<\/h2><a id=\"user-content-7-application\" class=\"anchor\" aria-label=\"Permalink: 7. Application\" href=\"#7-application\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Prefect is favourable for a backend whose agent run continues after the HTTP response has gone out, and unfavourable for one whose run ends with that response. The HTTP response here is the backend's reply to one frontend request: sending it closes that request's connection, and the web process that took the request moves on to the next one. The three conditions below decide which case a design is in.<\/p>\n<ol dir=\"auto\">\n<li><strong>Assumption<\/strong>: the backend may own a process of its own. A worker is a client-side process that polls a work pool and starts runs on infrastructure [<a href=\"#ref-3\">3<\/a>], so a deployment target that forbids a long-lived process cannot host the worker and the composition of <a href=\"#fig-2\">Fig 2<\/a> does not hold.<\/li>\n<li><strong>Breaking condition<\/strong>: authentication. The open source server carries no users and no authentication, so anyone who reaches the UI or the API has full access to the server [<a href=\"#ref-4\">4<\/a>]; a self-hosted server therefore sits inside a private network or behind an authenticating proxy. Webhooks are a Prefect Cloud feature [<a href=\"#ref-4\">4<\/a>], so a self-hosted backend that must start runs from an outside system must write the endpoint that relays those events to the API.<\/li>\n<li><strong>Exclusion<\/strong>: an agent whose run is one LLM call and whose result nobody looks up later. The server and the worker are two components to operate, and a run that ends with the HTTP response leaves them no state to hold.<\/li>\n<\/ol>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">References<\/h2><a id=\"user-content-references\" class=\"anchor\" aria-label=\"Permalink: References\" href=\"#references\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a id=\"user-content-ref-1\"><\/a>\n[1] GitHub. <a href=\"https:\/\/github.com\/resources\/articles\/what-is-workflow-orchestration\">What is Workflow Orchestration?<\/a>.<br>\n<a id=\"user-content-ref-2\"><\/a>\n[2] LangChain. <a href=\"https:\/\/docs.langchain.com\/oss\/python\/langgraph\/checkpointers\" rel=\"nofollow\">Checkpointers<\/a>. LangGraph documentation.<br>\n<a id=\"user-content-ref-3\"><\/a>\n[3] Prefect. <a href=\"https:\/\/docs.prefect.io\/v3\/concepts\/deployments\" rel=\"nofollow\">Deployments<\/a>. Prefect 3 documentation.<br>\n<a id=\"user-content-ref-4\"><\/a>\n[4] Prefect. <a href=\"https:\/\/www.prefect.io\/compare\/prefect-oss\" rel=\"nofollow\">Cloud vs OSS feature comparison<\/a>.<br>\n<a id=\"user-content-ref-5\"><\/a>\n[5] Pydantic. <a href=\"https:\/\/pydantic.dev\/docs\/ai\/integrations\/durable_execution\/prefect\/\" rel=\"nofollow\">Durable execution with Prefect<\/a>. Pydantic AI documentation.<br>\n<a id=\"user-content-ref-6\"><\/a>\n[6] Prefect. <a href=\"https:\/\/docs.prefect.io\/v3\/advanced\/interactive\" rel=\"nofollow\">How to write interactive workflows<\/a>. Prefect 3 documentation.<br>\n<a id=\"user-content-ref-7\"><\/a>\n[7] Prefect. <a href=\"https:\/\/docs.prefect.io\/v3\/how-to-guides\/workflows\/global-concurrency-limits\" rel=\"nofollow\">How to apply global concurrency and rate limits<\/a>. Prefect 3 documentation.<br>\n<a id=\"user-content-ref-8\"><\/a>\n[8] Prefect. <a href=\"https:\/\/docs.prefect.io\/v3\/concepts\/event-triggers\" rel=\"nofollow\">Define event triggers<\/a>. Prefect 3 documentation.<br>\n<a id=\"user-content-ref-9\"><\/a>\n[9] LangChain. <a href=\"https:\/\/www.langchain.com\/resources\/ai-agent-frameworks\" rel=\"nofollow\">The best AI agent frameworks in 2026<\/a>.<br>\n<a id=\"user-content-ref-10\"><\/a>\n[10] Prefect. <a href=\"https:\/\/www.prefect.io\/solutions\/agents\" rel=\"nofollow\">The only orchestrator built for AI agents<\/a>.<\/p>\n<hr>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix A. Terminology<\/h2><a id=\"user-content-appendix-a-terminology\" class=\"anchor\" aria-label=\"Permalink: Appendix A. Terminology\" href=\"#appendix-a-terminology\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li><strong>Agent framework<\/strong>: the Python library a backend engineer writes the LLM call and tool selection loop into, such as LangGraph.<\/li>\n<li><strong>Automation<\/strong>: the Prefect rule that starts a preset action when a matching event arrives.<\/li>\n<li><strong>Checkpointer<\/strong>: the component that saves graph state at each step so that a stopped run resumes from it.<\/li>\n<li><strong>Deployment<\/strong>: a flow with where, when and how it runs attached, which makes it an entity the API manages.<\/li>\n<li><strong>FDC (Fault Detection and Classification)<\/strong>: the fab system that watches equipment sensor traces and raises an alarm when one leaves its limits.<\/li>\n<li><strong>Flow<\/strong>: the function Prefect treats as one run.<\/li>\n<li><strong>HITL (Human In The Loop)<\/strong>: a run that waits for a person's input before it continues.<\/li>\n<li><strong>Idempotency<\/strong>: the property that running again with the same input leaves the same result and the same side effects as running once.<\/li>\n<li><strong>Jinja<\/strong>: the template syntax Prefect substitutes event values into a flow's parameters with.<\/li>\n<li><strong>K8s (Kubernetes)<\/strong>: the container platform a work pool can run flow runs on.<\/li>\n<li><strong>Orchestrator<\/strong>: the part of a backend that carries every run rather than one: what starts a run, how many calls run at once, and what the run history keeps.<\/li>\n<li><strong>Prefect Server<\/strong>: the self-hosted orchestration backend holding the API, the UI, the scheduler, and events and automations.<\/li>\n<li><strong>RAG (Retrieval Augmented Generation)<\/strong>: answering with documents retrieved at query time and handed to the LLM beside the question.<\/li>\n<li><strong>Rate limit<\/strong>: the ceiling on how many calls may leave within a span of time.<\/li>\n<li><strong>Result caching<\/strong>: loading a previous result for an identical input instead of executing again.<\/li>\n<li><strong>Super-step<\/strong>: the execution unit a graph saves one state snapshot for.<\/li>\n<li><strong>Task<\/strong>: the unit inside a flow that Prefect retries, caches and records on its own.<\/li>\n<li><strong>Thread<\/strong>: the unit a checkpointer collects one conversation's state under.<\/li>\n<li><strong>VM (Virtual Metrology)<\/strong>: predicting a measurement from process sensor data instead of measuring it.<\/li>\n<li><strong>Work pool<\/strong>: the Prefect setting that names the infrastructure flow runs execute on.<\/li>\n<li><strong>Worker<\/strong>: the client-side process that polls a work pool and starts each scheduled run on that infrastructure.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix B. What Prefect Does In An Agent Backend<\/h2><a id=\"user-content-appendix-b-what-prefect-does-in-an-agent-backend\" class=\"anchor\" aria-label=\"Permalink: Appendix B. What Prefect Does In An Agent Backend\" href=\"#appendix-b-what-prefect-does-in-an-agent-backend\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Each item below is something Prefect does inside an agent backend, and the parenthesis at the end names the <a href=\"#table-3\">Table 3<\/a> function the item belongs to.<\/p>\n<ol dir=\"auto\">\n<li>Durable execution: it caches LLM and tool calls per task, and resumes from that point on a failure (#2 Resume after a crash, #6 Idempotent rerun).<\/li>\n<li>Retry and timeout: it applies a retry policy and a timeout per call, against an LLM API outage or a tool error (#1 Step retry).<\/li>\n<li>Event trigger: it runs an agent automatically when an event such as an FDC alarm or a drift detection arrives (#9 One admission path).<\/li>\n<li>Scheduling: it runs the regular analysis and report agents on a schedule (#9 One admission path).<\/li>\n<li>Distributed execution: it distributes runs to K8s nodes or GPU workers (#4 Where a run executes).<\/li>\n<li>Observability: it tracks run history, logs and state in the UI (#8 Per-step observability).<\/li>\n<li>Human-in-the-loop waiting: with <code>pause_flow_run<\/code> it stops until the approval arrives, then resumes (#3 Human approval, #5 Suspension).<\/li>\n<li>ML pipeline integration: it operates retraining, deployment and agent execution together (#10 ML pipeline integration).<\/li>\n<li>Rate limiting: it bounds the calls in flight and the calls per second by declaration, against an LLM API rate limit (#7 Rate limiting).<\/li>\n<\/ol>\n<p dir=\"auto\">What it does not do itself: the LLM inference logic, memory and RAG, and real-time conversation serving are carried by the agent framework and the API server.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix C. How An Event Trigger Is Done In Prefect<\/h2><a id=\"user-content-appendix-c-how-an-event-trigger-is-done-in-prefect\" class=\"anchor\" aria-label=\"Permalink: Appendix C. How An Event Trigger Is Done In Prefect\" href=\"#appendix-c-how-an-event-trigger-is-done-in-prefect\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The trigger is set up in two steps. <code>emit_event<\/code> publishes the event, and a <code>DeploymentEventTrigger<\/code> or an automation receives it and runs the flow [<a href=\"#ref-8\">8<\/a>].<\/p>\n<p dir=\"auto\"><strong>1. Emit the event<\/strong> \u2014 on the FDC system or the collector side.<\/p>\n<div class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"from prefect.events import emit_event\n\nemit_event(\n    event=&quot;fdc.alarm.raised&quot;,\n    resource={&quot;prefect.resource.id&quot;: &quot;tool.ETCH01.TG1&quot;},\n    payload={&quot;wafer_id&quot;: &quot;W123&quot;, &quot;sensor&quot;: &quot;RF_power&quot;, &quot;severity&quot;: &quot;high&quot;},\n)\"><pre><span class=\"pl-k\">from<\/span> <span class=\"pl-s1\">prefect<\/span>.<span class=\"pl-s1\">events<\/span> <span class=\"pl-k\">import<\/span> <span class=\"pl-s1\">emit_event<\/span>\n\n<span class=\"pl-en\">emit_event<\/span>(\n    <span class=\"pl-s1\">event<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-s\">\"fdc.alarm.raised\"<\/span>,\n    <span class=\"pl-s1\">resource<\/span><span class=\"pl-c1\">=<\/span>{<span class=\"pl-s\">\"prefect.resource.id\"<\/span>: <span class=\"pl-s\">\"tool.ETCH01.TG1\"<\/span>},\n    <span class=\"pl-s1\">payload<\/span><span class=\"pl-c1\">=<\/span>{<span class=\"pl-s\">\"wafer_id\"<\/span>: <span class=\"pl-s\">\"W123\"<\/span>, <span class=\"pl-s\">\"sensor\"<\/span>: <span class=\"pl-s\">\"RF_power\"<\/span>, <span class=\"pl-s\">\"severity\"<\/span>: <span class=\"pl-s\">\"high\"<\/span>},\n)<\/pre><\/div>\n<p dir=\"auto\"><strong>2. Run the agent flow from a trigger<\/strong><\/p>\n<div class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"from prefect import flow\nfrom prefect.events import DeploymentEventTrigger\n\n\n@flow\ndef fdc_agent(tool_id: str, wafer_id: str, sensor: str):\n    ...  # agent analysis, then the report and the notification\n\n\nif __name__ == &quot;__main__&quot;:\n    fdc_agent.serve(\n        name=&quot;fdc-agent&quot;,\n        triggers=[\n            DeploymentEventTrigger(\n                expect={&quot;fdc.alarm.raised&quot;},\n                match={&quot;prefect.resource.id&quot;: &quot;tool.*&quot;},\n                parameters={  # Jinja injects the event values into the flow parameters\n                    &quot;tool_id&quot;: &quot;{{ event.resource.id }}&quot;,\n                    &quot;wafer_id&quot;: &quot;{{ event.payload.wafer_id }}&quot;,\n                    &quot;sensor&quot;: &quot;{{ event.payload.sensor }}&quot;,\n                },\n            )\n        ],\n    )\"><pre><span class=\"pl-k\">from<\/span> <span class=\"pl-s1\">prefect<\/span> <span class=\"pl-k\">import<\/span> <span class=\"pl-s1\">flow<\/span>\n<span class=\"pl-k\">from<\/span> <span class=\"pl-s1\">prefect<\/span>.<span class=\"pl-s1\">events<\/span> <span class=\"pl-k\">import<\/span> <span class=\"pl-v\">DeploymentEventTrigger<\/span>\n\n\n<span class=\"pl-en\">@<span class=\"pl-en\">flow<\/span><\/span>\n<span class=\"pl-k\">def<\/span> <span class=\"pl-en\">fdc_agent<\/span>(<span class=\"pl-s1\">tool_id<\/span>: <span class=\"pl-smi\">str<\/span>, <span class=\"pl-s1\">wafer_id<\/span>: <span class=\"pl-smi\">str<\/span>, <span class=\"pl-s1\">sensor<\/span>: <span class=\"pl-smi\">str<\/span>):\n    ...  <span class=\"pl-c\"># agent analysis, then the report and the notification<\/span>\n\n\n<span class=\"pl-k\">if<\/span> <span class=\"pl-s1\">__name__<\/span> <span class=\"pl-c1\">==<\/span> <span class=\"pl-s\">\"__main__\"<\/span>:\n    <span class=\"pl-s1\">fdc_agent<\/span>.<span class=\"pl-c1\">serve<\/span>(\n        <span class=\"pl-s1\">name<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-s\">\"fdc-agent\"<\/span>,\n        <span class=\"pl-s1\">triggers<\/span><span class=\"pl-c1\">=<\/span>&#91;\n            <span class=\"pl-en\">DeploymentEventTrigger<\/span>(\n                <span class=\"pl-s1\">expect<\/span><span class=\"pl-c1\">=<\/span>{<span class=\"pl-s\">\"fdc.alarm.raised\"<\/span>},\n                <span class=\"pl-s1\">match<\/span><span class=\"pl-c1\">=<\/span>{<span class=\"pl-s\">\"prefect.resource.id\"<\/span>: <span class=\"pl-s\">\"tool.*\"<\/span>},\n                <span class=\"pl-s1\">parameters<\/span><span class=\"pl-c1\">=<\/span>{  <span class=\"pl-c\"># Jinja injects the event values into the flow parameters<\/span>\n                    <span class=\"pl-s\">\"tool_id\"<\/span>: <span class=\"pl-s\">\"{{ event.resource.id }}\"<\/span>,\n                    <span class=\"pl-s\">\"wafer_id\"<\/span>: <span class=\"pl-s\">\"{{ event.payload.wafer_id }}\"<\/span>,\n                    <span class=\"pl-s\">\"sensor\"<\/span>: <span class=\"pl-s\">\"{{ event.payload.sensor }}\"<\/span>,\n                },\n            )\n        &#93;,\n    )<\/pre><\/div>\n<p dir=\"auto\">Table 4. Trigger types<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Type<\/th>\n<th align=\"center\">Use<\/th>\n<th align=\"center\">Setting<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">Reactive<\/td>\n<td align=\"center\">Runs as soon as the event occurs<\/td>\n<td align=\"center\">The default<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">Threshold<\/td>\n<td align=\"center\">Runs once N have accumulated, such as three alarms within ten minutes<\/td>\n<td align=\"center\"><code>threshold=3<\/code>, <code>within=timedelta(minutes=10)<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">Proactive<\/td>\n<td align=\"center\">Runs when the event does not arrive, such as collection having stopped<\/td>\n<td align=\"center\"><code>posture=\"Proactive\"<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Compound \/ Sequence<\/td>\n<td align=\"center\">Runs on a combination or an order of several events<\/td>\n<td align=\"center\"><code>CompoundTrigger<\/code>, <code>SequenceTrigger<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Flow state<\/td>\n<td align=\"center\">Runs in sequence after another flow completes or fails<\/td>\n<td align=\"center\"><code>expect={\"prefect.flow-run.Completed\"}<\/code> and the like<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\"><strong>External systems<\/strong><\/p>\n<ul dir=\"auto\">\n<li>Prefect Cloud: a webhook takes an outside HTTP request as an event directly.<\/li>\n<li>Self-hosted (OSS): with no webhook, a FastAPI endpoint or a Kafka or MQ consumer calls <code>emit_event<\/code> to turn the request into an event.<\/li>\n<\/ul>\n<p dir=\"auto\"><strong>Fab application<\/strong><\/p>\n<ul dir=\"auto\">\n<li>An FDC alarm, reactively, to the cause analysis agent<\/li>\n<li>Three VM error excursions within ten minutes, on threshold, to the retraining flow<\/li>\n<li>Sensor data unreceived for thirty minutes, proactively, to the equipment check notice<\/li>\n<li>Retraining completed, on flow state, to the validation agent and the report<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix D. Agent Frameworks In Use As Of September 2026<\/h2><a id=\"user-content-appendix-d-agent-frameworks-in-use-as-of-september-2026\" class=\"anchor\" aria-label=\"Permalink: Appendix D. Agent Frameworks In Use As Of September 2026\" href=\"#appendix-d-agent-frameworks-in-use-as-of-september-2026\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">The framework this document compares against is #1 LangGraph, and chapter 2 says why it was chosen. Each date is the product's public announcement [<a href=\"#ref-9\">9<\/a>].<\/p>\n<p dir=\"auto\">Table 5. Agent frameworks and when each was first announced<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Framework<\/th>\n<th align=\"center\">Framework details<\/th>\n<th align=\"center\">Announced<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">LangGraph<\/td>\n<td align=\"center\">Holds state as a graph. The default where an audit trail and human approval are needed<\/td>\n<td align=\"center\">2024-01<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">CrewAI<\/td>\n<td align=\"center\">Binds several role-playing agents into a team. Fastest to a prototype<\/td>\n<td align=\"center\">2024-01<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">OpenAI Agents SDK<\/td>\n<td align=\"center\">The model drives the loop. The least extra work if the work is GPT-centred<\/td>\n<td align=\"center\">2025-03<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Google ADK<\/td>\n<td align=\"center\">Strong on multimodal. Announced at Google Cloud NEXT 2025<\/td>\n<td align=\"center\">2025-04<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Claude Agent SDK<\/td>\n<td align=\"center\">The agent harness behind Claude Code, renamed from the Claude Code SDK<\/td>\n<td align=\"center\">2025-09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">Microsoft Agent Framework<\/td>\n<td align=\"center\">Graph based. The choice in an Azure and .NET environment<\/td>\n<td align=\"center\">2026-04<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">Pydantic AI<\/td>\n<td align=\"center\">Type-safe Python. V2 carries durable execution<\/td>\n<td align=\"center\">2026-06<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">#7 Pydantic AI and Prefect are two products used separately, and a package that joins them is published [<a href=\"#ref-5\">5<\/a>]. Installing that package runs an agent written with Pydantic AI as a Prefect flow and makes that agent's tools Prefect tasks, so the wrapping Python code does not have to be written by hand. Neither product has absorbed the other, and neither uses the other inside itself.<\/p>\n<p dir=\"auto\">Of the seven, #7 Pydantic AI is the only one with a package dedicated to that join; for the others the backend engineer writes the wrapping. Prefect treats a flow as a Python function, so it runs Pydantic AI, LangGraph and any other Python agent framework [<a href=\"#ref-10\">10<\/a>].<\/p>\n<\/article><\/div><\/div><\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-kadence-tab kt-tab-inner-content kt-inner-tab-2 kt-inner-tab7160_68c471-dc\"><div class=\"kt-tab-inner-content-inner\"><p><div class=\"github-readme-container markdown-body\"><div id=\"file\" class=\"md\" data-path=\"AIOps\/Prefect-AI-Agent-Backend\/prefect-ai-agent-backend-ko.md\"><article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Prefect In An AI Agent Backend<\/h1><a id=\"user-content-prefect-in-an-ai-agent-backend\" class=\"anchor\" aria-label=\"Permalink: Prefect In An AI Agent Backend\" href=\"#prefect-in-an-ai-agent-backend\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Version 58 | Created: 2026-09-27 | Updated: 2026-11-07 13:46 UTC<\/p>\n<ul dir=\"auto\">\n<li><a href=\"#1-purpose\">1. Purpose<\/a><\/li>\n<li><a href=\"#2-summary\">2. Summary<\/a><\/li>\n<li><a href=\"#3-taxonomy-and-its-hierarchy\">3. Taxonomy and its Hierarchy<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#31-comparison\">3.1 Comparison<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#4-backend-composition\">4. Backend Composition<\/a><\/li>\n<li><a href=\"#5-benchmarking\">5. Benchmarking<\/a>\n<ul dir=\"auto\">\n<li><a href=\"#51-criteria\">5.1 Criteria<\/a><\/li>\n<li><a href=\"#52-comparison\">5.2 Comparison<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#6-strength\">6. Strength<\/a><\/li>\n<li><a href=\"#7-application\">7. Application<\/a><\/li>\n<li><a href=\"#references\">References<\/a><\/li>\n<li><a href=\"#appendix-a-terminology\">Appendix A. Terminology<\/a><\/li>\n<li><a href=\"#appendix-b-what-prefect-does-in-an-agent-backend\">Appendix B. What Prefect Does In An Agent Backend<\/a><\/li>\n<li><a href=\"#appendix-c-how-an-event-trigger-is-done-in-prefect\">Appendix C. How An Event Trigger Is Done In Prefect<\/a><\/li>\n<li><a href=\"#appendix-d-agent-frameworks-in-use-as-of-september-2026\">Appendix D. Agent Frameworks In Use As Of September 2026<\/a><\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">1. Purpose<\/h2><a id=\"user-content-1-purpose\" class=\"anchor\" aria-label=\"Permalink: 1. Purpose\" href=\"#1-purpose\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li><strong>Problem Statement<\/strong>: AI Agent \uc640 AI Orchestrator \ub97c \uad6c\ucd95\ud558\ub294 \ub370 Prefect workflow \ub97c \ud65c\uc6a9\ud558\ub294 \ubc29\uc548\uacfc, \uadf8\uac83\uc73c\ub85c \uac15\uc810\uc744 \ub9cc\ub4e4\uc5b4 \ub0b4\ub294 \ubc29\uc548\uc774 \uc5c6\ub2e4.<\/li>\n<li><strong>Goal<\/strong>: AI Orchestrator \uc640 AI agent \uc758 frontend \uc640 backend \uc5ed\ud560\uc744 \uac00\ub974\uace0, Prefect \uac00 backend \uc758 \uc5ed\ud560\uc5d0 \ub300\ud574 \ud2b9\ubcc4\ud788 \ubb34\uc5c7\uc744 \uc5b4\ub5bb\uac8c \ud560 \uc218 \uc788\ub294\uc9c0\ub97c \uc801\uc5b4, manager \ub610\ub294 designer \uac00 \ucc38\uace0\ud558\ub294 benchmarking \uc790\ub8cc\ub97c \ub9cc\ub4e0\ub2e4.<\/li>\n<li><strong>Non-Goal<\/strong>: Agent \uc758 prompt \uc640 tool \uc744 \uc124\uacc4\ud558\ub294 \ubc29\ubc95\uc740 \ub2e4\ub8e8\uc9c0 \uc54a\uace0, \uad6c\ud604 Python code \ub3c4 \uc8fc\uc9c0 \uc54a\uc73c\uba70, Prefect \ubc16\uc758 orchestrator (Airflow, Temporal, Dagster \ub4f1) \uacfc \ube44\uad50\ud558\uc9c0 \uc54a\ub294\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">2. Summary<\/h2><a id=\"user-content-2-summary\" class=\"anchor\" aria-label=\"Permalink: 2. Summary\" href=\"#2-summary\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">AI agent backend \uc5d0\ub294 \ubb34\uc5c7\uc774 \uc2e4\ud589\uc744 \uc2dc\uc791\ud558\ub294\uac00, \ud638\ucd9c\uc744 \ud55c \ubc88\uc5d0 \uba87 \uac1c\uae4c\uc9c0 \ub3cc\ub9ac\ub294\uac00, \ubb34\uc5c7\uc774 \ub3cc\uc558\ub294\uac00\ub97c \uc815\ud558\ub294 \uc138 \ucc45\uc784\uc774 \uc788\ub2e4. \uc774 \uc14b\uc744 \ubb36\uc5b4 orchestrator \ub77c \ubd80\ub974\uba70 [<a href=\"#ref-1\">1<\/a>], Prefect \uac00 \uc774 \uc14b\uc744 \ub9e1\ub294 \uc81c\ud488\uc774\ub2e4. Tool \ud638\ucd9c\uc744 task \ub85c \uac10\uc2f8\uba74 \uba48\ucd98 \uc2e4\ud589\uc774 \ub2e4\uc2dc \uc2dc\uc791\ud558\ub294 \uc790\ub9ac\uc640 \uc2e4\ud328\ud55c \ub2e8\uacc4\uc758 \uc7ac\uc2dc\ub3c4\uae4c\uc9c0 Prefect \uac00 \ud568\uaed8 \uc9c0\uc9c0\ub9cc, LLM \uc744 \ubd88\ub7ec \ub2e4\uc74c \ub3d9\uc791\uc744 \uace0\ub974\ub294 \uc77c\uacfc tool \uc548\uc758 Python code \ub294 agent framework \uc5d0 \ub0a8\ub294\ub2e4. Orchestrator \uac00 backend \uc548\uc758 \uc5b4\ub514\uc5d0 \ub193\uc774\ub294\uc9c0\ub294 <a href=\"#fig-1\">Fig 1<\/a> \uc5d0 \uadf8\ub838\ub2e4. Agent framework \ub294 \ud55c \uc2e4\ud589 \uc548\uc758 \uc77c\ub9cc \ud558\ubbc0\ub85c, Prefect \uac00 \uc5c6\uc73c\uba74 \uc774 \uc14b\uc744 backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 Python code \ub85c \uc9c1\uc811 \uad6c\ud604\ud55c\ub2e4. <a href=\"#table-3\">Table 3<\/a> \uc758 \uc5f4 \uae30\ub2a5 \uac00\uc6b4\ub370 \uc5ec\uc12f \u2014 suspension, idempotent rerun, \uc120\uc5b8\uc73c\ub85c \ub450\ub294 rate limiting, per-step observability, one admission path, ML pipeline integration \u2014 \uc5d0 orchestrator scope \uc640 access control \uacfc inbound events \ub97c \ub354\ud55c \uc544\ud649\uc774 benchmarking \uc790\ub8cc\uac00 \uc81c\ud488\uc744 \uacac\uc8fc\ub294 \ud56d\ubaa9\uc774\ub2e4.<\/p>\n<p dir=\"auto\">Prefect \ub97c \uc368\ub3c4 frontend \uc758 \uc138 \uc5ed\ud560\uc740 \uadf8\ub300\ub85c\uc774\uace0, \ud560 \uc77c\uc774 \ud558\ub098 \ub354 \ubd99\ub294\ub2e4. \uba48\ucd98 \uc2e4\ud589\uc774 \uae30\ub2e4\ub9ac\ub294 \ub2f5\uc744 frontend \uac00 \ubc1b\uc544 backend \ub85c \ub118\uae34\ub2e4. \ube44\uad50 \ub300\uc0c1\uc73c\ub85c \uc0bc\uc740 agent framework \ub294 LangGraph \ub2e4. <a href=\"#table-3\">Table 3<\/a> \uc758 <code>Without Prefect<\/code> \uc5f4\uc774 \uadfc\uac70\ub85c \uc0bc\ub294 checkpointer \uc640 node \uc5d0 \ubd99\uc778 retry policy \ub97c vendor \ubb38\uc11c\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc5b4 \uace8\ub790\uc73c\uba70 [<a href=\"#ref-2\">2<\/a>], \uc9c0\uae08 \uc4f0\uc774\ub294 \ub2e4\ub978 framework \ub294 <a href=\"#appendix-d-agent-frameworks-in-use-as-of-september-2026\">Appendix D<\/a> \uc5d0 \uc801\uc5c8\ub2e4. <a href=\"#appendix-b-what-prefect-does-in-an-agent-backend\">Appendix B<\/a> \uac00 Prefect \uac00 agent backend \uc5d0\uc11c \ud558\ub294 \uc544\ud649 \uac00\uc9c0\uc640, agent framework \uc640 API server \uc5d0 \ub0a8\uae30\ub294 \uc14b\uc744 \uc801\uace0, <a href=\"#appendix-c-how-an-event-trigger-is-done-in-prefect\">Appendix C<\/a> \uac00 \uadf8 \uac00\uc6b4\ub370 event trigger \ub97c \uc5b4\ub5bb\uac8c \ubd99\uc774\ub294\uc9c0 \ubcf4\uc778\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">3. Taxonomy and its Hierarchy<\/h2><a id=\"user-content-3-taxonomy-and-its-hierarchy\" class=\"anchor\" aria-label=\"Permalink: 3. Taxonomy and its Hierarchy\" href=\"#3-taxonomy-and-its-hierarchy\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Frontend \ub294 \uc0ac\uc6a9\uc790\uc758 \uc694\uccad\uc744 backend \uac00 \ubc1b\ub294 \ud615\ud0dc\ub85c \ub9cc\ub4dc\ub294 \ub370\uae4c\uc9c0 \ud558\uace0, \uccab LLM \ud638\ucd9c\ubd80\ud130\ub294 backend \uac00 \ud55c\ub2e4. \uadf8\ub798\uc11c \ucd94\ub860 loop \ub294 backend \uac00 \ub3cc\ub9b0\ub2e4. \uc5f4 \uac00\uc9c0 \uc5ed\ud560\uc774 \ub450 \uce35\uc5d0 \uac08\ub824 frontend \uc5d0 \uc14b, backend \uc5d0 \uc77c\uacf1\uc774 \ub193\uc774\uba70, \uadf8 \uc77c\uacf1 \uac00\uc6b4\ub370 admission \uacfc throughput \uacfc record \uac00 orchestrator \ub2e4. \uc77c\uacf1\uc740 \uac01 \ucc45\uc784\uc774 \ub9e1\ub294 \ubc94\uc704 \u2014 \ud55c \ub2e8\uacc4, \ud55c \uc2e4\ud589, \ubaa8\ub4e0 \uc2e4\ud589 \u2014 \uc758 \uc21c\uc11c\ub85c \ub298\uc5b4\uc120\ub2e4.<\/p>\n<p dir=\"auto\">\ub204\uac00 \uc5b4\ub290 \ucc45\uc784\uc744 \uc9c0\ub294\uc9c0\ub294 \ubc94\uc704\uac00 \uc815\ud55c\ub2e4. Framework \ub294 \ud55c graph \uc2e4\ud589 \uc548\uc5d0\uc11c\ub9cc \ub3cc\ubbc0\ub85c \ud55c \ub2e8\uacc4 \ubc94\uc704\uc640 \ud55c \uc2e4\ud589 \ubc94\uc704\uc758 \ucc45\uc784\uc744 \uc9c4\ub2e4. Orchestrator \ub294 \ubaa8\ub4e0 \uc2e4\ud589 \ubc94\uc704\uc758 \uc138 \ucc45\uc784, \uace7 admission \uacfc throughput \uacfc record \ub97c \uc9c0\ub294 \ucabd\uc774\ub2e4. \uc5f4 \uc5ed\ud560\uacfc \uac01\uac01\uc758 \uce35, \uadf8\ub9ac\uace0 \uac01 \uc5ed\ud560\uc774 \uc815\ud558\ub294 \uac83\uc740 <a href=\"#fig-1\">Fig 1<\/a> \uc5d0 \uadf8\ub838\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"LAYER          ROLE              WHAT THE ROLE DECIDES                        SCOPE       PART\n\nFrontend  &gt;    Intent            What the user asked, in the backend's form   one request\n               Approval          The answer a paused run is waiting for       one run\n               Presentation      What the user sees of the result             one request\n      |   one request crosses the boundary\n      v\nBackend   &gt;    Reasoning         Which action the LLM picks next              one step    --+\n               Tool execution    The action actually carried out              one step      |\n               State             The point a stopped run resumes from         one run       |  Agent\n               Recovery          Which failed step is retried, and how often  one run     --+\n               Admission         What starts a run: request, schedule, event  every run   --+\n               Throughput        How many calls run at once, and how fast     every run     |  Orchestrator\n               Record            What ran, when, and with which result        every run   --+\"><pre lang=\"text\" class=\"notranslate\"><code>LAYER          ROLE              WHAT THE ROLE DECIDES                        SCOPE       PART\n\nFrontend  &gt;    Intent            What the user asked, in the backend's form   one request\n               Approval          The answer a paused run is waiting for       one run\n               Presentation      What the user sees of the result             one request\n      |   one request crosses the boundary\n      v\nBackend   &gt;    Reasoning         Which action the LLM picks next              one step    --+\n               Tool execution    The action actually carried out              one step      |\n               State             The point a stopped run resumes from         one run       |  Agent\n               Recovery          Which failed step is retried, and how often  one run     --+\n               Admission         What starts a run: request, schedule, event  every run   --+\n               Throughput        How many calls run at once, and how fast     every run     |  Orchestrator\n               Record            What ran, when, and with which result        every run   --+\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-1\"><\/a>\nFig 1. The three frontend roles and the seven backend responsibilities ordered by scope, four of them the agent and three the orchestrator<\/p>\n<p dir=\"auto\">\ubc94\uc704\uac00 \ud55c \ub2e8\uacc4 \ub113\uc5b4\uc9c0\uba74, \uc55e \ubc94\uc704\uac00 \ub05d\ub09c \ub4a4\uc5d0\ub3c4 \ub0a8\uc544\uc57c \ud558\ub294 \uc0c1\ud0dc\ub97c \ub458 \uc790\ub9ac\uac00 \ud558\ub098 \ub354 \uc788\uc5b4\uc57c \ud55c\ub2e4. \ud55c \ub2e8\uacc4 \ubc94\uc704\ub294 process \uc548\uc5d0\uc11c \ub05d\ub098\uace0, \ud55c \uc2e4\ud589 \ubc94\uc704\ub294 process \uac00 \uc8fd\uc5b4\ub3c4 \ub0b4\uc6a9\uc774 \ub0a8\ub294 \uc800\uc7a5\uc18c\ub97c \uc4f0\uba70, \ubaa8\ub4e0 \uc2e4\ud589 \ubc94\uc704\ub294 process \uac00 \ubaa8\ub450 \ub05d\ub09c \ub4a4\uc5d0\ub3c4 \ub3cc\uba74\uc11c \uc5b4\ub5a4 \uc2e4\ud589\uc774 \uc788\uc5c8\ub294\uc9c0 \uc54c\ub824 \uc8fc\ub294 service \ub97c \uc4f4\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">3.1 Comparison<\/h3><a id=\"user-content-31-comparison\" class=\"anchor\" aria-label=\"Permalink: 3.1 Comparison\" href=\"#31-comparison\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a id=\"user-content-table-1\"><\/a>\nTable 1. Each role, the part that holds it, and what settles it<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Role<\/th>\n<th align=\"center\">Part<\/th>\n<th align=\"center\">Scope<\/th>\n<th align=\"center\">Settled by<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">Intent<\/td>\n<td align=\"center\">Frontend<\/td>\n<td align=\"center\">One request<\/td>\n<td align=\"center\">Backend \uac00 \ubc1b\uc544\ub4e4\uc774\ub294 \uc694\uccad schema<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">Approval<\/td>\n<td align=\"center\">Frontend<\/td>\n<td align=\"center\">One run<\/td>\n<td align=\"center\">\uba48\ucd98 \uc2e4\ud589\uc774 \uae30\ub2e4\ub9ac\ub294 \ub2f5\uc744 \ubc1b\ub294 input form<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">Presentation<\/td>\n<td align=\"center\">Frontend<\/td>\n<td align=\"center\">One request<\/td>\n<td align=\"center\">\uc0ac\uc6a9\uc790\uac00 \uc77d\ub294 stream \ub610\ub294 page<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Reasoning<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">One step<\/td>\n<td align=\"center\">LLM \ud638\ucd9c\uacfc \uadf8 \ud638\ucd9c\uc774 \ub3cc\ub824\uc8fc\ub294 tool \uc120\ud0dd<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Tool execution<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">One step<\/td>\n<td align=\"center\">\uace0\ub978 tool \uc774 \uac00\ub9ac\ud0a4\ub294 Python \ud568\uc218<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">State<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">One run<\/td>\n<td align=\"center\">\ub2e4\uc2dc \uc2dc\uc791\ud55c \uc2e4\ud589\uc774 \uc77d\ub294 checkpoint<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">Recovery<\/td>\n<td align=\"center\">Agent<\/td>\n<td align=\"center\">One run<\/td>\n<td align=\"center\">\uc7ac\uc2dc\ub3c4 \ud69f\uc218, \uadf8\ub9ac\uace0 \uc7ac\uc2e4\ud589\uc774 \uac74\ub108\ub6f0\ub294 \uc774\ubbf8 \ub05d\ub09c \ub2e8\uacc4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"center\">Admission<\/td>\n<td align=\"center\">Orchestrator<\/td>\n<td align=\"center\">Every run<\/td>\n<td align=\"center\">Deployment \uc640 \uadf8 deployment \ub97c \ucf1c\ub294 \uc694\uccad\u00b7schedule\u00b7event<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9<\/td>\n<td align=\"center\">Throughput<\/td>\n<td align=\"center\">Orchestrator<\/td>\n<td align=\"center\">Every run<\/td>\n<td align=\"center\">\ub3d9\uc2dc \uc2e4\ud589 \uc0c1\ud55c\uacfc \ud638\ucd9c \uc18d\ub3c4<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">10<\/td>\n<td align=\"center\">Record<\/td>\n<td align=\"center\">Orchestrator<\/td>\n<td align=\"center\">Every run<\/td>\n<td align=\"center\">\ub2e8\uacc4\ub9c8\ub2e4 \uc313\uc774\ub294 \uc2e4\ud589 \uae30\ub85d<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">\uc5b4\ub290 agent framework \ub3c4 orchestrator \uc138 \ud589\uc744 \uc9c0\uc9c0 \uc54a\uc73c\ubbc0\ub85c, design \uc740 \uadf8 \uc138 \ud589\uc5d0 \uc81c\ud488 \uc774\ub984\uc744 \uc801\uace0 \ub098\uba38\uc9c0 \ud589\uc740 Python code \ub85c \ucc44\uc6b4\ub2e4.<\/p>\n<p dir=\"auto\">\ud83c\udf33 Prefect \ub294 orchestrator \uc14b (#8 Admission, #9 Throughput, #10 Record) \uc804\ubd80\uc640, agent \ub137 \uac00\uc6b4\ub370 #6 State \uc640 #7 Recovery \uc758 \uc7ac\uc2dc\ub3c4\uc640 result caching \uc744 tool \uc744 task \ub85c \uac10\uc300 \ub54c \ud568\uaed8 \uc9c4\ub2e4. #4 Reasoning \uacfc #5 Tool execution \uc740 \ud558\uc9c0 \ubabb\ud55c\ub2e4. LLM \uc744 \ubd88\ub7ec \ub2e4\uc74c \ub3d9\uc791\uc744 \uace0\ub974\ub294 \uc77c\uacfc tool \uc548\uc758 Python code \uac00 agent framework \uc5d0 \ub0a8\ub294 \uae4c\ub2ed\uc774\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">4. Backend Composition<\/h2><a id=\"user-content-4-backend-composition\" class=\"anchor\" aria-label=\"Permalink: 4. Backend Composition\" href=\"#4-backend-composition\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\ub450 \uad6c\uc131\uc740 \uac19\uc740 \ucd94\ub860 loop \ub97c \ub3cc\ub9ac\uba70, \uadf8 loop \uac00 \uc5b4\ub290 process \uc5d0\uc11c \ub3c4\ub294\uc9c0\uac00 \uac08\ub9b0\ub2e4. Prefect \uac00 \uc5c6\uc73c\uba74 loop \ub294 \uc694\uccad\uc5d0 \ub2f5\ud55c process \uc548\uc5d0\uc11c \ub3cc\uace0, Prefect \uac00 \uc788\uc73c\uba74 loop \ub294 worker \uac00 work pool \uc774 \uac00\ub9ac\ud0a4\ub294 infrastructure \uc704\uc5d0\uc11c \uc2dc\uc791\ud558\ub294 flow \uc774\uba70 \uc694\uccad\uc740 \uadf8 flow \ub97c \uc2dc\uc791\ud574 \ub2ec\ub77c\uace0 \uc694\uad6c\ud560 \ubfd0\uc774\ub2e4. \ub458\uc740 <a href=\"#fig-2\">Fig 2<\/a> \uc5d0 \uadf8\ub838\ub2e4.<\/p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"WITHOUT PREFECT                        WITH PREFECT (self-hosted)\n\n[ HTTP request ]                       [ HTTP request ]  [ Schedule ]  [ Event ]\n       |                                      |               |            |\n       v                                      +-------+-------+------------+\n[ Web process ]                                       |\n       |                                              v\n       +--&gt; agent loop, in-process              [ Prefect Server ]\n       +--&gt; RetryPolicy on a node                 API, UI, scheduler,\n       +--&gt; checkpointer -&gt; DB                    events and automations\n       |                                                |\n       v                                                v   run queued in a work pool\n[ Response ]                                      [ Worker polls the pool ]\n                                                        |\nwritten by hand beside the web process:                 v\n   cron or a queue, for schedules             [ Flow: the agent loop ]\n   a semaphore, for the call rate                       |\n   a log table, for the run history                     +--&gt; Task per tool call\n   a guard, so a rerun skips done work                  |      retries, cache, rate limit\n                                                        +--&gt; pause or suspend for input\n                                                        +--&gt; checkpointer -&gt; DB\n                                                        |\n                                                        v\n                                               [ Response, and a run record ]\"><pre lang=\"text\" class=\"notranslate\"><code>WITHOUT PREFECT                        WITH PREFECT (self-hosted)\n\n&#91; HTTP request &#93;                       &#91; HTTP request &#93;  &#91; Schedule &#93;  &#91; Event &#93;\n       |                                      |               |            |\n       v                                      +-------+-------+------------+\n&#91; Web process &#93;                                       |\n       |                                              v\n       +--&gt; agent loop, in-process              &#91; Prefect Server &#93;\n       +--&gt; RetryPolicy on a node                 API, UI, scheduler,\n       +--&gt; checkpointer -&gt; DB                    events and automations\n       |                                                |\n       v                                                v   run queued in a work pool\n&#91; Response &#93;                                      &#91; Worker polls the pool &#93;\n                                                        |\nwritten by hand beside the web process:                 v\n   cron or a queue, for schedules             &#91; Flow: the agent loop &#93;\n   a semaphore, for the call rate                       |\n   a log table, for the run history                     +--&gt; Task per tool call\n   a guard, so a rerun skips done work                  |      retries, cache, rate limit\n                                                        +--&gt; pause or suspend for input\n                                                        +--&gt; checkpointer -&gt; DB\n                                                        |\n                                                        v\n                                               &#91; Response, and a run record &#93;\n<\/code><\/pre><\/div>\n<p dir=\"auto\"><a id=\"user-content-fig-2\"><\/a>\nFig 2. The same backend without Prefect and with a self-hosted Prefect Server<\/p>\n<p dir=\"auto\">Agent framework \ub294 <a href=\"#fig-1\">Fig 1<\/a> \uc758 \uc548\ucabd \ub124 \ucc45\uc784\uc744 \uc9c0\uace0 orchestrator \uc758 \uc14b\uc744 backend \uc5d4\uc9c0\ub2c8\uc5b4\uc5d0\uac8c \ub0a8\uae34\ub2e4. Checkpointer \ub294 graph \uc0c1\ud0dc\uc758 snapshot \uc744 super-step \ub9c8\ub2e4 thread id \uc544\ub798 \uc800\uc7a5\ud558\uc5ec \uba48\ucd98 \uc2e4\ud589\uc744 \ub2e4\uc2dc \uc2dc\uc791\ud558\uac8c \ud558\uace0 \uc0ac\ub78c\uc774 \ud55c \ub2e8\uacc4\ub97c \ub04a\uc5b4 \ub4e4\uc5ec\ub2e4\ubcf4\uace0 \uc2b9\uc778\ud558\uac8c \ud558\uba70, node \uc5d0 \ubd99\uc778 retry policy \ub294 \uadf8 node \ub97c \uc9c0\uc218 backoff \ub85c \ub2e4\uc2dc \uc2dc\ub3c4\ud55c\ub2e4 [<a href=\"#ref-2\">2<\/a>]. \uadf8\ub7ec\uba74 scheduler \uc640 semaphore \uc640 \uae30\ub85d\uc6a9 \ud45c\ub97c backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 \uc9c1\uc811 \ub9cc\ub4e4\uace0 \uc6b4\uc601\ud55c\ub2e4.<\/p>\n<p dir=\"auto\">Prefect \ub294 \uac19\uc740 \uc14b\uc744 server \uc640 worker \ub85c \ucc44\uc6b0\uace0, agent loop \ub294 tool \ud638\ucd9c\uc774 task \uc778 flow \uac00 \ub41c\ub2e4. Deployment \ub294 flow \ub97c \uc5b4\ub514\uc11c\u00b7\uc5b8\uc81c\u00b7\uc5b4\ub5bb\uac8c \ub3cc\ub9b4\uc9c0 \uc801\uc5b4 loop \ub97c API \uac00 \uad00\ub9ac\ud558\ub294 \ub300\uc0c1\uc73c\ub85c \ubc14\uafb8\uace0, schedule \uacfc UI \uc640 automation \uacfc REST API \uac00 \uadf8 deployment \ub97c \ucf20\ub2e4. Work pool \uc774 infrastructure \ub97c \uac00\ub9ac\ud0a4\uace0 worker \uac00 \uadf8 pool \uc744 \uc0b4\ud3b4 \uc2e4\ud589\uc744 \uadf8 \uc704\uc5d0\uc11c \uc2dc\uc791\ud55c\ub2e4 [<a href=\"#ref-3\">3<\/a>]. Self-hosted server \ub294 API, UI, scheduling, work pool, \uadf8\ub9ac\uace0 event \uc640 automation engine \uc744 \ub2f4\ub294\ub2e4 [<a href=\"#ref-4\">4<\/a>]. Prefect \uc640 Pydantic AI \uc0ac\uc774\uc758 \uacf5\uc2dd \ud1b5\ud569\uc774 tool \uc744 task \ub85c \uac10\uc2f8\ub294 \uc77c\uc744 \ub300\uc2e0 \ud574 \uc8fc\ubbc0\ub85c, backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 \uadf8 Python code \ub97c \uc4f0\uc9c0 \uc54a\ub294\ub2e4. Tool \uc774 \uc790\ub3d9\uc73c\ub85c task \uac00 \ub418\uc5b4, \ud638\ucd9c\ub9c8\ub2e4 \uc7ac\uc2dc\ub3c4 \uc124\uc815\uacfc cache \ub41c \uacb0\uacfc\uc640 \uc2e4\ud589 \uae30\ub85d \ud55c \uc904\uc744 \ub530\ub85c \uac16\ub294\ub2e4 [<a href=\"#ref-5\">5<\/a>]. <a href=\"#table-1\">Table 1<\/a> \uc758 #6 State \uc640 #7 Recovery \uac00 Prefect \ucabd\uc73c\ub85c \ud568\uaed8 \uc624\ub294 \uc790\ub9ac\uac00 \uc5ec\uae30\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">5. Benchmarking<\/h2><a id=\"user-content-5-benchmarking\" class=\"anchor\" aria-label=\"Permalink: 5. Benchmarking\" href=\"#5-benchmarking\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Benchmarking \uc790\ub8cc\ub294 \ub450 \uac00\uc9c0\ub97c \uacac\uc900\ub2e4. \uc81c\ud488\uc744 \uacac\uc8fc\ub294 \ud56d\ubaa9\uacfc Prefect \uc758 \ub2f5\uc740 <a href=\"#table-2\">Table 2<\/a> \uc5d0 \uc788\uace0, Prefect \ub97c \uc5b9\uc740 \uad6c\uc131\uacfc \uc5b9\uc9c0 \uc54a\uc740 \uad6c\uc131\uc758 \ucc28\uc774\ub294 <a href=\"#table-3\">Table 3<\/a> \uc5d0 \uc788\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">5.1 Criteria<\/h3><a id=\"user-content-51-criteria\" class=\"anchor\" aria-label=\"Permalink: 5.1 Criteria\" href=\"#51-criteria\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a href=\"#table-2\">Table 2<\/a> \uc758 \uc544\ud649 \ud589\uc774 benchmarking \uc790\ub8cc\uac00 \uc81c\ud488\uc744 \uacac\uc8fc\ub294 \ud56d\ubaa9\uc774\uace0, <code>Prefect<\/code> \uc5f4\uc5d0 Prefect \uc758 \ub2f5\uc774 \uc801\ud600 \uc788\ub2e4.<\/p>\n<p dir=\"auto\"><a id=\"user-content-table-2\"><\/a>\nTable 2. The benchmarking criteria, with Prefect's answer to each<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Criterion<\/th>\n<th align=\"center\">Criterion details<\/th>\n<th align=\"center\">Prefect<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">Orchestrator scope<\/td>\n<td align=\"center\">Admission\u00b7throughput\u00b7record \uac00\uc6b4\ub370 \uc81c\ud488\uc774 \uc5b4\ub290 \uac83\uc744 \uc9c0\ub294\uac00<\/td>\n<td align=\"center\">Admission\u00b7throughput\u00b7record \ubaa8\ub450<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">Suspension<\/td>\n<td align=\"center\">\uc0ac\ub78c\uc744 \uae30\ub2e4\ub9ac\ub294 \uc2e4\ud589\uc774 \ubb34\uc5c7\uc744 \ubd99\ub4e4\uace0 \uc788\ub294\uac00<\/td>\n<td align=\"center\">\uc5c6\uc74c. Process \uac00 \ube60\uc838\ub098\uac10<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">Idempotent rerun<\/td>\n<td align=\"center\">\uc7ac\uc2e4\ud589\uc774 \uc774\ubbf8 \ub05d\ub09c \uc77c\uc744 \uc5b4\ub5bb\uac8c \ud558\ub294\uac00<\/td>\n<td align=\"center\">\uc55e\uc120 \uacb0\uacfc\ub97c \ubd88\ub7ec\uc634<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Rate limiting<\/td>\n<td align=\"center\">\ud638\ucd9c \uc18d\ub3c4\ub97c \ubb34\uc5c7\uc73c\ub85c \ubb36\ub294\uac00<\/td>\n<td align=\"center\">Python code \uc5b4\ub514\uc5d0\uc11c\ub098 \uc120\uc5b8\uc73c\ub85c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Per-step observability<\/td>\n<td align=\"center\">\uc2e4\ud328\ud55c \uc790\ub9ac\ub97c \uc5b4\ub514\uae4c\uc9c0 \uc881\ud600 \uc8fc\ub294\uac00<\/td>\n<td align=\"center\">Tool \ud638\ucd9c \ud558\ub098<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">One admission path<\/td>\n<td align=\"center\">Trigger \ub9c8\ub2e4 Python code \uacbd\ub85c\uac00 \uba87 \uac1c \ud544\uc694\ud55c\uac00<\/td>\n<td align=\"center\">Deployment \ud558\ub098<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">ML pipeline integration<\/td>\n<td align=\"center\">\uac19\uc740 \uc81c\ud488\uc774 \uc7ac\ud559\uc2b5\u00b7\ubc30\ud3ec pipeline \ub3c4 \ud568\uaed8 \ub3cc\ub9ac\ub294\uac00<\/td>\n<td align=\"center\">\ub3cc\ub9bc<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"center\">Access control<\/td>\n<td align=\"center\">API \uc640 UI \ub97c \ubb34\uc5c7\uc774 \uc9c0\ud0a4\ub294\uac00<\/td>\n<td align=\"center\">Open source server \uc5d0\ub294 \uc5c6\uc74c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9<\/td>\n<td align=\"center\">Inbound events<\/td>\n<td align=\"center\">\uc678\ubd80 system \uc774 \uc2e4\ud589\uc744 \uc5b4\ub5bb\uac8c \uc2dc\uc791\ud558\ub294\uac00<\/td>\n<td align=\"center\">Cloud webhook, \ub610\ub294 relay<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">\uc81c\ud488\uc774 \ub2f5\ud558\uc9c0 \ubabb\ud55c \ud589\uc740 backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 Python code \ub85c \ucc44\uc6b4\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">5.2 Comparison<\/h3><a id=\"user-content-52-comparison\" class=\"anchor\" aria-label=\"Permalink: 5.2 Comparison\" href=\"#52-comparison\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc5f4 \uae30\ub2a5\uc740 \ub450 \uad6c\uc131 \ubaa8\ub450\uc5d0 \ud544\uc694\ud558\uba70, <a href=\"#table-3\">Table 3<\/a> \uc774 \uac01 \uae30\ub2a5\uc744 \ubb34\uc5c7\uc774 \uc9c0\ub294\uc9c0 \uc591\ucabd\uc5d0 \ub098\ub780\ud788 \uc801\ub294\ub2e4. <code>Without Prefect<\/code> \uc5f4\uc740 agent framework \ud558\ub098\ub9cc \uc4f4 \uad6c\uc131\uc774\uace0, <code>With Prefect<\/code> \uc5f4\uc740 \uac19\uc740 framework \uc704\uc5d0 Prefect \ub97c \ub354\ud55c \uad6c\uc131\uc774\ub2e4. Agent framework \ub294 LLM \ud638\ucd9c\uacfc tool \uc120\ud0dd loop \ub97c backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 Python code \ub85c \uc368 \ub123\ub294 library \uc774\uba70, \uc774 \ubb38\uc11c\ub294 LangGraph \ub97c \uadf8 \uc608\ub85c \ub4e0\ub2e4 [<a href=\"#ref-2\">2<\/a>].<\/p>\n<p dir=\"auto\"><a id=\"user-content-table-3\"><\/a>\nTable 3. The same function in each composition<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Function<\/th>\n<th align=\"center\">Without Prefect<\/th>\n<th align=\"center\">With Prefect<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">Step retry<\/td>\n<td align=\"center\">\ud55c graph \uc2e4\ud589 \uc548, node \uc5d0 \ubd99\uc778 retry policy<\/td>\n<td align=\"center\">Task \ub9c8\ub2e4 \ubd99\ub294 <code>retries<\/code> \uc640 <code>retry_delay_seconds<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">Resume after a crash<\/td>\n<td align=\"center\">Checkpointer \uac00 \ub9c8\uc9c0\ub9c9 super-step \ubd80\ud130 thread \ub97c \ub2e4\uc2dc \ub3cc\ub9bc<\/td>\n<td align=\"center\">Framework \uc758 checkpointer, \uadf8\ub9ac\uace0 Prefect server \uac00 \ubcf4\uad00\ud558\ub294 \uc2e4\ud589 \uc0c1\ud0dc<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">Human approval<\/td>\n<td align=\"center\">Interrupt, \uadf8\ub9ac\uace0 backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 \uc9c1\uc811 \uc5f0\uacb0\ud558\ub294 resume \ud638\ucd9c<\/td>\n<td align=\"center\"><code>wait_for_input<\/code> \uc744 \ubc1b\ub294 <code>pause_flow_run<\/code>, API \ub85c \ub2f5\ud568<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Where a run executes<\/td>\n<td align=\"center\">\uc694\uccad\uc5d0 \ub2f5\ud55c web process<\/td>\n<td align=\"center\">Work pool, \uadf8\ub9ac\uace0 \uadf8 pool \uc744 \uc0b4\ud53c\ub294 worker<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Suspension<\/td>\n<td align=\"center\">Web process \uac00 thread \ub97c \ubd99\ub4e4\uace0 \uc0ac\ub78c\uc758 \uc785\ub825\uc744 \uae30\ub2e4\ub9bc<\/td>\n<td align=\"center\"><code>suspend_flow_run<\/code> \uc774 \ube60\uc838\ub098\uac00\uace0, \uc785\ub825\uc774 \ub2ff\uc73c\uba74 \uc2e4\ud589\uc774 \ub2e4\uc2dc \uc2dc\uc791\ub428<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">Idempotent rerun<\/td>\n<td align=\"center\">Backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 \uac74\ub108\ub6f8 \uc870\uac74\uc744 node \uc548\uc5d0 Python code \ub85c \uc9c1\uc811 \uc801\uc74c<\/td>\n<td align=\"center\">Result caching \uc774 \uc55e\uc120 \uacb0\uacfc\ub97c \ubd88\ub7ec \ub2e4\uc2dc \ub3cc\uc9c0 \uc54a\uc74c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">Rate limiting<\/td>\n<td align=\"center\">Backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 semaphore \ub97c \uc9c1\uc811 \ub9cc\ub4e4\uc5b4 \ud638\ucd9c \uc218\ub97c \ubb36\uc74c<\/td>\n<td align=\"center\">Global concurrency limit \uacfc rate limit<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"center\">Per-step observability<\/td>\n<td align=\"center\">Backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 \uae30\ub85d\uc6a9 \ud45c\ub97c \ub9cc\ub4e4\uc5b4 \ub2e8\uacc4\ub9c8\ub2e4 \uacb0\uacfc\ub97c \uc9c1\uc811 \uc801\uc74c<\/td>\n<td align=\"center\">Server \uc758 UI \uc5d0 \ub2f4\uae34 \ubaa8\ub4e0 flow run \uacfc task run<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9<\/td>\n<td align=\"center\">One admission path<\/td>\n<td align=\"center\">Backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 trigger \ub9c8\ub2e4 \uc2e4\ud589\uc744 \uc2dc\uc791\ud558\ub294 \uacbd\ub85c\ub97c \uc9c1\uc811 \uc5f0\uacb0\ud568<\/td>\n<td align=\"center\">\uc694\uccad\u00b7schedule\u00b7automation \uc774 \ucf1c\ub294 deployment \ud558\ub098<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">10<\/td>\n<td align=\"center\">ML pipeline integration<\/td>\n<td align=\"center\">Backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 \uc7ac\ud559\uc2b5\uacfc \ubc30\ud3ec\ub97c \ub530\ub85c \ub454 scheduler \ub85c \ub3cc\ub9bc<\/td>\n<td align=\"center\">\uc7ac\ud559\uc2b5\u00b7\ubc30\ud3ec\u00b7agent \uac00 \ud55c server \uc704\uc758 flow \ub85c \ub3cc\uace0, \uc11c\ub85c\ub97c \ucf24 \uc218 \uc788\uc74c<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">\uc5f4 \ud589 \uac00\uc6b4\ub370 \uc544\ud649\uc740 <code>With Prefect<\/code> \uc5f4\uc5d0 \uc801\ud78c Prefect \uc758 API \ud638\ucd9c\uacfc \uc124\uc815\ub9cc\uc73c\ub85c \uac16\ucdb0\uc9c0\uace0, #2 \ub9cc agent framework \uc758 checkpointer \ub97c \ud568\uaed8 \uc4f4\ub2e4. \uc5f4 \ud589 \ubaa8\ub450\uc5d0\uc11c framework \uac00 \uc81c \ubaab\uc744 \ub9e1\ub294\ub2e4. Prefect \uac00 \uac10\uc2f8\ub294 \uac83\uc774 \uadf8 framework \uc758 loop \uc640 tool code \uc774\uace0, \uc5b4\ub514\uc11c \uba48\ucd9c\uc9c0, \uc5b4\ub290 \uacb0\uacfc\ub97c cache \ud574\ub3c4 \ub418\ub294\uc9c0, \ubb34\uc5c7\uc744 \ud55c \ub2e8\uacc4\ub85c \ubcfc\uc9c0\ub294 framework \ucabd\uc774 \uc815\ud55c\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">6. Strength<\/h2><a id=\"user-content-6-strength\" class=\"anchor\" aria-label=\"Permalink: 6. Strength\" href=\"#6-strength\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a href=\"#table-3\">Table 3<\/a> \uc758 #5 \ubd80\ud130 #10 \uae4c\uc9c0 \uc5ec\uc12f \ud589\uc5d0\uc11c agent framework \ub294 \uadf8 \uae30\ub2a5\uc744 \uc2a4\uc2a4\ub85c \uac16\ucd94\uc9c0 \ubabb\ud55c\ub2e4. Backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 Python code \ub97c \uc190\uc73c\ub85c \uc368\uc11c \ucc44\uc6b0\uac70\ub098, \uadf8\ub300\ub85c \ube44\uc6cc \ub454\ub2e4. \uadf8 \uc5ec\uc12f \ud589\uc774 benchmarking \uc790\ub8cc\uc5d0\uc11c \uc81c\ud488\uc744 \uac00\ub978\ub2e4. \uc544\ub798\uc5d0 \uadf8 \uc5ec\uc12f\uc744 \uac19\uc740 \uc774\ub984\uc73c\ub85c \ub298\uc5b4\ub193\uace0, \ud589\ub9c8\ub2e4 Prefect \uac00 \ubb34\uc5c7\uc744 \ud558\ub294\uc9c0 \uc801\ub294\ub2e4.<\/p>\n<ul dir=\"auto\">\n<li><strong>Suspension<\/strong>: <code>pause_flow_run<\/code> \uc740 \uae30\ub2e4\ub9ac\ub294 \ub3d9\uc548 flow \ub97c \uc0b4\ub824 \ub450\uace0, <code>suspend_flow_run<\/code> \uc740 \ube60\uc838\ub098\uac00 infrastructure \ub97c \uaebc \ub458 \uc218 \uc788\uac8c \ud558\uba70, \uc785\ub825\uc774 \ub2ff\uc73c\uba74 \uc2e4\ud589\uc774 \ub2e4\uc2dc \uc2dc\uc791\ub41c\ub2e4 [<a href=\"#ref-6\">6<\/a>]. \ud558\ub8e8\ub97c \uae30\ub2e4\ub9ac\ub294 HITL \ub2e8\uacc4\uac00 process \ub97c \ud558\ub098\ub3c4 \uc7a1\uc544 \ub450\uc9c0 \uc54a\ub294\ub2e4.<\/li>\n<li><strong>Idempotent rerun<\/strong>: Prefect \uc758 transactional orchestration \uc774 context \uac00 \uac19\uc740 \uc7ac\uc2e4\ud589\uc744 \ub2e4\uc2dc \ub3cc\ub9ac\uc9c0 \uc54a\uace0 \uc55e\uc120 \uacb0\uacfc\ub97c \ubd88\ub7ec\uc628\ub2e4 [<a href=\"#ref-5\">5<\/a>]. \uadf8 idempotency \uc544\ub798\uc5d0\uc11c \ub2e4\uc2dc \uc2dc\ub3c4\ud55c agent \uc2e4\ud589\uc774 \uac19\uc740 tool \ud638\ucd9c\uc5d0 LLM \ube44\uc6a9\uc744 \ub450 \ubc88 \uce58\ub974\uc9c0 \uc54a\ub294\ub2e4.<\/li>\n<li><strong>Rate limiting<\/strong>: Global concurrency limit \uc774 \ud55c \ubc88\uc5d0 \ub3c4\ub294 \ud638\ucd9c \uc218\ub97c \ubb36\uace0, rate limit \uc774 \ucd08\ub2f9 slot \ud68c\ubcf5\ub7c9\uc73c\ub85c \ud638\ucd9c \uac04\uaca9\uc744 \ubc8c\ub9b0\ub2e4 [<a href=\"#ref-7\">7<\/a>]. \ub458\uc740 flow \ubc16\uc758 Python code \uc5d0\uc11c\ub3c4 \uc4f0\uc5ec, task \ub85c \uac10\uc2f8\uc9c0 \uc54a\uc740 tool \ub3c4 \uc0c1\ud55c \uc548\uc5d0 \ub4e0\ub2e4.<\/li>\n<li><strong>Per-step observability<\/strong>: Tool \ud638\ucd9c \ud558\ub098\uac00 task \uc774\ubbc0\ub85c \ud558\ub098\uc529 \ub530\ub85c \uc2e4\ud589 \uae30\ub85d\uc5d0 \ubcf4\uc774\uace0 \ud558\ub098\uc529 \ub530\ub85c \ub2e4\uc2dc \uc2dc\ub3c4\ub41c\ub2e4 [<a href=\"#ref-5\">5<\/a>]. \uc2e4\ud328 \ubcf4\uace0\uc5d0 agent \uc2e4\ud589\uc774 \uc2e4\ud328\ud588\ub2e4\ub294 \uac83\ub9cc \ub0a8\uc9c0 \uc54a\uace0, \uc5b4\ub290 tool \ud638\ucd9c\uc774 \uc5b4\ub290 \uc785\ub825\uc5d0\uc11c \uc2e4\ud328\ud588\ub294\uc9c0\uac00 \ud568\uaed8 \ub0a8\ub294\ub2e4.<\/li>\n<li><strong>One admission path<\/strong>: Deployment \ud558\ub098\uac00 \ub300\ud654\ud615 \uc694\uccad\uacfc \uc57c\uac04 schedule \uacfc event \uae30\ubc18 automation \uc5d0 \ud568\uaed8 \ub2f5\ud55c\ub2e4 [<a href=\"#ref-3\">3<\/a>]. \uc57c\uac04 \uc77c\uad04 \uc2e4\ud589\uacfc \ub300\ud654 \uc694\uccad\uc774 \ub450 \ubc8c\uc774 \uc544\ub2c8\ub77c \uac19\uc740 Python code \ub97c \ub3cc\ub9b0\ub2e4.<\/li>\n<li><strong>ML pipeline integration<\/strong>: \uc7ac\ud559\uc2b5\u00b7\ubc30\ud3ec\u00b7agent \uac00 \ud55c server \uc704\uc758 flow \ub85c \ub3cc\uace0, \uc55e flow \uac00 \ub05d\ub098\uba74 \uadf8 \uc0c1\ud0dc\uac00 \ub2e4\uc74c flow \ub97c \ucf20\ub2e4 [<a href=\"#ref-8\">8<\/a>]. \uc7ac\ud559\uc2b5\uacfc agent \ub97c \ub450 \uccb4\uacc4\uc5d0 \ub098\ub204\uc5b4 \ub450\uace0 \uadf8 \ub458\uc744 \uc787\ub294 Python code \ub97c \ub530\ub85c \uc4f8 \uc77c\uc774 \uc5c6\ub2e4.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">7. Application<\/h2><a id=\"user-content-7-application\" class=\"anchor\" aria-label=\"Permalink: 7. Application\" href=\"#7-application\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Agent \uc2e4\ud589\uc774 HTTP \uc751\ub2f5\uc744 \ub0b4\ubcf4\ub0b8 \ub4a4\uc5d0\ub3c4 \uc774\uc5b4\uc9c0\ub294 backend \uc5d0\ub294 Prefect \uac00 \uc720\ub9ac\ud558\uace0, HTTP \uc751\ub2f5\uacfc \ud568\uaed8 \uc2e4\ud589\uc774 \ub05d\ub098\ub294 backend \uc5d0\ub294 \ubd88\ub9ac\ud558\ub2e4. \uc5ec\uae30\uc11c HTTP \uc751\ub2f5\uc740 frontend \uac00 \ubcf4\ub0b8 \uc694\uccad \ud558\ub098\uc5d0 backend \uac00 \ub3cc\ub824\uc8fc\ub294 \ub2f5\uc774\uba70, \uadf8 \uc751\ub2f5\uc744 \ubcf4\ub0b4\uba74 \uc694\uccad\uc758 connection \uc774 \ub2eb\ud788\uace0 \uc694\uccad\uc744 \ubc1b\uc558\ub358 web process \ub294 \ub2e4\uc74c \uc694\uccad\uc73c\ub85c \ub118\uc5b4\uac04\ub2e4. \uc544\ub798 \uc138 \uc870\uac74\uc774 design \uc774 \uc5b4\ub290 \uacbd\uc6b0\uc5d0 \uc788\ub294\uc9c0\ub97c \uac00\ub978\ub2e4.<\/p>\n<ol dir=\"auto\">\n<li><strong>Assumption<\/strong>: Backend \uac00 \uc81c process \ub97c \uac00\uc9c8 \uc218 \uc788\ub2e4\ub294 \uac83\uc774\ub2e4. Worker \ub294 work pool \uc744 \uc0b4\ud3b4 \uc2e4\ud589\uc744 infrastructure \uc704\uc5d0\uc11c \uc2dc\uc791\ud558\ub294 client \ucabd process \uc774\ubbc0\ub85c [<a href=\"#ref-3\">3<\/a>], \uc624\ub798 \ub3c4\ub294 process \ub97c \uae08\uc9c0\ud558\ub294 \ubc30\ud3ec \ub300\uc0c1\uc5d0\uc11c\ub294 worker \ub97c \ub458 \uc218 \uc5c6\uc5b4 <a href=\"#fig-2\">Fig 2<\/a> \uc758 \uad6c\uc131\uc774 \uc131\ub9bd\ud558\uc9c0 \uc54a\ub294\ub2e4.<\/li>\n<li><strong>Breaking condition<\/strong>: \uc778\uc99d\uc774\ub2e4. Open source server \uc5d0\ub294 \uc0ac\uc6a9\uc790\ub3c4 \uc778\uc99d\ub3c4 \uc5c6\uc5b4 UI \ub098 API \uc5d0 \ub2ff\ub294 \ub204\uad6c\ub098 \uadf8 server \uc5d0 \ub300\ud55c \uc804\uccb4 \uad8c\ud55c\uc744 \uac16\ub294\ub2e4 [<a href=\"#ref-4\">4<\/a>]. \uadf8\ub798\uc11c self-hosted server \ub294 \uc0ac\uc124\ub9dd \uc548\uc5d0 \ub450\uac70\ub098 \uc778\uc99d\ud558\ub294 proxy \ub4a4\uc5d0 \ub454\ub2e4. Webhook \uc740 Prefect Cloud \uc758 \uae30\ub2a5\uc774\ubbc0\ub85c [<a href=\"#ref-4\">4<\/a>], \uc678\ubd80 system \uc5d0\uc11c \uc2e4\ud589\uc744 \uc2dc\uc791\ud574\uc57c \ud558\ub294 self-hosted backend \ub294 \uadf8 event \ub97c Prefect API \ub85c \ubcf4\ub0b4\ub294 endpoint \ub97c \uc9c1\uc811 \ub9cc\ub4e0\ub2e4.<\/li>\n<li><strong>Exclusion<\/strong>: \uc2e4\ud589\uc774 LLM \ud638\ucd9c \ud558\ub098\ub85c \ub05d\ub098\uace0 \uadf8 \uacb0\uacfc\ub97c \ub4a4\uc5d0 \uc544\ubb34\ub3c4 \ucc3e\uc9c0 \uc54a\ub294 agent \ub2e4. Server \uc640 worker \ub294 \uc6b4\uc601\ud560 \uad6c\uc131 \uc694\uc18c \ub458\uc774\uace0, HTTP \uc751\ub2f5\uacfc \ud568\uaed8 \ub05d\ub098\ub294 \uc2e4\ud589\uc740 \uadf8 \ub458\uc774 \ub9e1\uc744 \uc0c1\ud0dc\ub97c \ub0a8\uae30\uc9c0 \uc54a\ub294\ub2e4.<\/li>\n<\/ol>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">References<\/h2><a id=\"user-content-references\" class=\"anchor\" aria-label=\"Permalink: References\" href=\"#references\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\"><a id=\"user-content-ref-1\"><\/a>\n[1] GitHub. <a href=\"https:\/\/github.com\/resources\/articles\/what-is-workflow-orchestration\">What is Workflow Orchestration?<\/a>.<br>\n<a id=\"user-content-ref-2\"><\/a>\n[2] LangChain. <a href=\"https:\/\/docs.langchain.com\/oss\/python\/langgraph\/checkpointers\" rel=\"nofollow\">Checkpointers<\/a>. LangGraph documentation.<br>\n<a id=\"user-content-ref-3\"><\/a>\n[3] Prefect. <a href=\"https:\/\/docs.prefect.io\/v3\/concepts\/deployments\" rel=\"nofollow\">Deployments<\/a>. Prefect 3 documentation.<br>\n<a id=\"user-content-ref-4\"><\/a>\n[4] Prefect. <a href=\"https:\/\/www.prefect.io\/compare\/prefect-oss\" rel=\"nofollow\">Cloud vs OSS feature comparison<\/a>.<br>\n<a id=\"user-content-ref-5\"><\/a>\n[5] Pydantic. <a href=\"https:\/\/pydantic.dev\/docs\/ai\/integrations\/durable_execution\/prefect\/\" rel=\"nofollow\">Durable execution with Prefect<\/a>. Pydantic AI documentation.<br>\n<a id=\"user-content-ref-6\"><\/a>\n[6] Prefect. <a href=\"https:\/\/docs.prefect.io\/v3\/advanced\/interactive\" rel=\"nofollow\">How to write interactive workflows<\/a>. Prefect 3 documentation.<br>\n<a id=\"user-content-ref-7\"><\/a>\n[7] Prefect. <a href=\"https:\/\/docs.prefect.io\/v3\/how-to-guides\/workflows\/global-concurrency-limits\" rel=\"nofollow\">How to apply global concurrency and rate limits<\/a>. Prefect 3 documentation.<br>\n<a id=\"user-content-ref-8\"><\/a>\n[8] Prefect. <a href=\"https:\/\/docs.prefect.io\/v3\/concepts\/event-triggers\" rel=\"nofollow\">Define event triggers<\/a>. Prefect 3 documentation.<br>\n<a id=\"user-content-ref-9\"><\/a>\n[9] LangChain. <a href=\"https:\/\/www.langchain.com\/resources\/ai-agent-frameworks\" rel=\"nofollow\">The best AI agent frameworks in 2026<\/a>.<br>\n<a id=\"user-content-ref-10\"><\/a>\n[10] Prefect. <a href=\"https:\/\/www.prefect.io\/solutions\/agents\" rel=\"nofollow\">The only orchestrator built for AI agents<\/a>.<\/p>\n<hr>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix A. Terminology<\/h2><a id=\"user-content-appendix-a-terminology\" class=\"anchor\" aria-label=\"Permalink: Appendix A. Terminology\" href=\"#appendix-a-terminology\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<ul dir=\"auto\">\n<li><strong>Agent framework<\/strong>: LLM \ud638\ucd9c\uacfc tool \uc120\ud0dd loop \ub97c backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 Python code \ub85c \uc368 \ub123\ub294 library. LangGraph \uac00 \uadf8 \uc608\ub2e4.<\/li>\n<li><strong>Automation<\/strong>: \ub9de\ub294 event \uac00 \ub2ff\uc73c\uba74 \ubbf8\ub9ac \uc815\ud55c \ub3d9\uc791\uc744 \uc2dc\uc791\ud558\ub294 Prefect \uc758 \uaddc\uce59.<\/li>\n<li><strong>Checkpointer<\/strong>: Graph \uc0c1\ud0dc\ub97c \ub2e8\uacc4\ub9c8\ub2e4 \uc800\uc7a5\ud574, \uba48\ucd98 \uc2e4\ud589\uc774 \uadf8 \uc790\ub9ac\uc5d0\uc11c \ub2e4\uc2dc \uc2dc\uc791\ud558\uac8c \ud558\ub294 \uad6c\uc131 \uc694\uc18c.<\/li>\n<li><strong>Deployment<\/strong>: \uc5b4\ub514\uc11c\u00b7\uc5b8\uc81c\u00b7\uc5b4\ub5bb\uac8c \ub3cc\ub9b4\uc9c0\uac00 \ubd99\uc740 flow. API \uac00 \uad00\ub9ac\ud558\ub294 \ub300\uc0c1\uc774 \ub41c\ub2e4.<\/li>\n<li><strong>FDC (Fault Detection and Classification)<\/strong>: \uc7a5\ube44 \uc13c\uc11c trace \ub97c \uc9c0\ucf1c\ubcf4\ub2e4\uac00 \ud55c\uacc4\ub97c \ubc97\uc5b4\ub098\uba74 alarm \uc744 \ub0b4\ub294 fab \ucabd system.<\/li>\n<li><strong>Flow<\/strong>: Prefect \uac00 \ud55c \uc2e4\ud589\uc73c\ub85c \ub2e4\ub8e8\ub294 \ud568\uc218.<\/li>\n<li><strong>HITL (Human In The Loop)<\/strong>: \uc0ac\ub78c\uc758 \uc785\ub825\uc744 \uae30\ub2e4\ub9b0 \ub4a4\uc5d0 \uc774\uc5b4 \uac00\ub294 \uc2e4\ud589.<\/li>\n<li><strong>Idempotency<\/strong>: \uac19\uc740 \uc785\ub825\uc73c\ub85c \ub2e4\uc2dc \ub3cc\ub824\ub3c4 \uacb0\uacfc\uc640 \ubd80\uc218 \ud6a8\uacfc\uac00 \ud55c \ubc88 \ub3cc\ub9b0 \uac83\uacfc \uac19\uc740 \uc131\uc9c8.<\/li>\n<li><strong>Jinja<\/strong>: Prefect \uac00 event \uac12\uc744 flow \uc758 parameter \uc5d0 \ub07c\uc6cc \ub123\ub294 \ub370 \uc4f0\ub294 template \ubb38\ubc95.<\/li>\n<li><strong>K8s (Kubernetes)<\/strong>: Work pool \uc774 flow \uc2e4\ud589\uc744 \uc62c\ub9b4 \uc218 \uc788\ub294 container platform.<\/li>\n<li><strong>Orchestrator<\/strong>: Backend \uac00\uc6b4\ub370 \ud55c \uc2e4\ud589\uc774 \uc544\ub2c8\ub77c \ubaa8\ub4e0 \uc2e4\ud589\uc744 \ub9e1\ub294 \ucabd. \ubb34\uc5c7\uc774 \uc2e4\ud589\uc744 \uc2dc\uc791\ud558\ub294\uac00, \ud638\ucd9c\uc774 \ud55c \ubc88\uc5d0 \uba87 \uac1c \ub3c4\ub294\uac00, \uc2e4\ud589 \uae30\ub85d\uc5d0 \ubb34\uc5c7\uc774 \ub0a8\ub294\uac00\ub97c \uc9c4\ub2e4.<\/li>\n<li><strong>Prefect Server<\/strong>: API, UI, scheduler, \uadf8\ub9ac\uace0 event \uc640 automation \uc744 \ub2f4\uc740 self-hosted orchestration backend.<\/li>\n<li><strong>RAG (Retrieval Augmented Generation)<\/strong>: \uc9c8\ubb38 \uc2dc\uc810\uc5d0 \ucc3e\uc544\uc628 \ubb38\uc11c\ub97c \uc9c8\ubb38\uacfc \ud568\uaed8 LLM \uc5d0 \uac74\ub124\uc5b4 \ub2f5\ud558\ub294 \uac83.<\/li>\n<li><strong>Rate limit<\/strong>: \uc815\ud574\uc9c4 \uc2dc\uac04 \uc548\uc5d0 \ub098\uac08 \uc218 \uc788\ub294 \ud638\ucd9c \uc218\uc758 \uc0c1\ud55c.<\/li>\n<li><strong>Result caching<\/strong>: \uc785\ub825\uc774 \uac19\uc744 \ub54c \ub2e4\uc2dc \ub3cc\uc9c0 \uc54a\uace0 \uc55e\uc120 \uacb0\uacfc\ub97c \ubd88\ub7ec\uc624\ub294 \uac83.<\/li>\n<li><strong>Super-step<\/strong>: Graph \uac00 \uc0c1\ud0dc snapshot \ud558\ub098\ub97c \uc800\uc7a5\ud558\ub294 \uc2e4\ud589 \ub2e8\uc704.<\/li>\n<li><strong>Task<\/strong>: Flow \uc548\uc5d0\uc11c Prefect \uac00 \ub530\ub85c \uc7ac\uc2dc\ub3c4\ud558\uace0 cache \ud558\uace0 \uae30\ub85d\ud558\ub294 \ub2e8\uc704.<\/li>\n<li><strong>Thread<\/strong>: Checkpointer \uac00 \ud55c \ub300\ud654\uc758 \uc0c1\ud0dc\ub97c \ubaa8\uc544 \ub450\ub294 \ub2e8\uc704.<\/li>\n<li><strong>VM (Virtual Metrology)<\/strong>: \uacc4\uce21\ud558\ub294 \ub300\uc2e0 \uacf5\uc815 \uc13c\uc11c \ub370\uc774\ud130\ub85c \uacc4\uce21\uac12\uc744 \uc608\uce21\ud558\ub294 \uac83.<\/li>\n<li><strong>Work pool<\/strong>: Flow \uc2e4\ud589\uc774 \uc5b4\ub290 infrastructure \uc704\uc5d0\uc11c \ub3cc\uc9c0 \uac00\ub9ac\ud0a4\ub294 Prefect \uc124\uc815.<\/li>\n<li><strong>Worker<\/strong>: Work pool \uc744 \uc0b4\ud3b4 \uc608\uc815\ub41c \uc2e4\ud589\uc744 \uadf8 infrastructure \uc704\uc5d0\uc11c \uc2dc\uc791\ud558\ub294 client \ucabd process.<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix B. What Prefect Does In An Agent Backend<\/h2><a id=\"user-content-appendix-b-what-prefect-does-in-an-agent-backend\" class=\"anchor\" aria-label=\"Permalink: Appendix B. What Prefect Does In An Agent Backend\" href=\"#appendix-b-what-prefect-does-in-an-agent-backend\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc544\ub798 \ud56d\ubaa9\uc740 Prefect \uac00 agent backend \uc5d0\uc11c \ud558\ub294 \uc77c\uc774\uace0, \ud56d\ubaa9 \ub05d\uc758 \uad04\ud638\ub294 \uadf8\uac83\uc774 <a href=\"#table-3\">Table 3<\/a> \uc758 \uc5b4\ub290 function \uc778\uc9c0\ub97c \uac00\ub9ac\ud0a8\ub2e4.<\/p>\n<ol dir=\"auto\">\n<li>\uc911\ub2e8\ub41c \uc790\ub9ac\uc5d0\uc11c \ub2e4\uc2dc \uc2dc\uc791: LLM \ud638\ucd9c\uacfc tool \ud638\ucd9c\uc744 task \ub2e8\uc704\ub85c cache \ud558\uace0, \uc2e4\ud328\ud558\uba74 \uadf8 \uc790\ub9ac\ubd80\ud130 \ub2e4\uc2dc \uc2dc\uc791\ud55c\ub2e4 (#2 Resume after a crash, #6 Idempotent rerun).<\/li>\n<li>\uc7ac\uc2dc\ub3c4\uc640 \uc81c\ud55c \uc2dc\uac04: \ud638\ucd9c\ub9c8\ub2e4 retry policy \uc640 timeout \uc744 \uac74\ub2e4. LLM API \uc7a5\uc560\uc640 tool \uc624\ub958\uc5d0 \ub300\uc751\ud55c\ub2e4 (#1 Step retry).<\/li>\n<li>Event \ub85c \uc790\ub3d9 \uc2e4\ud589: FDC alarm \uc774\ub098 drift \uac10\uc9c0 \uac19\uc740 event \uac00 \ub2ff\uc73c\uba74 agent \ub97c \uc790\ub3d9\uc73c\ub85c \uc2e4\ud589\ud55c\ub2e4 (#9 One admission path).<\/li>\n<li>\uc815\ud574\uc9c4 \ub54c\ub9c8\ub2e4 \uc2e4\ud589: \uc815\uae30 \ubd84\uc11d agent \uc640 report agent \ub97c schedule \uc5d0 \uac78\uc5b4 \uc2e4\ud589\ud55c\ub2e4 (#9 One admission path).<\/li>\n<li>\uc5ec\ub7ec node \uc5d0 \ub098\ub204\uc5b4 \uc2e4\ud589: K8s node \ub098 GPU worker \uc5d0 \uc2e4\ud589\uc744 \ub098\ub204\uc5b4 \ubcf4\ub0b8\ub2e4 (#4 Where a run executes).<\/li>\n<li>\uc2e4\ud589 \uae30\ub85d \ubcf4\uae30: Flow run \uacfc task run \uc758 log \uc640 \uc0c1\ud0dc\ub97c UI \uc5d0\uc11c \ub530\ub77c\uac04\ub2e4 (#8 Per-step observability).<\/li>\n<li>\uc0ac\ub78c\uc758 \uc2b9\uc778 \uae30\ub2e4\ub9ac\uae30: <code>pause_flow_run<\/code> \uc73c\ub85c \uc2b9\uc778\uc774 \ub2ff\uc744 \ub54c\uae4c\uc9c0 \uba48\ucdc4\ub2e4\uac00 \ub2e4\uc2dc \uc2dc\uc791\ud55c\ub2e4 (#3 Human approval, #5 Suspension).<\/li>\n<li>ML pipeline \uacfc \ud55c \uccb4\uacc4\uc5d0\uc11c \uc6b4\uc601: \uc7ac\ud559\uc2b5\uacfc \ubc30\ud3ec\uc640 agent \uc2e4\ud589\uc744 \ud568\uaed8 \ub3cc\ub9b0\ub2e4 (#10 ML pipeline integration).<\/li>\n<li>\ud638\ucd9c \uc18d\ub3c4 \uc81c\ud55c: \ub3d9\uc2dc \ud638\ucd9c \uc218\uc640 \ucd08\ub2f9 \ud638\ucd9c \uc18d\ub3c4\ub97c \uc120\uc5b8\uc73c\ub85c \ubb36\ub294\ub2e4. LLM API \uc758 rate limit \uc5d0 \ub300\uc751\ud55c\ub2e4 (#7 Rate limiting).<\/li>\n<\/ol>\n<p dir=\"auto\">\uc9c1\uc811 \ud558\uc9c0 \uc54a\ub294 \uc77c: LLM \ucd94\ub860 logic, memory \uc640 RAG, \uc2e4\uc2dc\uac04 \ub300\ud654 serving \uc740 agent framework \uc640 API server \uac00 \ub9e1\ub294\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix C. How An Event Trigger Is Done In Prefect<\/h2><a id=\"user-content-appendix-c-how-an-event-trigger-is-done-in-prefect\" class=\"anchor\" aria-label=\"Permalink: Appendix C. How An Event Trigger Is Done In Prefect\" href=\"#appendix-c-how-an-event-trigger-is-done-in-prefect\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\ub450 \ub2e8\uacc4\ub85c \ud55c\ub2e4. <code>emit_event<\/code> \uac00 event \ub97c \ub0b4\ubcf4\ub0b4\uace0, <code>DeploymentEventTrigger<\/code> \ub610\ub294 automation \uc774 \uadf8 event \ub97c \ubc1b\uc544 flow \ub97c \uc2e4\ud589\ud55c\ub2e4 [<a href=\"#ref-8\">8<\/a>].<\/p>\n<p dir=\"auto\"><strong>1. Emit the event<\/strong> \u2014 FDC system \uc774\ub098 collector \ucabd\uc5d0\uc11c \ud55c\ub2e4.<\/p>\n<div class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"from prefect.events import emit_event\n\nemit_event(\n    event=&quot;fdc.alarm.raised&quot;,\n    resource={&quot;prefect.resource.id&quot;: &quot;tool.ETCH01.TG1&quot;},\n    payload={&quot;wafer_id&quot;: &quot;W123&quot;, &quot;sensor&quot;: &quot;RF_power&quot;, &quot;severity&quot;: &quot;high&quot;},\n)\"><pre><span class=\"pl-k\">from<\/span> <span class=\"pl-s1\">prefect<\/span>.<span class=\"pl-s1\">events<\/span> <span class=\"pl-k\">import<\/span> <span class=\"pl-s1\">emit_event<\/span>\n\n<span class=\"pl-en\">emit_event<\/span>(\n    <span class=\"pl-s1\">event<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-s\">\"fdc.alarm.raised\"<\/span>,\n    <span class=\"pl-s1\">resource<\/span><span class=\"pl-c1\">=<\/span>{<span class=\"pl-s\">\"prefect.resource.id\"<\/span>: <span class=\"pl-s\">\"tool.ETCH01.TG1\"<\/span>},\n    <span class=\"pl-s1\">payload<\/span><span class=\"pl-c1\">=<\/span>{<span class=\"pl-s\">\"wafer_id\"<\/span>: <span class=\"pl-s\">\"W123\"<\/span>, <span class=\"pl-s\">\"sensor\"<\/span>: <span class=\"pl-s\">\"RF_power\"<\/span>, <span class=\"pl-s\">\"severity\"<\/span>: <span class=\"pl-s\">\"high\"<\/span>},\n)<\/pre><\/div>\n<p dir=\"auto\"><strong>2. Run the agent flow from a trigger<\/strong><\/p>\n<div class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"from prefect import flow\nfrom prefect.events import DeploymentEventTrigger\n\n\n@flow\ndef fdc_agent(tool_id: str, wafer_id: str, sensor: str):\n    ...  # agent analysis, then the report and the notification\n\n\nif __name__ == &quot;__main__&quot;:\n    fdc_agent.serve(\n        name=&quot;fdc-agent&quot;,\n        triggers=[\n            DeploymentEventTrigger(\n                expect={&quot;fdc.alarm.raised&quot;},\n                match={&quot;prefect.resource.id&quot;: &quot;tool.*&quot;},\n                parameters={  # Jinja injects the event values into the flow parameters\n                    &quot;tool_id&quot;: &quot;{{ event.resource.id }}&quot;,\n                    &quot;wafer_id&quot;: &quot;{{ event.payload.wafer_id }}&quot;,\n                    &quot;sensor&quot;: &quot;{{ event.payload.sensor }}&quot;,\n                },\n            )\n        ],\n    )\"><pre><span class=\"pl-k\">from<\/span> <span class=\"pl-s1\">prefect<\/span> <span class=\"pl-k\">import<\/span> <span class=\"pl-s1\">flow<\/span>\n<span class=\"pl-k\">from<\/span> <span class=\"pl-s1\">prefect<\/span>.<span class=\"pl-s1\">events<\/span> <span class=\"pl-k\">import<\/span> <span class=\"pl-v\">DeploymentEventTrigger<\/span>\n\n\n<span class=\"pl-en\">@<span class=\"pl-en\">flow<\/span><\/span>\n<span class=\"pl-k\">def<\/span> <span class=\"pl-en\">fdc_agent<\/span>(<span class=\"pl-s1\">tool_id<\/span>: <span class=\"pl-smi\">str<\/span>, <span class=\"pl-s1\">wafer_id<\/span>: <span class=\"pl-smi\">str<\/span>, <span class=\"pl-s1\">sensor<\/span>: <span class=\"pl-smi\">str<\/span>):\n    ...  <span class=\"pl-c\"># agent analysis, then the report and the notification<\/span>\n\n\n<span class=\"pl-k\">if<\/span> <span class=\"pl-s1\">__name__<\/span> <span class=\"pl-c1\">==<\/span> <span class=\"pl-s\">\"__main__\"<\/span>:\n    <span class=\"pl-s1\">fdc_agent<\/span>.<span class=\"pl-c1\">serve<\/span>(\n        <span class=\"pl-s1\">name<\/span><span class=\"pl-c1\">=<\/span><span class=\"pl-s\">\"fdc-agent\"<\/span>,\n        <span class=\"pl-s1\">triggers<\/span><span class=\"pl-c1\">=<\/span>&#91;\n            <span class=\"pl-en\">DeploymentEventTrigger<\/span>(\n                <span class=\"pl-s1\">expect<\/span><span class=\"pl-c1\">=<\/span>{<span class=\"pl-s\">\"fdc.alarm.raised\"<\/span>},\n                <span class=\"pl-s1\">match<\/span><span class=\"pl-c1\">=<\/span>{<span class=\"pl-s\">\"prefect.resource.id\"<\/span>: <span class=\"pl-s\">\"tool.*\"<\/span>},\n                <span class=\"pl-s1\">parameters<\/span><span class=\"pl-c1\">=<\/span>{  <span class=\"pl-c\"># Jinja injects the event values into the flow parameters<\/span>\n                    <span class=\"pl-s\">\"tool_id\"<\/span>: <span class=\"pl-s\">\"{{ event.resource.id }}\"<\/span>,\n                    <span class=\"pl-s\">\"wafer_id\"<\/span>: <span class=\"pl-s\">\"{{ event.payload.wafer_id }}\"<\/span>,\n                    <span class=\"pl-s\">\"sensor\"<\/span>: <span class=\"pl-s\">\"{{ event.payload.sensor }}\"<\/span>,\n                },\n            )\n        &#93;,\n    )<\/pre><\/div>\n<p dir=\"auto\">Table 4. Trigger types<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Type<\/th>\n<th align=\"center\">Use<\/th>\n<th align=\"center\">Setting<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">Reactive<\/td>\n<td align=\"center\">Event \uac00 \ub2ff\uc73c\uba74 \uace7\ubc14\ub85c \uc2e4\ud589<\/td>\n<td align=\"center\">\uae30\ubcf8\uac12<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">Threshold<\/td>\n<td align=\"center\">Event \uac00 N \ubc88 \uc313\uc774\uba74 \uc2e4\ud589 (\uc608: 10 \ubd84 \uc548\uc5d0 alarm 3 \ud68c)<\/td>\n<td align=\"center\"><code>threshold=3<\/code>, <code>within=timedelta(minutes=10)<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">Proactive<\/td>\n<td align=\"center\">Event \uac00 \uc624\uc9c0 \uc54a\uc73c\uba74 \uc2e4\ud589 (\uc608: \ub370\uc774\ud130 \uc218\uc9d1 \uc911\ub2e8)<\/td>\n<td align=\"center\"><code>posture=\"Proactive\"<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Compound \/ Sequence<\/td>\n<td align=\"center\">\uc5ec\ub7ec event \uc758 \uc870\ud569\uc774\ub098 \uc21c\uc11c\uac00 \ub9de\uc73c\uba74 \uc2e4\ud589<\/td>\n<td align=\"center\"><code>CompoundTrigger<\/code>, <code>SequenceTrigger<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Flow state<\/td>\n<td align=\"center\">\ub2e4\ub978 flow \uac00 \ub05d\ub098\uac70\ub098 \uc2e4\ud328\ud558\uba74 \uc774\uc5b4\uc11c \uc2e4\ud589<\/td>\n<td align=\"center\"><code>expect={\"prefect.flow-run.Completed\"}<\/code> \ub4f1<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\"><strong>External systems<\/strong><\/p>\n<ul dir=\"auto\">\n<li>Prefect Cloud: webhook \uc774 \uc678\ubd80 HTTP \uc694\uccad\uc744 \uadf8\ub300\ub85c event \ub85c \ubc1b\ub294\ub2e4.<\/li>\n<li>Self-hosted (OSS): webhook \uc774 \uc5c6\uc73c\ubbc0\ub85c FastAPI endpoint \ub098 Kafka\u00b7MQ consumer \uac00 <code>emit_event<\/code> \ub97c \ubd88\ub7ec \uadf8 \uc694\uccad\uc744 event \ub85c \ubc14\uafbc\ub2e4.<\/li>\n<\/ul>\n<p dir=\"auto\"><strong>Fab application<\/strong><\/p>\n<ul dir=\"auto\">\n<li>FDC alarm \u2192 Reactive \u2192 \uc6d0\uc778 \ubd84\uc11d agent<\/li>\n<li>VM \uc624\ucc28 \ucd08\uacfc\uac00 10 \ubd84 \uc548\uc5d0 3 \ud68c \u2192 Threshold \u2192 \uc7ac\ud559\uc2b5 flow<\/li>\n<li>\uc13c\uc11c \ub370\uc774\ud130 30 \ubd84 \ubbf8\uc218\uc2e0 \u2192 Proactive \u2192 \uc7a5\ube44 \uc810\uac80 \uc54c\ub9bc<\/li>\n<li>\uc7ac\ud559\uc2b5 \uc644\ub8cc \u2192 Flow state \u2192 \uac80\uc99d agent \u2192 report \uc0dd\uc131<\/li>\n<\/ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">Appendix D. Agent Frameworks In Use As Of September 2026<\/h2><a id=\"user-content-appendix-d-agent-frameworks-in-use-as-of-september-2026\" class=\"anchor\" aria-label=\"Permalink: Appendix D. Agent Frameworks In Use As Of September 2026\" href=\"#appendix-d-agent-frameworks-in-use-as-of-september-2026\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc774 \ubb38\uc11c\uac00 \ube44\uad50 \ub300\uc0c1\uc73c\ub85c \uc4f4 \uac83\uc740 #1 LangGraph \uc774\uba70, \uace0\ub978 \uc774\uc720\ub294 \uaf2d\uc9c0 2 \uc5d0 \uc801\uc5c8\ub2e4. \ucd9c\uc2dc \uc2dc\uc810\uc740 \uac01 \uc81c\ud488\uc758 \uacf5\uac1c \ubc1c\ud45c \uc2dc\uc810\uc774\ub2e4 [<a href=\"#ref-9\">9<\/a>].<\/p>\n<p dir=\"auto\">Table 5. Agent frameworks and when each was first announced<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">#<\/th>\n<th align=\"center\">Framework<\/th>\n<th align=\"center\">Framework details<\/th>\n<th align=\"center\">Announced<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">1<\/td>\n<td align=\"center\">LangGraph<\/td>\n<td align=\"center\">Graph \ub85c \uc0c1\ud0dc\ub97c \ub2e4\ub8ec\ub2e4. \uc2e4\ud589 \uae30\ub85d\uacfc \uc0ac\ub78c \uc2b9\uc778\uc774 \ud544\uc694\ud55c \uacf3\uc758 \uae30\ubcf8\uac12<\/td>\n<td align=\"center\">2024-01<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">2<\/td>\n<td align=\"center\">CrewAI<\/td>\n<td align=\"center\">\uc5ed\ud560\uc744 \ub9e1\uc740 agent \uc5ec\ub7ff\uc744 \ud300\uc73c\ub85c \ubb36\ub294\ub2e4. Prototype \uae4c\uc9c0 \uac00\uc7a5 \ube60\ub984<\/td>\n<td align=\"center\">2024-01<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">3<\/td>\n<td align=\"center\">OpenAI Agents SDK<\/td>\n<td align=\"center\">Model \uc774 loop \ub97c \ub04c\uace0 \uac04\ub2e4. GPT \uc911\uc2ec\uc774\uba74 \uc190\uc774 \uac00\uc7a5 \ub35c \uac10<\/td>\n<td align=\"center\">2025-03<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"center\">Google ADK<\/td>\n<td align=\"center\">Multimodal \uc5d0 \uac15\ud558\ub2e4. Google Cloud NEXT 2025 \uc5d0\uc11c \uacf5\uac1c<\/td>\n<td align=\"center\">2025-04<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"center\">Claude Agent SDK<\/td>\n<td align=\"center\">Claude Code \uc758 agent harness. Claude Code SDK \uc5d0\uc11c \uc774\ub984\uc744 \ubc14\uafc8<\/td>\n<td align=\"center\">2025-09<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6<\/td>\n<td align=\"center\">Microsoft Agent Framework<\/td>\n<td align=\"center\">Graph \uae30\ubc18. Azure \uc640 .NET \ud658\uacbd\uc758 \uc120\ud0dd<\/td>\n<td align=\"center\">2026-04<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7<\/td>\n<td align=\"center\">Pydantic AI<\/td>\n<td align=\"center\">Type \uc548\uc804\ud55c Python. V2 \uac00 durable execution \uc744 \ub2f4\uc74c<\/td>\n<td align=\"center\">2026-06<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">#7 Pydantic AI \uc640 Prefect \ub294 \ub530\ub85c \uc4f0\ub294 \ub450 \uc81c\ud488\uc774\uace0, \uadf8 \ub458\uc744 \uc787\ub294 package \uac00 \uacf5\uac1c\ub418\uc5b4 \uc788\ub2e4 [<a href=\"#ref-5\">5<\/a>]. \uadf8 package \ub97c \uc124\uce58\ud558\uba74 Pydantic AI \ub85c \uc4f4 agent \uac00 Prefect \uc758 flow \ub85c \ub3cc\uace0 \uadf8 agent \uc758 tool \uc774 Prefect \uc758 task \uac00 \ub418\ubbc0\ub85c, \uac10\uc2f8\ub294 Python code \ub97c \uc9c1\uc811 \uc4f8 \ud544\uc694\uac00 \uc5c6\ub2e4. \ub450 \uc81c\ud488\uc774 \ud569\uccd0\uc84c\ub2e4\uac70\ub098 \ud55c\ucabd\uc774 \ub2e4\ub978 \ucabd\uc744 \uc548\uc5d0\uc11c \uc4f0\ub294 \uac83\uc740 \uc544\ub2c8\ub2e4.<\/p>\n<p dir=\"auto\">\uc77c\uacf1 \uac00\uc6b4\ub370 \uc5f0\uacc4 \uc804\uc6a9 package \uac00 \ub098\uc628 \uac83\uc740 #7 Pydantic AI \ud558\ub098\uc774\uba70, \ub098\uba38\uc9c0\ub294 backend \uc5d4\uc9c0\ub2c8\uc5b4\uac00 \uc9c1\uc811 \uac10\uc2fc\ub2e4. Prefect \ub294 flow \ub97c Python \ud568\uc218\ub85c \ub2e4\ub8e8\ubbc0\ub85c Pydantic AI \uc640 LangGraph \ub97c \ube44\ub86f\ud574 Python \uc73c\ub85c \ub41c \uc5b4\ub5a4 agent framework \ub3c4 \ub3cc\ub9b0\ub2e4 [<a href=\"#ref-10\">10<\/a>].<\/p>\n<\/article><\/div><\/div><\/p>\n<\/div><\/div>\n<\/div><\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>\ud83c\uddfa\ud83c\uddf8\ud83c\uddf0\ud83c\uddf7 An AI agent backend carries seven responsibilities, and three of them, what starts a run, how many calls run at once, and what ran, belong to the orchestrator. Prefect takes those three, adds suspension and per-step retries once tool calls are wrapped as tasks, and leaves the reasoning loop to the framework.<\/p>\n","protected":false},"author":4,"featured_media":7161,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","fifu_image_url":"","fifu_image_alt":"","iawp_total_views":15,"footnotes":""},"categories":[56,291],"tags":[386,449,448],"class_list":["post-7160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science-slug","category-aiops-slug","tag-github-hosted","tag-orchestrator","tag-prefect"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":1,"sum_votes":4},"jetpack_featured_media_url":"https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2026\/09\/prefect-orchestrator.png","_links":{"self":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/comments?post=7160"}],"version-history":[{"count":4,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7160\/revisions"}],"predecessor-version":[{"id":7167,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7160\/revisions\/7167"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media\/7161"}],"wp:attachment":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=7160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=7160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=7160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}