PageSourceSearch

https://logicbee.ai/assets/js/46adda62.ca512b9a.js

js logicbee.ai collected 2026-10-05 15:23:50 UTC 4,313 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklogic_bee_github_io=self.webpackChunklogic_bee_github_io||[]).push([["4836"],{603(e,t,n){n.r(t),n.d(t,{metadata:()=>r,default:()=>h,frontMatter:()=>i,contentTitle:()=>c,toc:()=>l,assets:()=>a});var r=JSON.parse('{"id":"connectors/mastra","title":"Mastra Connector","description":"Integrate Mastra\'s AI orchestration framework into your Logic Bee hooks.","source":"@site/docs/connectors/mastra.md","sourceDirName":"connectors","slug":"/connectors/mastra","permalink":"/docs/connectors/mastra","draft":false,"unlisted":false,"editUrl":"https://github.com/logic-bee/logic-bee.github.io/edit/main/docs/connectors/mastra.md","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"sidebar_label":"Mastra","sidebar_position":4}}'),s=n(1987),o=n(9844);let i={sidebar_label:"Mastra",sidebar_position:4},c="Mastra Connector",a={},l=[{value:"Setup",id:"setup",level:2},{value:"Usage",id:"usage",level:2},{value:"Configuration Options",id:"configuration-options",level:2},{value:"Features",id:"features",level:2}];function d(e){let t={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"mastra-connector",children:"Mastra Connector"})}),"\n",(0,s.jsx)(t.p,{children:"Integrate Mastra's AI orchestration framework into your Logic Bee hooks."}),"\n",(0,s.jsx)(t.h2,{id:"setup",children:"Setup"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typescript",children:"// logic-bee.config.ts\nexport default {\n  connectors: {\n    mastra: {\n      apiKey: process.env.MASTRA_API_KEY,\n      baseUrl: 'https://api.mastra.ai',\n    },\n  },\n};\n"})}),"\n",(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typescript",children:"@LogicHook({\n  event: 'run-agent-workflow',\n  collection: 'ai',\n})\nexport class RunAgentWorkflowHook {\n  async run(context) {\n    const { workflowId, input } = context.body;\n\n    const result = await context.connectors.mastra.executeWorkflow({\n      workflowId,\n      input,\n    });\n\n    return { result: result.output, status: result.status };\n  }\n}\n"})}),"\n",(0,s.jsx)(t.h2,{id:"configuration-options",children:"Configuration Options"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Option"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"apiKey"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string"})}),(0,s.jsx)(t.td,{children:"Your Mastra API key"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"baseUrl"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string"})}),(0,s.jsx)(t.td,{children:"Mastra API base URL"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"timeout"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"number"})}),(0,s.jsx)(t.td,{children:"Request timeout in milliseconds"})]})]})]}),"\n",(0,s.jsx)(t.h2,{id:"features",children:"Features"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Agent workflows"})," \u2014 Execute multi-step AI agent workflows"]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Tool orchestration"})," \u2014 Chain tools and models together"]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Observability"})," \u2014 Built-in tracing and logging for AI pipelines"]}),"\n"]})]})}function h(e={}){let{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},9844(e,t,n){n.d(t,{R:()=>i,x:()=>c});var r=n(1763);let s={},o=r.createContext(s);function i(e){let t=r.useContext(o);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),r.createElement(o.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.