Follow model calls, tool results, approvals, and cancellation through one execution.
A run can contain multiple model calls and tool roundtrips. Inspect the sequence below to see why model completion, tool completion, and run completion are different events.
The boundaries that matter
Boundary
What happened
What it does not establish
Model finished
One provider call returned
The Agent may still need to execute tools
Tool returned
An implementation produced a result
The model has not necessarily answered the user
Run completed
The Agent reached a successful terminal outcome
A denied tool may have been explained; answer quality still needs evaluation
Client disconnected
The transport lost its caller
An external effect may already have completed
Process restarted
Memory in that process was lost
A remote operation’s result may still exist
run() gives you a final result. stream() gives you an iterator that may span several model calls. Consume it to completion or explicitly cancel/close it when its owner is done.
Configure stopping behavior
Set tool-roundtrip and token/cost limits appropriate to the task. Pass a cancellation signal for connection-owned work. Tools that call external services should forward the signal where supported. Cancellation, cost limits, and execution policy cover the controls.
Inspect failures at the right layer
A provider can reject a request before a tool runs. Tool validation can reject arguments. Approval can deny the action. A tool can fail after contacting a remote service. These require different responses; retrying the whole run indiscriminately can repeat a side effect.For diagnostics, start with run status, correlation IDs, model configuration, tool outcome, and timing. Observability defaults to metadata; configure content capture deliberately. See recovery for outcomes that cannot be inferred from a local error alone.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agentium","colors":{"primary":"#2563EB","light":"#3B82F6","dark":"#1E40AF"},"logo":{"light":"https://mintcdn.com/xhipment/Ed5pO8kvbGYPhMpL/logo/light.svg?fit=max\u0026auto=format\u0026n=Ed5pO8kvbGYPhMpL\u0026q=85\u0026s=78e27fa90cb7eeca27547aec06e58eb6","dark":"https://mintcdn.com/xhipment/Ed5pO8kvbGYPhMpL/logo/dark.svg?fit=max\u0026auto=format\u0026n=Ed5pO8kvbGYPhMpL\u0026q=85\u0026s=abff624f5ecdb6247595c779b4f6a0d9"},"favicon":"https://mintcdn.com/xhipment/BEAHuQmH5n29YrcC/favicon.svg?fit=max\u0026auto=format\u0026n=BEAHuQmH5n29YrcC\u0026q=85\u0026s=3c0a399371709ca5b6222be8277d7154","navbar":{"links":[{"href":"https://github.com/agentiumOS/agentium","label":"GitHub"}]},"footer":{"socials":{"github":"https://github.com/agentiumOS/agentium"}},"banner":{"content":"Agentium 4.11.0 is available · [Release and upgrade guidance](/reference/releases).","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/agentiumOS/agentium"},{"anchor":"npm","icon":"npm","href":"https://www.npmjs.com/org/agentium"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"xhipment","hasAudioNarration":false,"actualSubdomain":"xhipment","customDomains":["docs.agentium.in"],"gitSource":{"type":"github","owner":"agentiumos","repo":"agentium-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6adbe370139fbc8264ca035a","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Build","count":129},{"language":"default","tag":"Integrations","count":101},{"language":"default","tag":"Reference","count":87},{"language":"default","tag":"Package APIs","count":66},{"language":"default","tag":"Providers and services","count":61},{"language":"default","tag":"Data and capabilities","count":42},{"language":"default","tag":"@agentium/core","count":39},{"language":"default","tag":"Examples","count":37},{"language":"default","tag":"Toolkits","count":32},{"language":"default","tag":"Ship","count":29}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":".ag-explorer,.ag-directory{--ag-line: #dbe3ee;--ag-muted: #526179;--ag-panel: #f7f9fc;--ag-accent: #1d4ed8;color:#172033}.dark .ag-explorer,.dark .ag-directory{--ag-line: #283448;--ag-muted: #a2afc3;--ag-panel: #111a29;--ag-accent: #93b4ff;color:#e2e8f0}.ag-explorer{border:1px solid var(--ag-line);border-radius:16px;overflow:hidden;margin:24px 0}.ag-explorer button,.ag-directory button,.ag-directory input{font:inherit}.ag-explorer-top,.ag-explorer-bottom,.ag-step-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.ag-explorer-top{padding:18px 20px 10px}.ag-eyebrow{color:var(--ag-accent);font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}.ag-caption,.ag-explorer-bottom,.ag-step-heading span,.ag-directory-count{color:var(--ag-muted);font-size:12px}.ag-scenarios{display:flex;flex-wrap:wrap;gap:8px;padding:8px 20px 18px}.ag-scenarios button,.ag-filters button{padding:6px 12px;border:1px solid var(--ag-line);border-radius:8px;font-size:13px;background:transparent;color:inherit;cursor:pointer}.ag-scenarios button[aria-pressed=\"true\"],.ag-filters button[aria-pressed=\"true\"]{color:var(--ag-accent);border-color:var(--ag-accent);background:var(--ag-panel)}.ag-explorer .ag-step-list{display:flex;flex-wrap:wrap;gap:8px;padding:16px 20px;margin:0;list-style:none;border-top:1px solid var(--ag-line);background:var(--ag-panel)}.ag-step-list li{padding:0;margin:0}.ag-step-list button{display:flex;align-items:center;gap:7px;padding:6px 10px;border-radius:7px;font-size:12px;color:var(--ag-muted);cursor:pointer;background:transparent;border:1px solid transparent}.ag-step-list button[aria-current=\"step\"]{border-color:var(--ag-accent);color:var(--ag-accent)}.ag-step-list button span{font-size:11px;font-weight:600}.ag-step-detail{padding:20px;min-height:214px}.ag-step-detail p{font-size:14px;line-height:1.65;margin:12px 0;color:var(--ag-muted)}.ag-step-detail pre{padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;background:var(--ag-panel);border-radius:8px;margin:0}.ag-explorer-bottom{padding:0 20px 16px}.ag-explorer-bottom button{padding:6px 10px;color:var(--ag-accent);background:transparent;border-radius:6px;cursor:pointer}.ag-explorer-bottom button:disabled{opacity:.4;cursor:default}.ag-explorer .ag-outcome{font-size:12px;line-height:1.7;color:var(--ag-muted);margin:0;padding:14px 20px;border-top:1px solid var(--ag-line)}.ag-directory label{display:block;font-weight:600;margin:20px 0 8px;font-size:14px}.ag-directory input{width:100%;border:1px solid var(--ag-line);border-radius:10px;padding:12px 14px;background:var(--ag-panel);color:inherit;font-size:14px}.ag-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.ag-directory-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:12px;margin:16px 0}.ag-directory .ag-integration{display:block;border:1px solid var(--ag-line);padding:18px;border-radius:10px;text-decoration:none;color:inherit}.ag-integration:hover{border-color:var(--ag-accent);background:var(--ag-panel)}.ag-integration strong{display:block;font-size:15px}.ag-integration small{display:block;color:var(--ag-accent);font-size:11px;margin-bottom:8px}.ag-directory .ag-integration p{color:var(--ag-muted);font-size:13px;line-height:1.6;margin:8px 0 0}.ag-explorer button:focus-visible,.ag-directory button:focus-visible,.ag-directory input:focus-visible,.ag-integration:focus-visible{outline:2px solid var(--ag-accent);outline-offset:3px}@media (max-width: 640px){.ag-directory-grid{grid-template-columns:1fr}.ag-explorer-top,.ag-step-heading{align-items:flex-start;flex-direction:column;gap:4px}.ag-step-detail{min-height:260px}.ag-step-list button{padding:7px}}.ag-explorer .ag-step-detail pre code{width:auto;min-width:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.ag-explorer .ag-step-detail pre,.ag-explorer .ag-step-detail pre code{color:inherit}"}]}
{"page":{"pagePath":"learn/execution","slug":"/learn/execution","pageMetadata":{"title":"Understand a run","description":"Follow model calls, tool results, approvals, and cancellation through one execution.","href":"/learn/execution"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Follow model calls, tool results, approvals, and cancellation through one execution.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const ExecutionExplorer=()=>{const scenarios=[{name:`Answer`,outcome:`The model asks for an order ID.`,steps:[{title:`Request`,owner:`Your application`,detail:`The host sends input to the Agent.`,value:`await agent.run(\"Where is my order?\")`},{title:`Model`,owner:`Model provider`,detail:`Instructions ask the model to collect the missing order ID. No order tool is available in this example.`,value:`{ \"role\": \"assistant\", \"content\": \"What is your order ID?\" }`},{title:`Result`,owner:`Your application`,detail:`Check the run status before treating text as a successful answer.`,value:`{ \"status\": \"completed\", \"text\": \"What is your order ID?\" }`}]},{name:`Tool call`,outcome:`The answer uses the delivery date returned by the tool.`,steps:[{title:`Request`,owner:`Your application`,detail:`The request includes an order ID. The Agent is configured with lookup_order.`,value:`await agent.run(\"When will ORD-1042 arrive?\")`},{title:`Tool request`,owner:`Model provider`,detail:`The model requests a function. This is a proposal to execute, not a completed operation.`,value:`{ \"name\": \"lookup_order\", \"arguments\": { \"orderId\": \"ORD-1042\" } }`},{title:`Validation`,owner:`SDK and host policy`,detail:`Validate the schema and apply configured policy/approval. The tool implementation must also enforce domain access.`,value:`orderId: z.string()\n// Host-owned order authorization belongs in the integration.`},{title:`Tool result`,owner:`Your tool`,detail:`The local demo catalog supplies the data. The result goes back into the model conversation.`,value:`{ \"status\": \"shipped\", \"delivery\": \"Friday\", \"refundable\": true }`},{title:`Response`,owner:`Model → application`,detail:`A later model call turns the result into an answer. Continue reading a stream until the Agent iterator ends.`,value:`{ \"status\": \"completed\", \"text\": \"ORD-1042 should arrive Friday.\" }`}]},{name:`Approval denied`,outcome:`No refund tool effect occurs. The model can still explain the denial.`,steps:[{title:`Tool request`,owner:`Model provider`,detail:`The model proposes a simulated refund for the demo order.`,value:`{ \"name\": \"refund_order\", \"arguments\": { \"orderId\": \"ORD-1042\" } }`},{title:`Approval`,owner:`Application operator`,detail:`The approval callback shows the proposed action and receives an explicit decision.`,value:`{ \"approved\": false, \"reason\": \"Local operator decision\" }`},{title:`Denied`,owner:`SDK`,detail:`The tool body is not executed. Denial is returned to the model as a tool outcome.`,value:`simulatedRefundCount === 0`},{title:`Response`,owner:`Model → application`,detail:`A completed conversational run can explain a denied action. Check the business outcome separately.`,value:`{ \"status\": \"completed\", \"text\": \"The operator did not approve the refund.\" }`}]}];const[scenarioIndex,setScenarioIndex]=useState(1);const[stepIndex,setStepIndex]=useState(0);const scenario=scenarios[scenarioIndex];const step=scenario.steps[stepIndex];return _jsxs(`section`,{className:`ag-explorer`,\"aria-label\":`Illustrative execution explorer`,children:[_jsxs(`div`,{className:`ag-explorer-top`,children:[_jsx(`span`,{className:`ag-eyebrow`,children:`Inside a run`}),_jsx(`span`,{className:`ag-caption`,children:`Illustrative · no API calls`})]}),_jsx(`div`,{className:`ag-scenarios`,\"aria-label\":`Choose an execution scenario`,children:scenarios.map((item,index)=>_jsx(`button`,{type:`button`,\"aria-pressed\":index===scenarioIndex,onClick:()=>{setScenarioIndex(index);setStepIndex(0)},children:item.name},item.name))}),_jsx(`ol`,{className:`ag-step-list`,\"aria-label\":`Execution steps`,children:scenario.steps.map((item,index)=>_jsx(`li`,{children:_jsxs(`button`,{type:`button`,\"aria-current\":index===stepIndex?`step`:undefined,onClick:()=>setStepIndex(index),children:[_jsx(`span`,{children:index+1}),item.title]})},item.title))}),_jsxs(`div`,{className:`ag-step-detail`,\"aria-live\":`polite`,\"aria-atomic\":`true`,children:[_jsxs(`div`,{className:`ag-step-heading`,children:[_jsx(`strong`,{children:step.title}),_jsx(`span`,{children:step.owner})]}),_jsx(`p`,{children:step.detail}),_jsx(`pre`,{children:_jsx(`code`,{children:step.value})})]}),_jsxs(`div`,{className:`ag-explorer-bottom`,children:[_jsxs(`span`,{children:[stepIndex+1,` of `,scenario.steps.length]}),_jsxs(`div`,{children:[_jsx(`button`,{type:`button`,disabled:stepIndex===0,onClick:()=>setStepIndex(stepIndex-1),children:`Previous`}),_jsx(`button`,{type:`button`,disabled:stepIndex===scenario.steps.length-1,onClick:()=>setStepIndex(stepIndex+1),children:`Next step →`})]})]}),_jsxs(`p`,{className:`ag-outcome`,children:[_jsx(`strong`,{children:`Outcome:`}),` `,scenario.outcome]})]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Table,_MdxComponentBoundary}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A run can contain multiple model calls and tool roundtrips. Inspect the sequence below to see why model completion, tool completion, and run completion are different events.`}),`\n`,_jsx(_MdxComponentBoundary,{name:`ExecutionExplorer`,children:_jsx(ExecutionExplorer,{})}),`\n`,_jsx(Heading,{level:`2`,id:`the-boundaries-that-matter`,children:`The boundaries that matter`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Boundary`}),_jsx(_components.th,{children:`What happened`}),_jsx(_components.th,{children:`What it does not establish`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model finished`}),_jsx(_components.td,{children:`One provider call returned`}),_jsx(_components.td,{children:`The Agent may still need to execute tools`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Tool returned`}),_jsx(_components.td,{children:`An implementation produced a result`}),_jsx(_components.td,{children:`The model has not necessarily answered the user`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Run completed`}),_jsx(_components.td,{children:`The Agent reached a successful terminal outcome`}),_jsx(_components.td,{children:`A denied tool may have been explained; answer quality still needs evaluation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Client disconnected`}),_jsx(_components.td,{children:`The transport lost its caller`}),_jsx(_components.td,{children:`An external effect may already have completed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Process restarted`}),_jsx(_components.td,{children:`Memory in that process was lost`}),_jsx(_components.td,{children:`A remote operation’s result may still exist`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`run()`}),` gives you a final result. `,_jsx(_components.code,{children:`stream()`}),` gives you an iterator that may span several model calls. Consume it to completion or explicitly cancel/close it when its owner is done.`]}),`\n`,_jsx(Heading,{level:`2`,id:`configure-stopping-behavior`,children:`Configure stopping behavior`}),`\n`,_jsxs(_components.p,{children:[`Set tool-roundtrip and token/cost limits appropriate to the task. Pass a cancellation signal for connection-owned work. Tools that call external services should forward the signal where supported. `,_jsx(_components.a,{href:`/agents/cancellation`,children:`Cancellation`}),`, `,_jsx(_components.a,{href:`/features/cost-autostop`,children:`cost limits`}),`, and `,_jsx(_components.a,{href:`/agents/execution-policy`,children:`execution policy`}),` cover the controls.`]}),`\n`,_jsx(Heading,{level:`2`,id:`inspect-failures-at-the-right-layer`,children:`Inspect failures at the right layer`}),`\n`,_jsx(_components.p,{children:`A provider can reject a request before a tool runs. Tool validation can reject arguments. Approval can deny the action. A tool can fail after contacting a remote service. These require different responses; retrying the whole run indiscriminately can repeat a side effect.`}),`\n`,_jsxs(_components.p,{children:[`For diagnostics, start with run status, correlation IDs, model configuration, tool outcome, and timing. `,_jsx(_components.a,{href:`/observability/overview`,children:`Observability`}),` defaults to metadata; configure content capture deliberately. See `,_jsx(_components.a,{href:`/ship/recovery`,children:`recovery`}),` for outcomes that cannot be inferred from a local error alone.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ExecutionExplorer,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Understand a run","description":"Follow model calls, tool results, approvals, and cancellation through one execution.","href":"/learn/execution"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[156,4786,"null;function _creat"]]},"mdxExtracts":{"tableOfContents":[{"title":"The boundaries that matter","slug":"the-boundaries-that-matter","depth":2,"children":[]},{"title":"Configure stopping behavior","slug":"configure-stopping-behavior","depth":2,"children":[]},{"title":"Inspect failures at the right layer","slug":"inspect-failures-at-the-right-layer","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"xhipment","siteName":"Agentium","title":"Understand a run - Agentium","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-04T16:01:47.025Z","originalFileLocation":"learn/execution.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Follow model calls, tool results, approvals, and cancellation through one execution.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agentium\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Understand a run - Agentium\">\u003cmeta data-mint-head property=\"og:description\" content=\"Follow model calls, tool results, approvals, and cancellation through one execution.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agentium\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agentium.in/learn/execution\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://xhipment.mintlify.site/_mintlify/api/og/v2?division=Start+here\u0026amp;title=Understand+a+run\u0026amp;description=Follow+model+calls%2C+tool+results%2C+approvals%2C+and+cancellation+through+one+execution.\u0026amp;theme=df32736373f0bac5d5601052\u0026amp;signature=5f9adb29a81b266513bc61f1c88816d6a559006ec3589986598443fd773b2333\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Understand a run - Agentium\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Follow model calls, tool results, approvals, and cancellation through one execution.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://xhipment.mintlify.site/_mintlify/api/og/v2?division=Start+here\u0026amp;title=Understand+a+run\u0026amp;description=Follow+model+calls%2C+tool+results%2C+approvals%2C+and+cancellation+through+one+execution.\u0026amp;theme=df32736373f0bac5d5601052\u0026amp;signature=5f9adb29a81b266513bc61f1c88816d6a559006ec3589986598443fd773b2333\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/xhipment/1FHI9CtiEmrb2QJH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agentium\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agentium.in/learn/execution\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/learn/execution.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agentium.in/#organization\",\"name\":\"Agentium\",\"url\":\"https://docs.agentium.in\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/xhipment/Ed5pO8kvbGYPhMpL/logo/light.svg?fit=max\u0026auto=format\u0026n=Ed5pO8kvbGYPhMpL\u0026q=85\u0026s=78e27fa90cb7eeca27547aec06e58eb6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agentium.in#website\",\"name\":\"Agentium\",\"url\":\"https://docs.agentium.in\",\"publisher\":{\"@id\":\"https://docs.agentium.in/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agentium.in/learn/execution#webpage\",\"url\":\"https://docs.agentium.in/learn/execution\",\"name\":\"Understand a run\",\"description\":\"Follow model calls, tool results, approvals, and cancellation through one execution.\",\"dateModified\":\"2026-10-04T16:01:47.025Z\",\"isPartOf\":{\"@id\":\"https://docs.agentium.in#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agentium.in/learn/execution#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agentium.in/learn/execution#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Start here\",\"item\":\"https://docs.agentium.in\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understand a run\",\"item\":\"https://docs.agentium.in/learn/execution\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.agentium.in/learn/execution#article\",\"headline\":\"Understand a run\",\"name\":\"Understand a run\",\"description\":\"Follow model calls, tool results, approvals, and cancellation through one execution.\",\"url\":\"https://docs.agentium.in/learn/execution\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agentium.in/learn/execution#webpage\"},\"dateModified\":\"2026-10-04T16:01:47.025Z\",\"publisher\":{\"@id\":\"https://docs.agentium.in/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agentium.in#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agentium\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agentium\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/learn/execution.md","siteName":"Agentium","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/agentiumOS/agentium"},{"anchor":"npm","icon":"npm","href":"https://www.npmjs.com/org/agentium"}]},"tabs":[{"tab":"Start","groups":[{"group":"Start here","pages":[{"title":"Build with Agentium","sidebarTitle":"Start here","mode":"wide","href":""},{"title":"Create your first project","href":"/learn/create-project"},{"title":"Run your first agent","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"How Agentium fits together","description":"Understand execution, package composition, and the parts your application supplies.","href":"/introduction"},{"title":"Understand a run","href":"/learn/execution"},{"title":"Choose an approach","description":"Use the smallest execution primitive that fits your application.","href":"/learn/choose-an-approach"}]},{"group":"Build a support assistant","pages":[{"title":"Build a support assistant","href":"/learn/support-assistant"},{"title":"1. Answer a question","sidebarTitle":"Answer a question","href":"/learn/first-agent"},{"title":"2. Look up an order","sidebarTitle":"Look up an order","href":"/learn/tools"},{"title":"3. Remember the conversation","sidebarTitle":"Remember the conversation","href":"/learn/memory"},{"title":"4. Answer from policies","sidebarTitle":"Answer from policies","href":"/learn/knowledge"},{"title":"5. Ask before a refund","sidebarTitle":"Ask before a refund","href":"/learn/approval"},{"title":"6. Stream and inspect a run","sidebarTitle":"Stream and inspect a run","href":"/learn/streaming"},{"title":"7. Serve an HTTP API","sidebarTitle":"Serve an HTTP API","href":"/learn/http"},{"title":"8. Prepare to ship","sidebarTitle":"Prepare to ship","href":"/learn/ship"}]},{"group":"Setup and release","pages":[{"title":"Install Agentium 4","sidebarTitle":"Installation","href":"/learn/installation"},{"title":"What's new","href":"/learn/whats-new"}]}]},{"tab":"Build","pages":[{"title":"Build","href":"/build/overview"}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/overview"}]},{"tab":"Ship","pages":[{"title":"Ship","href":"/ship/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference/overview"}]}]},"basePath":"","title":"Understand a run - Agentium","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":["10e4515597"],"chunks":["BannerMarkdown-DnSAhvaM.js","dist-DIfYWxfm.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}