An input stream is used to configure what input data gets connected to Newton and how it gets processed and interpreted via a specific lens.Newton works both with files and continuous streams of sensor data from the physical world, including videos, live camera streams, timeseries data, among other sensors.A developer can hook up their custom sensor or pre-recorded files to an input data stream using a data connector.Common input data connectors are file readers, such as video and CSV readers, and streaming protocols, such as REST, Websockets, and Kafka.The full list of data connectors can be found in Data Connectors.
Output Streams
An output stream is used to configure what data gets streamed out of Newton and how that data first gets processed and interpreted via a lens.A developer can hook up the output of Newton to their custom app or downstream listener by connecting an output stream to an external protocol using a data Connector.Common output data connectors are streaming protocols, such as Server Side Events, REST, Websockets, and Kafka.The full list of data connectors can be found in Data Connectors.For API details on stream event types and usage, see Stream Event Types.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Archetype AI Documentation","colors":{"primary":"#0047FF","light":"#9EBBFF","dark":"#0047FF"},"logo":{"light":"https://mintcdn.com/archetypeai-bd6fb3cf/Fml2i7FmPyxjLCP7/logo/light.svg?fit=max\u0026auto=format\u0026n=Fml2i7FmPyxjLCP7\u0026q=85\u0026s=4b1f94a0bc6c65c3905d1a55d725b05f","dark":"https://mintcdn.com/archetypeai-bd6fb3cf/Fml2i7FmPyxjLCP7/logo/dark.svg?fit=max\u0026auto=format\u0026n=Fml2i7FmPyxjLCP7\u0026q=85\u0026s=b652785f67f97925eb5177264ffc9e50"},"favicon":"https://mintcdn.com/archetypeai-bd6fb3cf/PEoHdVWOSWJmHgSg/favicon.svg?fit=max\u0026auto=format\u0026n=PEoHdVWOSWJmHgSg\u0026q=85\u0026s=4ea6587ffdd8e925003e9e12319702aa","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://platform.u1.archetypeai.app/api"}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://platform.u1.archetypeai.app/","label":"Console"}]},"footer":{"socials":{"twitter":"https://x.com/physicalai","github":"https://github.com/archetypeai","linkedin":"https://www.linkedin.com/company/archetype-ai"}},"search":{"prompt":"Search Archetype Platform docs..."},"seo":{"indexing":"navigable"},"styling":{"codeblocks":"system","latex":false},"integrations":{"amplitude":{"apiKey":"84e8a1610cf8b3c7d8a49d945917606d"}},"markdown":{"instructions":"Start with /introduction/getting-started. Use the Inference API's Direct Query endpoint (POST /api/inference/query) with the newton-c-2.6 or newton-fusion-1.0 model (text, image, and video reasoning) or the omega-embedding encoder (time-series embeddings). ATAI_API_ENDPOINT is the base URL https://platform.u1.archetypeai.app with no version path; every endpoint path begins with /api. Pages whose descriptions are marked (Archived) document the legacy Lens runtime — do not use them for new projects."},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"archetypeai-bd6fb3cf","hasAudioNarration":false,"actualSubdomain":"archetypeai-bd6fb3cf","customDomains":["docs.archetypeai.app"],"gitSource":{"type":"github","owner":"archetypeai","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae399f43888be9481e90634"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aff7cc9fb9c824e7740658f","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"API Reference","count":272},{"language":"default","tag":"Documentation","count":82},{"language":"default","tag":"Agents API","count":55},{"language":"default","tag":"Archive","count":28},{"language":"default","tag":"Core Concepts","count":25},{"language":"default","tag":"Agents","count":24},{"language":"default","tag":"Batch Processing API","count":20},{"language":"default","tag":"Developer Console","count":18},{"language":"default","tag":"Files API","count":16},{"language":"default","tag":"Sessions","count":14}]},"assistantConfig":{"deflection":{"enabled":true,"email":"[email protected]"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"site-roles","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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"*{border-radius:0px!important}[data-theme=\"light\"] pre,[data-theme=\"light\"] pre code{background-color:#f6f8fa!important;color:#24292e!important}[data-theme=\"dark\"] pre,[data-theme=\"dark\"] pre code{background-color:#161b22!important;color:#e1e4e8!important}[data-theme=\"light\"] code:not(pre code){color:#0969da!important;background-color:#f6f8fa!important;padding:2px 4px;border-radius:3px}[data-theme=\"dark\"] code:not(pre code){color:#79c0ff!important;background-color:#161b22!important;padding:2px 4px;border-radius:3px}"}]}
{"page":{"pagePath":"core-concepts/streams/events/stream-events","slug":"/core-concepts/streams/events/stream-events","pageMetadata":{"title":"Stream Events","description":"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.","deprecated":true,"href":"/core-concepts/streams/events/stream-events"},"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: \"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.\"\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`,p:`p`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`input-streams`,children:`Input Streams`}),`\n`,_jsx(_components.p,{children:`An input stream is used to configure what input data gets connected to Newton and how it gets processed and interpreted via a specific lens.`}),`\n`,_jsx(_components.p,{children:`Newton works both with files and continuous streams of sensor data from the physical world, including videos, live camera streams, timeseries data, among other sensors.`}),`\n`,_jsxs(_components.p,{children:[`A developer can hook up their custom sensor or pre-recorded files to an input data stream using a `,_jsx(_components.a,{href:`/core-concepts/streams/data-connectors`,children:`data connector`}),`.`]}),`\n`,_jsx(_components.p,{children:`Common input data connectors are file readers, such as video and CSV readers, and streaming protocols, such as REST, Websockets, and Kafka.`}),`\n`,_jsxs(_components.p,{children:[`The full list of data connectors can be found in `,_jsx(_components.a,{href:`/core-concepts/streams/data-connectors`,children:`Data Connectors`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`output-streams`,children:`Output Streams`}),`\n`,_jsx(_components.p,{children:`An output stream is used to configure what data gets streamed out of Newton and how that data first gets processed and interpreted via a lens.`}),`\n`,_jsxs(_components.p,{children:[`A developer can hook up the output of Newton to their custom app or downstream listener by connecting an output stream to an external protocol using a `,_jsx(_components.a,{href:`/core-concepts/streams/data-connectors`,children:`data Connector`}),`.`]}),`\n`,_jsx(_components.p,{children:`Common output data connectors are streaming protocols, such as Server Side Events, REST, Websockets, and Kafka.`}),`\n`,_jsxs(_components.p,{children:[`The full list of data connectors can be found in `,_jsx(_components.a,{href:`/core-concepts/streams/data-connectors`,children:`Data Connectors`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`For API details on stream event types and usage, see `,_jsx(_components.a,{href:`/core-concepts/streams/events/stream-events`,children:`Stream Event Types`}),`.`]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Stream Events","description":"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.","deprecated":true,"href":"/core-concepts/streams/events/stream-events"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Input Streams","slug":"input-streams","depth":2,"children":[]},{"title":"Output Streams","slug":"output-streams","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"archetypeai-bd6fb3cf","siteName":"Archetype AI Documentation","title":"Stream Events - Archetype AI Documentation","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"manual"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-23T19:31:41.596Z","originalFileLocation":"core-concepts/streams/events/stream-events.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=\"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Archetype AI Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Stream Events - Archetype AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Archetype AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://archetypeai-bd6fb3cf.mintlify.site/_mintlify/api/og/v2?division=Events\u0026amp;title=Stream+Events\u0026amp;description=%28Archived%29+Legacy+Lens+runtime%3A+input%2Foutput+stream+configuration+events+for+lens+sessions.\u0026amp;theme=baca9d5089929997d797e9d7\u0026amp;signature=dee4e3220f13ea7c1312b106327db1177b701a334e17b692367ec2c82696068b\">\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=\"Stream Events - Archetype AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://archetypeai-bd6fb3cf.mintlify.site/_mintlify/api/og/v2?division=Events\u0026amp;title=Stream+Events\u0026amp;description=%28Archived%29+Legacy+Lens+runtime%3A+input%2Foutput+stream+configuration+events+for+lens+sessions.\u0026amp;theme=baca9d5089929997d797e9d7\u0026amp;signature=dee4e3220f13ea7c1312b106327db1177b701a334e17b692367ec2c82696068b\">\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/archetypeai-bd6fb3cf/k6xQEXnXaSGa-p6g/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Archetype AI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0047FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/core-concepts/streams/events/stream-events.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.archetypeai.app/#organization\",\"name\":\"Archetype AI Documentation\",\"url\":\"https://docs.archetypeai.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/archetypeai-bd6fb3cf/Fml2i7FmPyxjLCP7/logo/light.svg?fit=max\u0026auto=format\u0026n=Fml2i7FmPyxjLCP7\u0026q=85\u0026s=4b1f94a0bc6c65c3905d1a55d725b05f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.archetypeai.app#website\",\"name\":\"Archetype AI Documentation\",\"url\":\"https://docs.archetypeai.app\",\"publisher\":{\"@id\":\"https://docs.archetypeai.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events#webpage\",\"url\":\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events\",\"name\":\"Stream Events\",\"description\":\"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.\",\"dateModified\":\"2026-07-23T19:31:41.596Z\",\"isPartOf\":{\"@id\":\"https://docs.archetypeai.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Archive\",\"item\":\"https://docs.archetypeai.app/core-concepts/lenses/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Streams\",\"item\":\"https://docs.archetypeai.app/core-concepts/streams/data-streams\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Events\",\"item\":\"https://docs.archetypeai.app/core-concepts/streams/events/overview\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Stream Events\",\"item\":\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events#article\",\"headline\":\"Stream Events\",\"name\":\"Stream Events\",\"description\":\"(Archived) Legacy Lens runtime: input/output stream configuration events for lens sessions.\",\"url\":\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events\",\"mainEntityOfPage\":{\"@id\":\"https://docs.archetypeai.app/core-concepts/streams/events/stream-events#webpage\"},\"dateModified\":\"2026-07-23T19:31:41.596Z\",\"publisher\":{\"@id\":\"https://docs.archetypeai.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.archetypeai.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Archetype AI Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Archetype AI Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/core-concepts/streams/events/stream-events.md","siteName":"Archetype AI Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Introduction","public":true,"pages":[{"title":"Overview","href":"/introduction/overview"},{"title":"The Archetype AI Free Trial","sidebarTitle":"Free Trial","href":"/support/free-trial/features"},{"title":"Developer Quickstart: Direct Query API","sidebarTitle":"Getting Started: Direct Query API","href":"/introduction/getting-started"},{"title":"Developer Quickstart: Inference API","sidebarTitle":"Getting Started: Inference API","href":"/introduction/getting-started-inference-api"}]},{"group":"Core Concepts","public":true,"pages":[{"title":"Overview","href":"/core-concepts/introduction/introduction"},{"group":"Agents","pages":[{"title":"Overview","href":"/core-concepts/agents/overview"},{"title":"Managing Agents Using the Agents API","sidebarTitle":"Using the Agents API","href":"/core-concepts/agents/api"},{"title":"Batch and Serving Modes","sidebarTitle":"Batch and Serving Modes","href":"/core-concepts/agents/batch-and-serving"},{"group":"Agent Blueprints","pages":[{"title":"Anomaly Discovery Agent","href":"/core-concepts/agents/anomaly-discovery"},{"title":"Manual Generation Agent","href":"/core-concepts/agents/manual-generation"},{"title":"Operational State Monitoring Agent","href":"/core-concepts/agents/osm"},{"title":"Rare Event Detection Agent","href":"/core-concepts/agents/rare-event-detection"},{"title":"Task Verification Agent","href":"/core-concepts/agents/task-verification"},{"group":"Preview Agents","pages":[{"title":"Catastrophic Failure Prediction Agent","href":"/core-concepts/agents/catastrophic-failure-prediction"},{"title":"Contextualization Agent","href":"/core-concepts/agents/contextualization"},{"title":"Interpretation Agent","href":"/core-concepts/agents/interpretation"},{"title":"Label-Free Anomaly Discovery Agent","href":"/core-concepts/agents/label-free-ad"},{"title":"Omega Encoder Agent","href":"/core-concepts/agents/omega-encoder"},{"title":"State Discovery Agent","href":"/core-concepts/agents/state-discovery"}]}]},{"title":"Optimizations and Evals","href":"/core-concepts/agents/optimize-and-eval"},{"title":"Migrating from Bundles and Instances","tag":"v2.0.1+","href":"/core-concepts/agents/migrate-from-bundles"}]},{"group":"Files","pages":[{"title":"Introduction to the Files API","sidebarTitle":"Introduction","href":"/core-concepts/files/files"},{"title":"Direct-to-Cloud Uploads","sidebarTitle":"Direct-to-Cloud","href":"/core-concepts/files/cloud-upload"}]},{"group":"Batch Processing","pages":[{"title":"Overview","href":"/core-concepts/batch-processing/overview"},{"title":"YAML Parameter Reference","sidebarTitle":"YAML Parameters","href":"/core-concepts/batch-processing/yaml-parameters"}]},{"title":"Improving Model Performance","sidebarTitle":"Model Performance","href":"/core-concepts/models/model-performance"},{"group":"Customization","pages":[{"title":"Overview","href":"/core-concepts/customization/overview"},{"title":"N-Shot Examples","href":"/core-concepts/customization/n-shot-examples"},{"title":"Fine-Tuning","href":"/core-concepts/customization/fine-tuning"}]}]},{"group":"Developer Console","public":true,"pages":[{"title":"Overview","href":"/developer-console/overview"},{"title":"Account Management","href":"/developer-console/account-management"},{"title":"Projects","tag":"v2.0.1+","href":"/developer-console/projects"},{"group":"Agents","pages":[{"title":"Using Agents in the Developer Console","sidebarTitle":"Overview","href":"/developer-console/agents/overview"},{"title":"Agent Gallery","href":"/developer-console/agents/agent-gallery"},{"title":"Blueprints","tag":"v2.0.1+","href":"/developer-console/agents/blueprints"},{"title":"Packages","tag":"v2.0.1+","href":"/developer-console/agents/packages"},{"title":"Deployments","tag":"v2.0.1+","href":"/developer-console/agents/deployments"},{"title":"Sessions","tag":"v2.0.1+","href":"/developer-console/agents/sessions"},{"title":"Optimizations","href":"/developer-console/agents/optimizations"},{"title":"Evals","href":"/developer-console/agents/evals"}]},{"title":"File Manager","href":"/developer-console/file-manager/overview"},{"title":"Batch Manager","href":"/developer-console/batch-manager"},{"title":"Fine-Tuning","href":"/developer-console/fine-tuning/fine-tuning"},{"title":"Model Registry","href":"/developer-console/model-registry/model-registry"}]},{"group":"Libraries","public":true,"pages":[{"title":"Overview","href":"/libraries/libraries"},{"title":"Python","href":"/libraries/python"},{"title":"Environment Variables","href":"/libraries/environment-variables"}]},{"group":"Integrations","public":true,"pages":[{"title":"NVIDIA VSS with Newton Fusion","href":"/integrations/nvidia-vss"}]},{"group":"Examples","public":true,"pages":[{"title":"Example Projects","href":"/code-examples/example-projects"}]},{"group":"Help \u0026 Support","public":true,"pages":[{"title":"Support","href":"/support/support"},{"title":"Troubleshooting","href":"/support/troubleshooting"},{"title":"Error Codes","href":"/support/error-codes"},{"group":"Release Notes","pages":[{"title":"v2.0.x","href":"/release-notes/2.0.x"},{"title":"v1.1.x","href":"/release-notes/1.1.x"}]}]},{"group":"Archive","public":true,"pages":[{"group":"Lenses","pages":[{"title":"What is a Lens?","deprecated":true,"href":"/core-concepts/lenses/overview"},{"group":"Starter Lens","pages":[{"title":"Activity Monitor","deprecated":true,"href":"/core-concepts/lenses/lens-templates/activity-monitor"},{"title":"Machine State Lens","deprecated":true,"href":"/core-concepts/lenses/lens-templates/machine-state"},{"title":"Test Lens","deprecated":true,"href":"/core-concepts/lenses/lens-templates/test-lens"}]},{"title":"Lens Parameters","sidebarTitle":"Lens Parameters","deprecated":true,"href":"/core-concepts/lenses/lens-parameter"},{"title":"Lens Processors","deprecated":true,"href":"/core-concepts/lenses/lens-processors"},{"title":"Lens Customization","deprecated":true,"href":"/core-concepts/customization/lens-customization"}]},{"group":"Streams","pages":[{"title":"Data Streams","deprecated":true,"href":"/core-concepts/streams/data-streams"},{"group":"Data Connectors","pages":[{"group":"Readers","pages":[{"title":"CSV File Reader","deprecated":true,"href":"/core-concepts/streams/data-connectors/readers/csv-reader"},{"title":"Video File Reader","deprecated":true,"href":"/core-concepts/streams/data-connectors/readers/video-reader"},{"title":"RTSP Video Reader","deprecated":true,"href":"/core-concepts/streams/data-connectors/readers/rtsp-video-reader"},{"title":"JSONL File Reader","deprecated":true,"href":"/core-concepts/streams/data-connectors/readers/jsonl-file-reader"}]},{"group":"Writers","pages":[{"title":"SSE Writer","deprecated":true,"href":"/core-concepts/streams/data-connectors/writers/sse-writer"}]}]},{"group":"Events","pages":[{"title":"Events","deprecated":true,"href":"/core-concepts/streams/events/overview"},{"title":"Session Events","description":"(Archived) Legacy Lens runtime: session events for querying, validating, and controlling active lens sessions.","deprecated":true,"href":"/core-concepts/streams/events/session-events"},{"title":"Stream Events","deprecated":true,"href":"/core-concepts/streams/events/stream-events"},{"title":"Data Events","description":"(Archived) Data event formats for packaging sensor data (text, JSON, base64 image, numeric array); the payload shapes are also used by the Direct Query API's events parameter.","deprecated":true,"href":"/core-concepts/streams/events/data-events"},{"title":"SSE Streaming","deprecated":true,"href":"/core-concepts/streams/events/sse-streaming"}]}]},{"group":"Developer Console","pages":[{"title":"Getting Started","deprecated":true,"href":"/developer-console/introduction"},{"group":"Workbench Starter Lenses","pages":[{"title":"Activity Monitor Lens","deprecated":true,"href":"/developer-console/workbench/activity"},{"title":"Machine State Lens","deprecated":true,"href":"/developer-console/workbench/machine-state"}]}]},{"group":"Examples","pages":[{"group":"Command Line Examples","pages":[{"title":"Activity Monitor","deprecated":true,"href":"/code-examples/command-line-demos/activity-monitor/activity-monitor"},{"title":"Machine State Lens","deprecated":true,"href":"/code-examples/command-line-demos/machine-state/machine-state"}]},{"group":"Alerts with Telegram","pages":[{"title":"Real-time Camera Alerts","deprecated":true,"href":"/code-examples/telegram-alerts/telegram-alerts"},{"group":"Setup","pages":[{"title":"RTSP Configuration","deprecated":true,"href":"/code-examples/telegram-alerts/setup/rtsp-setup"},{"title":"Telegram Bot Setup","deprecated":true,"href":"/code-examples/telegram-alerts/setup/bot-setup"}]}]},{"group":"Sensor Analysis with Sheets","pages":[{"title":"Google Sheets Integration","deprecated":true,"href":"/code-examples/machine-state/sensor-analysis-with-sheets"},{"group":"Setup","pages":[{"title":"Google Sheets API Credentials","deprecated":true,"href":"/code-examples/machine-state/setup/credentials-setup"}]}]}]}]}]},{"tab":"API Reference","directory":"accordion","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"For Agents","pages":[{"title":"For Agents","href":"/for-agents/agent-skills"}]},{"tab":"Admin","pages":[{"title":"Admin","href":"/developer-console/org-admin/overview"}]}]},"basePath":"","title":"Stream Events - Archetype AI Documentation","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}