How Agent Sentinel models agent execution: runs contain actions.
Actions
An action is a single instrumented unit of work in your agent (a tool call, API request, DB query, etc.).In the Python SDK, actions are created by decorating functions with @guarded_action(...).Each action records:
Name: name argument (or the function name)
Cost: cost_usd (you supply the estimate for that call)
Duration: measured automatically
Outcome: "success", "error", or "replayed"
Inputs/outputs: captured from the call
Tags: optional list of strings
Runs
A run represents one execution of your agent (one “session” you want to analyze end-to-end).On the platform, a run:
Owns many actions
Aggregates total_cost
Has a status such as "running" / "completed"
Run IDs
SDK 0.2.0 stamps a run_id onto every ledger entry, taken from the active ExecutionContext. To group actions into a logical run:
from agent_sentinel import ExecutionContextwith ExecutionContext(run_id="my-run-id", agent_id="my-agent"): do_thing() # ledger entry includes run_id="my-run-id" do_other()
When using remote sync, the same run_id is sent alongside the batched entries (see Remote sync) so platform-side run grouping is consistent with local ledger filtering.
If you launch agents from a parent process, set ExecutionContext once per logical run rather than per call so every action lands in the same run on the platform.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agent Sentinel","colors":{"primary":"#319165","light":"#4abf89","dark":"#2d8059"},"logo":{"light":"https://mintcdn.com/agentsentinel/B1Psb0ktqAcV0f6k/logo/light.svg?fit=max\u0026auto=format\u0026n=B1Psb0ktqAcV0f6k\u0026q=85\u0026s=c3b2e0f29a496f48c8f7c50f2acccc32","dark":"https://mintcdn.com/agentsentinel/B1Psb0ktqAcV0f6k/logo/dark.svg?fit=max\u0026auto=format\u0026n=B1Psb0ktqAcV0f6k\u0026q=85\u0026s=8b61e50f3f15526e26fb1fad9cb27cc8","href":"https://agentsentinel.dev"},"favicon":"https://mintcdn.com/agentsentinel/B1Psb0ktqAcV0f6k/favicon.svg?fit=max\u0026auto=format\u0026n=B1Psb0ktqAcV0f6k\u0026q=85\u0026s=52d30475fb54d414fa922f4d0536e184","appearance":{"default":"light","strict":true},"background":{"color":{"light":"#fbfaf6","dark":"#0d0f12"}},"navbar":{"links":[{"href":"mailto:hello@agentsentinel.dev","label":"Support"}],"primary":{"type":"button","label":"API Reference","href":"/platform/overview"}},"footer":{"socials":{"github":"https://github.com/agent-sentinel/agent-sentinel-sdk","website":"https://agentsentinel.dev"}},"fonts":{"family":"Inter"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/agent-sentinel/agent-sentinel-sdk"},{"anchor":"PyPI","icon":"python","href":"https://pypi.org/project/agentsentinel-sdk/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agentsentinel","hasAudioNarration":false,"actualSubdomain":"agentsentinel","customDomains":["docs.agentsentinel.dev"],"gitSource":{"type":"github","owner":"agent-sentinel","repo":"agent-sentinel","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae1afb657e72f17a84ac220","clientVersion":"0.0.4128","searchFilterCounts":[{"language":"default","tag":"Guides","count":55},{"language":"default","tag":"Platform API","count":18},{"language":"default","tag":"SDK (Python)","count":16},{"language":"default","tag":"Web Console","count":14},{"language":"default","tag":"Concepts","count":3},{"language":"default","tag":"AI tools","count":2},{"language":"default","tag":"Getting started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"code,pre,kbd,samp,.code-block,.code-block code,.code-group code,.request-example code,.response-example code{font-family:\"JetBrains Mono\",\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n \"Liberation Mono\",\n \"Courier New\",\n monospace!important}"}],"page":{"pagePath":"concepts/actions-and-runs","slug":"/concepts/actions-and-runs","pageMetadata":{"title":"Actions \u0026 runs","description":"How Agent Sentinel models agent execution: runs contain actions.","href":"/concepts/actions-and-runs"},"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: \"How Agent Sentinel models agent execution: runs contain actions.\"\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];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`actions`,children:`Actions`}),`\n`,_jsxs(_components.p,{children:[`An `,_jsx(_components.strong,{children:`action`}),` is a single instrumented unit of work in your agent (a tool call, API request, DB query, etc.).`]}),`\n`,_jsxs(_components.p,{children:[`In the Python SDK, actions are created by decorating functions with `,_jsx(_components.code,{children:`@guarded_action(...)`}),`.`]}),`\n`,_jsx(_components.p,{children:`Each action records:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name`}),`: `,_jsx(_components.code,{children:`name`}),` argument (or the function name)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cost`}),`: `,_jsx(_components.code,{children:`cost_usd`}),` (you supply the estimate for that call)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Duration`}),`: measured automatically`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Outcome`}),`: `,_jsx(_components.code,{children:`\"success\"`}),`, `,_jsx(_components.code,{children:`\"error\"`}),`, or `,_jsx(_components.code,{children:`\"replayed\"`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Inputs/outputs`}),`: captured from the call`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tags`}),`: optional list of strings`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`runs`,children:`Runs`}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`run`}),` represents one execution of your agent (one “session” you want to analyze end-to-end).`]}),`\n`,_jsx(_components.p,{children:`On the platform, a run:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Owns many actions`}),`\n`,_jsxs(_components.li,{children:[`Aggregates `,_jsx(_components.code,{children:`total_cost`})]}),`\n`,_jsxs(_components.li,{children:[`Has a `,_jsx(_components.code,{children:`status`}),` such as `,_jsx(_components.code,{children:`\"running\"`}),` / `,_jsx(_components.code,{children:`\"completed\"`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`run-ids`,children:`Run IDs`}),`\n`,_jsxs(_components.p,{children:[`SDK 0.2.0 stamps a `,_jsx(_components.code,{children:`run_id`}),` onto every ledger entry, taken from the active `,_jsx(_components.code,{children:`ExecutionContext`}),`. To group actions into a logical run:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agent_sentinel `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExecutionContext`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ExecutionContext(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`run_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my-run-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`agent_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my-agent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` do_thing() `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ledger entry includes run_id=\"my-run-id\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` do_other()`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When using remote sync, the same `,_jsx(_components.code,{children:`run_id`}),` is sent alongside the batched entries (see `,_jsx(_components.a,{href:`/sdk/python/remote-sync`,children:`Remote sync`}),`) so platform-side run grouping is consistent with local ledger filtering.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you launch agents from a parent process, set `,_jsx(_components.code,{children:`ExecutionContext`}),` once per logical run rather than per call so every action lands in the same run on the platform.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{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":"Actions \u0026 runs","description":"How Agent Sentinel models agent execution: runs contain actions.","href":"/concepts/actions-and-runs"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Actions","slug":"actions","depth":2,"children":[]},{"title":"Runs","slug":"runs","depth":2,"children":[]},{"title":"Run IDs","slug":"run-ids","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"agentsentinel","siteName":"Agent Sentinel","title":"Actions \u0026 runs - Agent Sentinel","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-18T15:25:47.143Z","originalFileLocation":"concepts/actions-and-runs.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"How Agent Sentinel models agent execution: runs contain actions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agent Sentinel\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agentsentinel/dvQBrORHNLFI1x08/_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/agentsentinel/dvQBrORHNLFI1x08/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agentsentinel/dvQBrORHNLFI1x08/_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/agentsentinel/dvQBrORHNLFI1x08/_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/agentsentinel/dvQBrORHNLFI1x08/_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/agentsentinel/dvQBrORHNLFI1x08/_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/agentsentinel/dvQBrORHNLFI1x08/_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/agentsentinel/dvQBrORHNLFI1x08/_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/agentsentinel/dvQBrORHNLFI1x08/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Actions \u0026amp; runs - Agent Sentinel\">\u003cmeta data-mint-head property=\"og:description\" content=\"How Agent Sentinel models agent execution: runs contain actions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agent Sentinel\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agentsentinel.dev/concepts/actions-and-runs\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agentsentinel.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=Actions+%26+runs\u0026amp;description=How+Agent+Sentinel+models+agent+execution%3A+runs+contain+actions.\u0026amp;theme=4d2fad853b271edd6d74c3a5\u0026amp;signature=6d64f02d8e992d286b17ad7b0bce9a9318fdcbd103dee0c9f2df59fc4da933a1\">\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=\"Actions \u0026amp; runs - Agent Sentinel\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How Agent Sentinel models agent execution: runs contain actions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agentsentinel.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=Actions+%26+runs\u0026amp;description=How+Agent+Sentinel+models+agent+execution%3A+runs+contain+actions.\u0026amp;theme=4d2fad853b271edd6d74c3a5\u0026amp;signature=6d64f02d8e992d286b17ad7b0bce9a9318fdcbd103dee0c9f2df59fc4da933a1\">\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/agentsentinel/dvQBrORHNLFI1x08/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agent Sentinel\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#319165\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agentsentinel.dev/concepts/actions-and-runs\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/actions-and-runs.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agentsentinel.dev/#organization\",\"name\":\"Agent Sentinel\",\"url\":\"https://docs.agentsentinel.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agentsentinel/B1Psb0ktqAcV0f6k/logo/light.svg?fit=max\u0026auto=format\u0026n=B1Psb0ktqAcV0f6k\u0026q=85\u0026s=c3b2e0f29a496f48c8f7c50f2acccc32\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agentsentinel.dev#website\",\"name\":\"Agent Sentinel\",\"url\":\"https://docs.agentsentinel.dev\",\"publisher\":{\"@id\":\"https://docs.agentsentinel.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agentsentinel.dev/concepts/actions-and-runs#webpage\",\"url\":\"https://docs.agentsentinel.dev/concepts/actions-and-runs\",\"name\":\"Actions \u0026 runs\",\"description\":\"How Agent Sentinel models agent execution: runs contain actions.\",\"dateModified\":\"2026-04-18T15:25:47.143Z\",\"isPartOf\":{\"@id\":\"https://docs.agentsentinel.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agentsentinel.dev/concepts/actions-and-runs#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agentsentinel.dev/concepts/actions-and-runs#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent Sentinel\",\"item\":\"https://docs.agentsentinel.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Actions \u0026 runs\",\"item\":\"https://docs.agentsentinel.dev/concepts/actions-and-runs\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.agentsentinel.dev/concepts/actions-and-runs#article\",\"headline\":\"Actions \u0026 runs\",\"name\":\"Actions \u0026 runs\",\"description\":\"How Agent Sentinel models agent execution: runs contain actions.\",\"url\":\"https://docs.agentsentinel.dev/concepts/actions-and-runs\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agentsentinel.dev/concepts/actions-and-runs#webpage\"},\"dateModified\":\"2026-04-18T15:25:47.143Z\",\"publisher\":{\"@id\":\"https://docs.agentsentinel.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agentsentinel.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agent Sentinel\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agent Sentinel\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/actions-and-runs.md","siteName":"Agent Sentinel","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/agent-sentinel/agent-sentinel-sdk"},{"anchor":"PyPI","icon":"python","href":"https://pypi.org/project/agentsentinel-sdk/"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"Agent Sentinel","href":""},{"title":"Quickstart","description":"Instrument your agent in minutes, with local-first logs and optional platform sync.","href":"/quickstart"}]},{"group":"Concepts","pages":[{"title":"Actions \u0026 runs","href":"/concepts/actions-and-runs"},{"title":"Ledger","description":"Local-first JSONL log format written by the SDK.","href":"/concepts/ledger"},{"title":"Policies","href":"/concepts/policies"}]},{"group":"SDK (Python)","pages":[{"title":"Installation","href":"/sdk/python/installation"},{"title":"Instrumentation","href":"/sdk/python/instrumentation"},{"title":"Policies \u0026 budgets","href":"/sdk/python/policies"},{"title":"Cost Tracking","href":"/sdk/python/cost-tracking"},{"title":"Guardrails","href":"/sdk/python/guardrails"},{"title":"Prose policies","href":"/sdk/python/prose-policies"},{"title":"Remote sync","href":"/sdk/python/remote-sync"},{"title":"Replay","href":"/sdk/python/replay"},{"title":"Interventions","href":"/sdk/python/interventions"},{"title":"Approval Workflows","href":"/sdk/python/approvals"},{"title":"MCP Integration","href":"/sdk/python/mcp"},{"title":"Error Handling","href":"/sdk/python/errors"},{"title":"Retry \u0026 Resilience","href":"/sdk/python/retry-resilience"},{"title":"LLM Integrations","href":"/sdk/python/llm-integrations"},{"title":"Framework Integrations","href":"/sdk/python/framework-integrations"},{"title":"Compliance (Enterprise foundations)","href":"/sdk/python/compliance"}]},{"group":"AI tools","pages":[{"title":"Claude Code setup","icon":"asterisk","href":"/ai-tools/claude-code"},{"title":"Cursor setup","icon":"arrow-pointer","href":"/ai-tools/cursor"}]},{"group":"Platform API","pages":[{"title":"Platform API Overview","href":"/platform/overview"},{"title":"Authentication","href":"/platform/auth"},{"title":"Ingest","href":"/platform/ingest"},{"title":"Runs \u0026 actions","href":"/platform/runs"},{"title":"Activity Ledger API","href":"/platform/ledger"},{"title":"Agent Discovery","href":"/platform/agents"},{"title":"Interventions API","href":"/platform/interventions"},{"title":"Approvals API","href":"/platform/approvals"},{"title":"Policies API","href":"/platform/policies"},{"title":"Budget reservations","href":"/platform/budgets"},{"title":"Kill Switch API","href":"/platform/kill-switch"},{"title":"Evals API","href":"/platform/evals"},{"title":"Stats","href":"/platform/stats"},{"title":"Replay (platform)","href":"/platform/replay"},{"title":"MCP (Model Context Protocol)","href":"/platform/mcp"},{"title":"AgentVault Credentials","href":"/platform/agentvault"},{"title":"WebSocket Real-time Updates","href":"/platform/websockets"},{"title":"Compliance (Enterprise foundations)","href":"/platform/compliance"}]},{"group":"Web Console","pages":[{"title":"Web Console Overview","href":"/console/overview"},{"title":"Console Quick Start","href":"/console/quickstart"},{"title":"Interventions Page","href":"/console/interventions"},{"title":"Approvals Page","href":"/console/approvals"},{"title":"Kill Switch","href":"/console/kill-switch"},{"title":"Runs Page","href":"/console/runs"},{"title":"Determinism Analysis","href":"/console/determinism-analysis"},{"title":"Replay Hub","href":"/console/replay"},{"title":"Activity Ledger","href":"/console/ledger"},{"title":"Agents Page","href":"/console/agents"},{"title":"Evals","href":"/console/evals"},{"title":"Analytics Page","href":"/console/analytics"},{"title":"MCP Explorer","href":"/console/mcp"},{"title":"Settings Page","href":"/console/settings"}]}]}]},"basePath":"","title":"Actions \u0026 runs - Agent Sentinel","buildId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","deploymentId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","dynamics":[],"chunks":[]}