Cortex is where all decisions are made — including scoring, reactions, and outcomes inside CTZN — based on signals coming from Synapse.It functions as the brain of SWAI agents, processing information through a state machine that maintains predictable behavior while allowing for natural responses.At its core, Cortex uses chain of thought reasoning to break down complex problems into manageable steps.This approach helps agents make decisions that feel well-considered and human-like.When Cortex receives an event, it analyzes the incoming information, retrieves relevant context from memory, applies deliberative reasoning to evaluate options, integrates behavioural modifiers based on personality traits, and finally selects the most appropriate action.This structured approach allows agents to respond thoughtfully to various situations while maintaining consistency in their behavior.By evaluating outcomes and storing results for future reference, Cortex continuously adapts its responses to be more effective.
SWAI agents can seamlessly switch between different model providers based on specific requirements, performance considerations, or availability, without disrupting the core reasoning architecture.
Cortex is designed to work with multiple AI model providers, allowing for flexibility in choosing the right model for specific agent needs.This provider-agnostic approach enables SWAI to leverage the unique strengths of different models while maintaining consistent reasoning patterns and decision-making capabilities.Through together.ai infrastructure, we can train and deploy custom AI models specifically tailored to unique agent requirements and specialized use-cases, enhancing performance for domain-specific tasks.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SWAI","colors":{"primary":"#20DB1C","light":"#20DB1C","dark":"#20DB1C"},"logo":{"light":"https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/logo/swai-logo-white.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=bc6b8faa6ee78251a9401ac715ab5012","dark":"https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/logo/swai-logo.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=29b1c072e4e4075297a41fc4acebc982"},"favicon":"/favicon.svg","navbar":{"primary":{"type":"button","label":"Try SWAI","href":"https://www.swai.app/"}},"footer":{"socials":{"x":"https://x.com/swaiapp","website":"https://www.swai.app/"}},"seo":{"metatags":{"og:image":"https://mintlify.s3.us-west-1.amazonaws.com/hideoutlabs/images/swai-og.png","og:title":"SWAI - Your Agents. Your Way.","og:description":"An orchestration platform that combines the power of AI and Web3, enabling anyone to build agentic systems that are smarter, more adaptive, and capable of complex behavior."}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hideoutlabs","hasAudioNarration":false,"actualSubdomain":"hideoutlabs","customDomains":["docs.swai.app"],"gitSource":{"type":"github","owner":"hideout-labs","repo":"swai-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c717b7c442096901e57c","collectionId":"6c278516-ec7c-4f8b-968f-baf23b0a2017","schemaVersion":"v2"},"entitlements":{},"buildId":"6a20c717b7c442096901e57c:success","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"SWAI","count":9},{"language":"default","tag":"SWAI Cortex","count":2},{"language":"default","tag":"SWAI Engram","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"cortex/overview","slug":"/cortex/overview","pageMetadata":{"title":"Overview","description":"The brain of SWAI agents","href":"/cortex/overview"},"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: \"The brain of SWAI agents\"\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`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,Heading,Note,Step,Steps}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cortex`}),` is where all decisions are made — including scoring, reactions, and outcomes inside CTZN — based on signals coming from `,_jsx(_components.a,{href:`/synapse`,children:`Synapse`}),`.`]}),`\n`,_jsx(_components.p,{children:`It functions as the brain of SWAI agents, processing information through a state machine that maintains predictable behavior while allowing for natural responses.`}),`\n`,_jsxs(_components.p,{children:[`At its core, `,_jsx(_components.strong,{children:`Cortex`}),` uses chain of thought reasoning to break down complex problems into manageable steps.`]}),`\n`,_jsx(_components.p,{children:`This approach helps agents make decisions that feel well-considered and human-like.`}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.strong,{children:`Cortex`}),` receives an event, it analyzes the incoming information, retrieves relevant context from memory, applies deliberative reasoning to evaluate options, integrates behavioural modifiers based on personality traits, and finally selects the most appropriate action.`]}),`\n`,_jsx(_components.p,{children:`This structured approach allows agents to respond thoughtfully to various situations while maintaining consistency in their behavior.`}),`\n`,_jsxs(_components.p,{children:[`By evaluating outcomes and storing results for future reference, `,_jsx(_components.strong,{children:`Cortex`}),` continuously adapts its responses to be more effective.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`SWAI agents can seamlessly switch between different model providers based on specific requirements, performance considerations, or availability, without disrupting the core reasoning architecture.`})}),`\n`,_jsx(Heading,{level:`2`,id:`core-architecture`,children:`Core architecture`}),`\n`,_jsxs(_components.p,{children:[`Built on `,_jsx(_components.a,{href:`https://stately.ai/agent`,children:`Stately.ai`}),`, `,_jsx(_components.strong,{children:`Cortex`}),` combines AI creativity with state machine reliability to create predictable yet natural interactions.`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`LLM reasoning`,icon:`sparkles`,children:_jsx(_components.p,{children:`Reasoning models like DeepSeek power chain-of-thought reasoning and real-time decision-making in live systems like CTZN`})}),_jsx(Card,{title:`State machines`,icon:`diagram-project`,children:_jsx(_components.p,{children:`Predictable workflows that maintain natural interactions`})}),_jsx(Card,{title:`Web3 integration`,icon:`cube`,children:_jsx(_components.p,{children:`On-chain personality and state traits stored using Metaplex Core — powering dynamic, verifiable agent logic within CTZN`})}),_jsx(Card,{title:`Event processing`,icon:`bolt`,children:_jsx(_components.p,{children:`Multi-source input handling for context-aware decisions`})})]}),`\n`,_jsx(Card,{title:`Architecture details`,icon:`sitemap`,href:`/cortex/architecture`,children:_jsx(_components.p,{children:`Explore the detailed architecture of Cortex, including state diagrams, reasoning processes, and practical examples of how agents make decisions.`})}),`\n`,_jsx(Heading,{level:`2`,id:`decision-making-process`,children:`Decision making process`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Input gathering`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Personality traits (stored on-chain)`}),`\n`,_jsx(_components.li,{children:`Event streams from Synapse`}),`\n`,_jsx(_components.li,{children:`Background story elements`}),`\n`,_jsx(_components.li,{children:`Current state context`}),`\n`]})}),_jsx(Step,{title:`State evaluation`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Current agent status`}),`\n`,_jsx(_components.li,{children:`Available actions`}),`\n`,_jsx(_components.li,{children:`Transition conditions`}),`\n`]})}),_jsx(Step,{title:`LLM reasoning`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Understand context`}),`\n`,_jsx(_components.li,{children:`Generate responses`}),`\n`,_jsx(_components.li,{children:`Make decisions`}),`\n`]})}),_jsx(Step,{title:`Action execution`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Validated against state rules`}),`\n`,_jsx(_components.li,{children:`Executed in sequence`}),`\n`,_jsx(_components.li,{children:`Logged for verification`}),`\n`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`model-providers`,children:`Model providers`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cortex`}),` is designed to work with multiple AI model providers, allowing for flexibility in choosing the right model for specific agent needs.`]}),`\n`,_jsx(_components.p,{children:`This provider-agnostic approach enables SWAI to leverage the unique strengths of different models while maintaining consistent reasoning patterns and decision-making capabilities.`}),`\n`,_jsxs(_components.p,{children:[`Through `,_jsx(_components.a,{href:`https://www.together.ai/`,children:`together.ai`}),` infrastructure, we can train and deploy custom AI models specifically tailored to unique agent requirements and specialized use-cases, enhancing performance for domain-specific tasks.`]}),`\n`,_jsxs(`div`,{className:`mint-grid sm:mint-grid-cols-3 mint-gap-4 mint-items-center`,children:[_jsx(`div`,{className:`mint-bg-white mint-rounded-lg mint-p-4 mint-flex mint-items-center mint-justify-center mint-h-full`,children:_jsx(`img`,{src:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/Anthropic_logo.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=e8cb71e1b09cc6709a49f1eac24ed5fa`,alt:`Anthropic logo`,noZoom:true,className:`mint-h-3`,\"data-og-width\":`1024`,width:`1024`,\"data-og-height\":`115`,height:`115`,\"data-path\":`images/Anthropic_logo.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/Anthropic_logo.svg?w=280\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=29cd5b1f88d3826a2763003d2e544f0a 280w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/Anthropic_logo.svg?w=560\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=eae7c6c77d470c42ad92737b443b38d6 560w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/Anthropic_logo.svg?w=840\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=d33226b908cdaaedc21065bce2f16fff 840w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/Anthropic_logo.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=4be5ee1e1d65b640c50cec0eeccb0b37 1100w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/Anthropic_logo.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=7d4ca3c613bfc6aa1fb6e363b2117840 1650w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/Anthropic_logo.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=c1d27d2e71e0f548bfb7d1d5ae163dba 2500w`})}),_jsx(`div`,{className:`mint-bg-white mint-rounded-lg mint-p-4 mint-flex mint-items-center mint-justify-center mint-h-full`,children:_jsx(`img`,{src:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/OpenAI_Logo.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=69a8694976be1091ec981f89fc2c0d76`,alt:`OpenAI logo`,noZoom:true,className:`mint-h-6`,\"data-og-width\":`1180`,width:`1180`,\"data-og-height\":`320`,height:`320`,\"data-path\":`images/OpenAI_Logo.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/OpenAI_Logo.svg?w=280\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=69a4a5324a71978cacd7010a9ba5de0f 280w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/OpenAI_Logo.svg?w=560\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=a46ff5460928e2c9e50def5487911ff8 560w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/OpenAI_Logo.svg?w=840\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=3b1500557f44e51ec8945e129034df6b 840w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/OpenAI_Logo.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=ad23b3a8fb1903335cc0a32a44517a49 1100w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/OpenAI_Logo.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=a8c6527954f50a91ac08feb21f339c0c 1650w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/OpenAI_Logo.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=f307e90143b0dec7c32cb36e482bedbd 2500w`})}),_jsx(`div`,{className:`mint-bg-white mint-rounded-lg mint-p-4 mint-flex mint-items-center mint-justify-center mint-h-full`,children:_jsx(`img`,{src:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/DeepSeek_logo.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=110baed43c904de12afa4f20d3dbecaf`,alt:`DeepSeek logo`,noZoom:true,className:`mint-h-5`,\"data-og-width\":`195`,width:`195`,\"data-og-height\":`41`,height:`41`,\"data-path\":`images/DeepSeek_logo.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/DeepSeek_logo.svg?w=280\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=bef3cdc4b8399accfdf31f012f9cbcfd 280w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/DeepSeek_logo.svg?w=560\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=c8cb3d605ed09ff94260748d5a56ab83 560w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/DeepSeek_logo.svg?w=840\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=ccbd41d641353e754b53e36f6b525bab 840w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/DeepSeek_logo.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=1804943104b9e3933379537d44670608 1100w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/DeepSeek_logo.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=36cb726eb13106e4786df23e8c6d2c3e 1650w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/DeepSeek_logo.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=80ac1ea492847b27f8ff2dad0e185c81 2500w`})}),_jsx(`div`,{className:`mint-bg-white mint-rounded-lg mint-p-4 mint-flex mint-items-center mint-justify-center mint-h-full`,children:_jsx(`img`,{src:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/gemini_logo.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=32284c70aa24b3a3b1d59609626ef99c`,alt:`Google Gemini logo`,noZoom:true,className:`mint-h-6`,\"data-og-width\":`344`,width:`344`,\"data-og-height\":`127`,height:`127`,\"data-path\":`images/gemini_logo.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/gemini_logo.svg?w=280\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=8ad44f9162091da7b167bae4450665be 280w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/gemini_logo.svg?w=560\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=a1d8383b84f0b7d112e8631494dd1784 560w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/gemini_logo.svg?w=840\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=d4bfda9188e82d35ef41ea72b40087e9 840w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/gemini_logo.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=dfdb8e9c3643fe0a1fbf2c15bdbf3ee8 1100w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/gemini_logo.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=dcad64022b528c5db0b78cd36e223fbe 1650w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/gemini_logo.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=6404e892f0db30340f57677640b68676 2500w`})}),_jsx(`div`,{className:`mint-bg-white mint-rounded-lg mint-p-4 mint-flex mint-items-center mint-justify-center mint-h-full`,children:_jsx(`img`,{src:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/ollama.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=0d2b63a8d7337f8105f5cc47e415d435`,alt:`Ollama logo`,noZoom:true,className:`mint-h-8`,\"data-og-width\":`24`,width:`24`,\"data-og-height\":`24`,height:`24`,\"data-path\":`images/ollama.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/ollama.svg?w=280\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=67976f0c56712507abefe731e51caf1a 280w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/ollama.svg?w=560\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=46f11e44eb20e891e6dcf520a748ffbc 560w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/ollama.svg?w=840\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=0333cedb4dbecb02cf273c3146788a4f 840w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/ollama.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=9a23fa172c036d5d1429f0b953562c06 1100w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/ollama.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=2dcbb6a5767efc19909400294672ce46 1650w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/ollama.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=0b295c66ea811dd70fe327eefae1202b 2500w`})}),_jsx(`div`,{className:`mint-bg-white mint-rounded-lg mint-p-4 mint-flex mint-items-center mint-justify-center mint-h-full`,children:_jsx(`img`,{src:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/togetherai.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=c61c8625a9fed40651222680501bd5e0`,alt:`TogetherAI logo`,noZoom:true,className:`mint-h-5`,\"data-og-width\":`214`,width:`214`,\"data-og-height\":`42`,height:`42`,\"data-path\":`images/togetherai.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/togetherai.svg?w=280\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=60cb6d3e0f3f24573194da656ad31c95 280w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/togetherai.svg?w=560\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=b1c39643aa73e4b7846d87dd9930d73f 560w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/togetherai.svg?w=840\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=f6fb68cf53f7e524a4fcae7b2af8ce7d 840w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/togetherai.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=bff92fd98f61c9803be3b867bdfbf910 1100w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/togetherai.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=2ceb28dbdd5eeec10e5d106590b8b72a 1650w, https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/images/togetherai.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=98a29d91f0091d90bab910c9565040f6 2500w`})})]})]})}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":"Overview","description":"The brain of SWAI agents","href":"/cortex/overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Core architecture","slug":"core-architecture","depth":2,"children":[]},{"title":"Decision making process","slug":"decision-making-process","depth":2,"children":[]},{"title":"Model providers","slug":"model-providers","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-flex {\n display: flex\n}\n.mint-grid {\n display: grid\n}\n.mint-h-3 {\n height: 0.75rem\n}\n.mint-h-5 {\n height: 1.25rem\n}\n.mint-h-6 {\n height: 1.5rem\n}\n.mint-h-8 {\n height: 2rem\n}\n.mint-h-full {\n height: 100%\n}\n.mint-items-center {\n align-items: center\n}\n.mint-justify-center {\n justify-content: center\n}\n.mint-gap-4 {\n gap: 1rem\n}\n.mint-rounded-lg {\n border-radius: 0.5rem\n}\n.mint-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))\n}\n.mint-p-4 {\n padding: 1rem\n}\n@media (min-width: 640px) {\n .sm\\:mint-grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr))\n }\n}","subdomain":"hideoutlabs","siteName":"SWAI","title":"SWAI - Your Agents. Your Way.","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T05:57:27.139Z","originalFileLocation":"cortex/overview.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=\"The brain of SWAI agents\">\u003cmeta data-mint-head name=\"application-name\" content=\"SWAI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hideoutlabs/W4yvuUKeHtlLuJ5-/_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/hideoutlabs/W4yvuUKeHtlLuJ5-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hideoutlabs/W4yvuUKeHtlLuJ5-/_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/hideoutlabs/W4yvuUKeHtlLuJ5-/_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/hideoutlabs/W4yvuUKeHtlLuJ5-/_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/hideoutlabs/W4yvuUKeHtlLuJ5-/_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/hideoutlabs/W4yvuUKeHtlLuJ5-/_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/hideoutlabs/W4yvuUKeHtlLuJ5-/_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/hideoutlabs/W4yvuUKeHtlLuJ5-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"SWAI - Your Agents. Your Way.\">\u003cmeta data-mint-head property=\"og:description\" content=\"An orchestration platform that combines the power of AI and Web3, enabling anyone to build agentic systems that are smarter, more adaptive, and capable of complex behavior.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SWAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.swai.app/cortex/overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/hideoutlabs/images/swai-og.png\">\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=\"SWAI - Your Agents. Your Way.\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"An orchestration platform that combines the power of AI and Web3, enabling anyone to build agentic systems that are smarter, more adaptive, and capable of complex behavior.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/hideoutlabs/images/swai-og.png\">\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/hideoutlabs/W4yvuUKeHtlLuJ5-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SWAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#20DB1C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.swai.app/cortex/overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cortex/overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.swai.app/#organization\",\"name\":\"SWAI\",\"url\":\"https://docs.swai.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hideoutlabs/cbcidFJ3ucYStbSH/logo/swai-logo-white.svg?fit=max\u0026auto=format\u0026n=cbcidFJ3ucYStbSH\u0026q=85\u0026s=bc6b8faa6ee78251a9401ac715ab5012\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.swai.app#website\",\"name\":\"SWAI\",\"url\":\"https://docs.swai.app\",\"publisher\":{\"@id\":\"https://docs.swai.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.swai.app/cortex/overview#webpage\",\"url\":\"https://docs.swai.app/cortex/overview\",\"name\":\"Overview\",\"description\":\"The brain of SWAI agents\",\"dateModified\":\"2026-01-07T05:57:27.139Z\",\"isPartOf\":{\"@id\":\"https://docs.swai.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.swai.app/cortex/overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.swai.app/cortex/overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SWAI\",\"item\":\"https://docs.swai.app/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Overview\",\"item\":\"https://docs.swai.app/cortex/overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.swai.app/cortex/overview#article\",\"headline\":\"Overview\",\"name\":\"Overview\",\"description\":\"The brain of SWAI agents\",\"url\":\"https://docs.swai.app/cortex/overview\",\"mainEntityOfPage\":{\"@id\":\"https://docs.swai.app/cortex/overview#webpage\"},\"image\":\"https://mintlify.s3.us-west-1.amazonaws.com/hideoutlabs/images/swai-og.png\",\"dateModified\":\"2026-01-07T05:57:27.139Z\",\"publisher\":{\"@id\":\"https://docs.swai.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.swai.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SWAI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"SWAI","nav":{"global":null,"groups":[{"group":"SWAI","pages":[{"title":"Introducing SWAI","icon":"brain-circuit","href":"/introduction"},{"title":"Architecture","description":"An overview of how SWAI components work together","icon":"sitemap","href":"/architecture"},{"group":"SWAI Cortex","icon":"brain","pages":[{"title":"Overview","href":"/cortex/overview"},{"title":"Architecture","description":"How the SWAI Cortex module processes information and makes decisions","href":"/cortex/architecture"}]},{"group":"SWAI Engram","icon":"database","pages":[{"title":"Overview","href":"/engram/overview"},{"title":"On-chain storage","href":"/engram/onchain"}]},{"title":"SWAI Synapse","icon":"bolt","href":"/synapse"},{"title":"SWAI Kinesis","icon":"gears","href":"/kinesis"},{"title":"Build on SWAI","icon":"rocket","href":"/build-on-swai"}]}]},"title":"SWAI - Your Agents. Your Way.","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":[],"chunks":[]}