@mastra/core 1.2.0 → 1.2.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/_types/@internal_ai-sdk-v4/dist/index.d.ts +30 -17
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +10 -7
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/{chunk-VBOO4F4D.cjs → chunk-2DMSFLJY.cjs} +5 -5
- package/dist/{chunk-VBOO4F4D.cjs.map → chunk-2DMSFLJY.cjs.map} +1 -1
- package/dist/{chunk-ARQG4ZSD.cjs → chunk-5SOS47PH.cjs} +37 -37
- package/dist/chunk-5SOS47PH.cjs.map +1 -0
- package/dist/{chunk-NRMSZFAU.js → chunk-5YVR7B4R.js} +5 -5
- package/dist/{chunk-NRMSZFAU.js.map → chunk-5YVR7B4R.js.map} +1 -1
- package/dist/{chunk-G5NRZOPO.cjs → chunk-7MDVYPWX.cjs} +4 -4
- package/dist/{chunk-G5NRZOPO.cjs.map → chunk-7MDVYPWX.cjs.map} +1 -1
- package/dist/{chunk-AP3Z4EAP.cjs → chunk-A5QFWX67.cjs} +53 -53
- package/dist/{chunk-AP3Z4EAP.cjs.map → chunk-A5QFWX67.cjs.map} +1 -1
- package/dist/{chunk-4XLGMCCQ.js → chunk-AUF6U2BL.js} +3 -3
- package/dist/{chunk-4XLGMCCQ.js.map → chunk-AUF6U2BL.js.map} +1 -1
- package/dist/{chunk-POKH6N2J.cjs → chunk-AXN5P2GE.cjs} +4 -4
- package/dist/{chunk-POKH6N2J.cjs.map → chunk-AXN5P2GE.cjs.map} +1 -1
- package/dist/{chunk-YL6ETQ5I.cjs → chunk-B4M33FCS.cjs} +9 -9
- package/dist/{chunk-YL6ETQ5I.cjs.map → chunk-B4M33FCS.cjs.map} +1 -1
- package/dist/{chunk-DG6C6ZTL.cjs → chunk-CC3OOESY.cjs} +44 -43
- package/dist/chunk-CC3OOESY.cjs.map +1 -0
- package/dist/{chunk-NYC6PYZF.js → chunk-E3VFKTIA.js} +36 -4
- package/dist/chunk-E3VFKTIA.js.map +1 -0
- package/dist/{chunk-3LRUJTH3.cjs → chunk-GVLPTDJA.cjs} +50 -13
- package/dist/chunk-GVLPTDJA.cjs.map +1 -0
- package/dist/{chunk-SS4AZHZW.cjs → chunk-HU2ONA2W.cjs} +9 -9
- package/dist/{chunk-SS4AZHZW.cjs.map → chunk-HU2ONA2W.cjs.map} +1 -1
- package/dist/chunk-HVG7MWNT.js +439 -0
- package/dist/chunk-HVG7MWNT.js.map +1 -0
- package/dist/chunk-JCEP2VPF.cjs +441 -0
- package/dist/chunk-JCEP2VPF.cjs.map +1 -0
- package/dist/{chunk-PPAJGWVW.js → chunk-MSWXEOZC.js} +3 -3
- package/dist/{chunk-PPAJGWVW.js.map → chunk-MSWXEOZC.js.map} +1 -1
- package/dist/{chunk-AQHO4OC2.cjs → chunk-QOFI2WBM.cjs} +6 -6
- package/dist/{chunk-AQHO4OC2.cjs.map → chunk-QOFI2WBM.cjs.map} +1 -1
- package/dist/{chunk-EY3WXGUD.js → chunk-RXD5EGQF.js} +43 -6
- package/dist/chunk-RXD5EGQF.js.map +1 -0
- package/dist/{chunk-XC7WIZBL.js → chunk-S6BH5HHY.js} +4 -3
- package/dist/chunk-S6BH5HHY.js.map +1 -0
- package/dist/{chunk-IPXNR6RQ.js → chunk-V2MLGA7T.js} +1884 -998
- package/dist/chunk-V2MLGA7T.js.map +1 -0
- package/dist/{chunk-Z4PGSIZ5.cjs → chunk-VTE2OBKS.cjs} +1890 -1004
- package/dist/chunk-VTE2OBKS.cjs.map +1 -0
- package/dist/{chunk-ZODRDMZ7.js → chunk-VX7UA3SO.js} +3 -3
- package/dist/{chunk-ZODRDMZ7.js.map → chunk-VX7UA3SO.js.map} +1 -1
- package/dist/{chunk-5HDIPOLV.js → chunk-WFUNLRQX.js} +6 -6
- package/dist/chunk-WFUNLRQX.js.map +1 -0
- package/dist/{chunk-V3LENMEW.js → chunk-X5ORARLG.js} +4 -4
- package/dist/{chunk-V3LENMEW.js.map → chunk-X5ORARLG.js.map} +1 -1
- package/dist/{chunk-Z2OKCLGV.cjs → chunk-XCPEEIHI.cjs} +41 -8
- package/dist/chunk-XCPEEIHI.cjs.map +1 -0
- package/dist/{chunk-57O4TPB3.js → chunk-Z6NRYYOH.js} +3 -3
- package/dist/{chunk-57O4TPB3.js.map → chunk-Z6NRYYOH.js.map} +1 -1
- package/dist/{chunk-RUMXBL6P.js → chunk-ZWM2CAIM.js} +5 -5
- package/dist/{chunk-RUMXBL6P.js.map → chunk-ZWM2CAIM.js.map} +1 -1
- package/dist/docs/SKILL.md +270 -64
- package/dist/docs/{SOURCE_MAP.json → assets/SOURCE_MAP.json} +156 -152
- package/dist/docs/{agents/10-adding-voice.md → references/docs-agents-adding-voice.md} +6 -5
- package/dist/docs/{agents/08-agent-approval.md → references/docs-agents-agent-approval.md} +19 -19
- package/dist/docs/{agents/03-agent-memory.md → references/docs-agents-agent-memory.md} +57 -55
- package/dist/docs/{agents/07-guardrails.md → references/docs-agents-guardrails.md} +21 -39
- package/dist/docs/{agents/09-network-approval.md → references/docs-agents-network-approval.md} +12 -11
- package/dist/docs/{agents/05-networks.md → references/docs-agents-networks.md} +7 -9
- package/dist/docs/{agents/01-overview.md → references/docs-agents-overview.md} +54 -72
- package/dist/docs/{agents/06-processors.md → references/docs-agents-processors.md} +29 -24
- package/dist/docs/{agents/04-structured-output.md → references/docs-agents-structured-output.md} +13 -22
- package/dist/docs/{agents/02-using-tools.md → references/docs-agents-using-tools.md} +12 -13
- package/dist/docs/{evals/02-custom-scorers.md → references/docs-evals-custom-scorers.md} +5 -7
- package/dist/docs/{evals/01-overview.md → references/docs-evals-overview.md} +26 -17
- package/dist/docs/{evals/03-running-in-ci.md → references/docs-evals-running-in-ci.md} +2 -4
- package/dist/docs/{mcp/01-overview.md → references/docs-mcp-overview.md} +135 -140
- package/dist/docs/references/docs-mcp-publishing-mcp-server.md +95 -0
- package/dist/docs/{memory/05-memory-processors.md → references/docs-memory-memory-processors.md} +6 -8
- package/dist/docs/references/docs-memory-observational-memory.md +166 -0
- package/dist/docs/{memory/01-overview.md → references/docs-memory-overview.md} +8 -8
- package/dist/docs/{memory/04-semantic-recall.md → references/docs-memory-semantic-recall.md} +33 -17
- package/dist/docs/{memory/02-storage.md → references/docs-memory-storage.md} +29 -39
- package/dist/docs/{memory/03-working-memory.md → references/docs-memory-working-memory.md} +16 -27
- package/dist/docs/{observability/02-logging.md → references/docs-observability-logging.md} +6 -10
- package/dist/docs/{observability/01-overview.md → references/docs-observability-overview.md} +4 -10
- package/dist/docs/{observability/04-otel.md → references/docs-observability-tracing-bridges-otel.md} +31 -14
- package/dist/docs/{observability/07-arize.md → references/docs-observability-tracing-exporters-arize.md} +38 -22
- package/dist/docs/{observability/08-braintrust.md → references/docs-observability-tracing-exporters-braintrust.md} +24 -6
- package/dist/docs/{observability/06-cloud.md → references/docs-observability-tracing-exporters-cloud.md} +7 -7
- package/dist/docs/{observability/09-datadog.md → references/docs-observability-tracing-exporters-datadog.md} +26 -8
- package/dist/docs/{observability/05-default.md → references/docs-observability-tracing-exporters-default.md} +11 -14
- package/dist/docs/{observability/10-laminar.md → references/docs-observability-tracing-exporters-laminar.md} +24 -6
- package/dist/docs/{observability/11-langfuse.md → references/docs-observability-tracing-exporters-langfuse.md} +31 -12
- package/dist/docs/{observability/12-langsmith.md → references/docs-observability-tracing-exporters-langsmith.md} +29 -11
- package/dist/docs/{observability/13-otel.md → references/docs-observability-tracing-exporters-otel.md} +107 -63
- package/dist/docs/{observability/14-posthog.md → references/docs-observability-tracing-exporters-posthog.md} +24 -6
- package/dist/docs/{observability/03-overview.md → references/docs-observability-tracing-overview.md} +45 -53
- package/dist/docs/{rag/02-chunking-and-embedding.md → references/docs-rag-chunking-and-embedding.md} +5 -11
- package/dist/docs/{rag/05-graph-rag.md → references/docs-rag-graph-rag.md} +0 -2
- package/dist/docs/{rag/01-overview.md → references/docs-rag-overview.md} +2 -7
- package/dist/docs/{rag/04-retrieval.md → references/docs-rag-retrieval.md} +26 -53
- package/dist/docs/{rag/03-vector-databases.md → references/docs-rag-vector-databases.md} +198 -202
- package/dist/docs/{server/13-auth0.md → references/docs-server-auth-auth0.md} +68 -79
- package/dist/docs/{server/09-clerk.md → references/docs-server-auth-clerk.md} +41 -52
- package/dist/docs/{server/14-composite-auth.md → references/docs-server-auth-composite-auth.md} +1 -3
- package/dist/docs/{server/15-custom-auth-provider.md → references/docs-server-auth-custom-auth-provider.md} +13 -15
- package/dist/docs/{server/11-firebase.md → references/docs-server-auth-firebase.md} +83 -97
- package/dist/docs/{server/08-jwt.md → references/docs-server-auth-jwt.md} +46 -35
- package/dist/docs/{server/07-simple-auth.md → references/docs-server-auth-simple-auth.md} +10 -11
- package/dist/docs/{server/10-supabase.md → references/docs-server-auth-supabase.md} +33 -44
- package/dist/docs/{server/12-workos.md → references/docs-server-auth-workos.md} +45 -56
- package/dist/docs/{server/02-custom-adapters.md → references/docs-server-custom-adapters.md} +25 -31
- package/dist/docs/{server/05-custom-api-routes.md → references/docs-server-custom-api-routes.md} +7 -7
- package/dist/docs/{server/06-mastra-client.md → references/docs-server-mastra-client.md} +32 -20
- package/dist/docs/{server/01-mastra-server.md → references/docs-server-mastra-server.md} +5 -11
- package/dist/docs/{server/03-middleware.md → references/docs-server-middleware.md} +8 -15
- package/dist/docs/{server/04-request-context.md → references/docs-server-request-context.md} +29 -43
- package/dist/docs/{streaming/01-events.md → references/docs-streaming-events.md} +9 -16
- package/dist/docs/{streaming/02-tool-streaming.md → references/docs-streaming-tool-streaming.md} +6 -11
- package/dist/docs/{streaming/03-workflow-streaming.md → references/docs-streaming-workflow-streaming.md} +2 -6
- package/dist/docs/{tools-mcp/03-advanced-usage.md → references/docs-tools-mcp-advanced-usage.md} +23 -5
- package/dist/docs/{tools-mcp/01-mcp-overview.md → references/docs-tools-mcp-mcp-overview.md} +141 -146
- package/dist/docs/{tools-mcp/02-overview.md → references/docs-tools-mcp-overview.md} +4 -12
- package/dist/docs/{voice/01-overview.md → references/docs-voice-overview.md} +37 -81
- package/dist/docs/{voice/04-speech-to-speech.md → references/docs-voice-speech-to-speech.md} +1 -4
- package/dist/docs/{voice/03-speech-to-text.md → references/docs-voice-speech-to-text.md} +8 -11
- package/dist/docs/{voice/02-text-to-speech.md → references/docs-voice-text-to-speech.md} +12 -15
- package/dist/docs/{workflows/04-agents-and-tools.md → references/docs-workflows-agents-and-tools.md} +11 -21
- package/dist/docs/{workflows/03-control-flow.md → references/docs-workflows-control-flow.md} +58 -56
- package/dist/docs/{workflows/09-error-handling.md → references/docs-workflows-error-handling.md} +13 -15
- package/dist/docs/{workflows/07-human-in-the-loop.md → references/docs-workflows-human-in-the-loop.md} +11 -12
- package/dist/docs/{workflows/10-input-data-mapping.md → references/docs-workflows-input-data-mapping.md} +12 -14
- package/dist/docs/{workflows/01-overview.md → references/docs-workflows-overview.md} +31 -52
- package/dist/docs/{workflows/05-snapshots.md → references/docs-workflows-snapshots.md} +3 -5
- package/dist/docs/{workflows/06-suspend-and-resume.md → references/docs-workflows-suspend-and-resume.md} +12 -12
- package/dist/docs/{workflows/08-time-travel.md → references/docs-workflows-time-travel.md} +2 -5
- package/dist/docs/{workflows/02-workflow-state.md → references/docs-workflows-workflow-state.md} +4 -6
- package/dist/docs/{workspace/02-filesystem.md → references/docs-workspace-filesystem.md} +3 -8
- package/dist/docs/{workspace/01-overview.md → references/docs-workspace-overview.md} +10 -16
- package/dist/docs/{workspace/03-sandbox.md → references/docs-workspace-sandbox.md} +2 -4
- package/dist/docs/{workspace/05-search.md → references/docs-workspace-search.md} +20 -22
- package/dist/docs/{workspace/04-skills.md → references/docs-workspace-skills.md} +6 -9
- package/dist/docs/{guides/01-ai-sdk.md → references/guides-agent-frameworks-ai-sdk.md} +25 -9
- package/dist/docs/references/reference-agents-agent.md +142 -0
- package/dist/docs/references/reference-agents-generate.md +174 -0
- package/dist/docs/references/reference-agents-generateLegacy.md +176 -0
- package/dist/docs/references/reference-agents-getDefaultGenerateOptions.md +36 -0
- package/dist/docs/references/reference-agents-getDefaultOptions.md +34 -0
- package/dist/docs/references/reference-agents-getDefaultStreamOptions.md +36 -0
- package/dist/docs/references/reference-agents-getDescription.md +21 -0
- package/dist/docs/references/reference-agents-getInstructions.md +34 -0
- package/dist/docs/references/reference-agents-getLLM.md +37 -0
- package/dist/docs/references/reference-agents-getMemory.md +34 -0
- package/dist/docs/references/reference-agents-getModel.md +34 -0
- package/dist/docs/references/reference-agents-getTools.md +34 -0
- package/dist/docs/references/reference-agents-getVoice.md +34 -0
- package/dist/docs/references/reference-agents-listAgents.md +35 -0
- package/dist/docs/references/reference-agents-listScorers.md +34 -0
- package/dist/docs/references/reference-agents-listTools.md +34 -0
- package/dist/docs/references/reference-agents-listWorkflows.md +34 -0
- package/dist/docs/references/reference-agents-network.md +136 -0
- package/dist/docs/references/reference-ai-sdk-chat-route.md +82 -0
- package/dist/docs/references/reference-ai-sdk-network-route.md +74 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-stream.md +232 -0
- package/dist/docs/references/reference-ai-sdk-with-mastra.md +59 -0
- package/dist/docs/references/reference-ai-sdk-workflow-route.md +79 -0
- package/dist/docs/references/reference-auth-auth0.md +73 -0
- package/dist/docs/references/reference-auth-clerk.md +36 -0
- package/dist/docs/references/reference-auth-firebase.md +80 -0
- package/dist/docs/references/reference-auth-jwt.md +26 -0
- package/dist/docs/references/reference-auth-supabase.md +33 -0
- package/dist/docs/references/reference-auth-workos.md +84 -0
- package/dist/docs/{cli/01-reference.md → references/reference-cli-mastra.md} +14 -28
- package/dist/docs/{client-js/01-reference.md → references/reference-client-js-agents.md} +3 -12
- package/dist/docs/{configuration.mdx/01-reference.md → references/reference-configuration.md} +71 -91
- package/dist/docs/references/reference-core-addGateway.md +42 -0
- package/dist/docs/references/reference-core-getAgent.md +21 -0
- package/dist/docs/references/reference-core-getAgentById.md +21 -0
- package/dist/docs/references/reference-core-getDeployer.md +22 -0
- package/dist/docs/references/reference-core-getGateway.md +38 -0
- package/dist/docs/references/reference-core-getGatewayById.md +41 -0
- package/dist/docs/references/reference-core-getLogger.md +22 -0
- package/dist/docs/references/reference-core-getMCPServer.md +45 -0
- package/dist/docs/references/reference-core-getMCPServerById.md +53 -0
- package/dist/docs/references/reference-core-getMemory.md +50 -0
- package/dist/docs/references/reference-core-getScorer.md +54 -0
- package/dist/docs/references/reference-core-getScorerById.md +54 -0
- package/dist/docs/references/reference-core-getServer.md +22 -0
- package/dist/docs/references/reference-core-getStorage.md +22 -0
- package/dist/docs/references/reference-core-getStoredAgentById.md +89 -0
- package/dist/docs/references/reference-core-getTelemetry.md +22 -0
- package/dist/docs/references/reference-core-getVector.md +22 -0
- package/dist/docs/references/reference-core-getWorkflow.md +40 -0
- package/dist/docs/references/reference-core-listAgents.md +21 -0
- package/dist/docs/references/reference-core-listGateways.md +40 -0
- package/dist/docs/references/reference-core-listLogs.md +38 -0
- package/dist/docs/references/reference-core-listLogsByRunId.md +36 -0
- package/dist/docs/references/reference-core-listMCPServers.md +51 -0
- package/dist/docs/references/reference-core-listMemory.md +56 -0
- package/dist/docs/references/reference-core-listScorers.md +29 -0
- package/dist/docs/references/reference-core-listStoredAgents.md +93 -0
- package/dist/docs/references/reference-core-listVectors.md +22 -0
- package/dist/docs/references/reference-core-listWorkflows.md +21 -0
- package/dist/docs/references/reference-core-mastra-class.md +66 -0
- package/dist/docs/references/reference-core-mastra-model-gateway.md +153 -0
- package/dist/docs/references/reference-core-setLogger.md +26 -0
- package/dist/docs/references/reference-core-setStorage.md +27 -0
- package/dist/docs/references/reference-deployer-cloudflare.md +56 -0
- package/dist/docs/references/reference-deployer-netlify.md +14 -0
- package/dist/docs/references/reference-deployer-vercel.md +39 -0
- package/dist/docs/references/reference-evals-answer-relevancy.md +105 -0
- package/dist/docs/references/reference-evals-answer-similarity.md +99 -0
- package/dist/docs/references/reference-evals-bias.md +120 -0
- package/dist/docs/references/reference-evals-completeness.md +137 -0
- package/dist/docs/references/reference-evals-content-similarity.md +101 -0
- package/dist/docs/references/reference-evals-context-precision.md +196 -0
- package/dist/docs/references/reference-evals-create-scorer.md +270 -0
- package/dist/docs/references/reference-evals-faithfulness.md +114 -0
- package/dist/docs/references/reference-evals-hallucination.md +220 -0
- package/dist/docs/references/reference-evals-keyword-coverage.md +128 -0
- package/dist/docs/references/reference-evals-mastra-scorer.md +123 -0
- package/dist/docs/references/reference-evals-run-evals.md +138 -0
- package/dist/docs/references/reference-evals-scorer-utils.md +330 -0
- package/dist/docs/references/reference-evals-textual-difference.md +113 -0
- package/dist/docs/references/reference-evals-tone-consistency.md +119 -0
- package/dist/docs/references/reference-evals-toxicity.md +123 -0
- package/dist/docs/{logging/01-reference.md → references/reference-logging-pino-logger.md} +16 -15
- package/dist/docs/references/reference-memory-deleteMessages.md +40 -0
- package/dist/docs/{memory/06-reference.md → references/reference-memory-memory-class.md} +28 -55
- package/dist/docs/references/reference-memory-observational-memory.md +217 -0
- package/dist/docs/references/reference-observability-tracing-bridges-otel.md +131 -0
- package/dist/docs/references/reference-observability-tracing-configuration.md +178 -0
- package/dist/docs/references/reference-observability-tracing-exporters-console-exporter.md +138 -0
- package/dist/docs/references/reference-observability-tracing-exporters-datadog.md +116 -0
- package/dist/docs/references/reference-observability-tracing-instances.md +109 -0
- package/dist/docs/references/reference-observability-tracing-interfaces.md +749 -0
- package/dist/docs/references/reference-observability-tracing-processors-sensitive-data-filter.md +144 -0
- package/dist/docs/references/reference-observability-tracing-spans.md +224 -0
- package/dist/docs/references/reference-processors-batch-parts-processor.md +61 -0
- package/dist/docs/references/reference-processors-language-detector.md +81 -0
- package/dist/docs/references/reference-processors-message-history-processor.md +85 -0
- package/dist/docs/references/reference-processors-moderation-processor.md +104 -0
- package/dist/docs/references/reference-processors-pii-detector.md +107 -0
- package/dist/docs/references/reference-processors-processor-interface.md +521 -0
- package/dist/docs/references/reference-processors-prompt-injection-detector.md +71 -0
- package/dist/docs/references/reference-processors-semantic-recall-processor.md +123 -0
- package/dist/docs/references/reference-processors-system-prompt-scrubber.md +80 -0
- package/dist/docs/references/reference-processors-token-limiter-processor.md +113 -0
- package/dist/docs/references/reference-processors-tool-call-filter.md +85 -0
- package/dist/docs/references/reference-processors-tool-search-processor.md +113 -0
- package/dist/docs/references/reference-processors-unicode-normalizer.md +62 -0
- package/dist/docs/references/reference-processors-working-memory-processor.md +154 -0
- package/dist/docs/references/reference-rag-database-config.md +264 -0
- package/dist/docs/references/reference-rag-embeddings.md +92 -0
- package/dist/docs/references/reference-server-mastra-server.md +298 -0
- package/dist/docs/references/reference-server-register-api-route.md +249 -0
- package/dist/docs/references/reference-storage-cloudflare-d1.md +218 -0
- package/dist/docs/references/reference-storage-composite.md +235 -0
- package/dist/docs/references/reference-storage-lance.md +131 -0
- package/dist/docs/references/reference-storage-libsql.md +135 -0
- package/dist/docs/references/reference-storage-mongodb.md +262 -0
- package/dist/docs/references/reference-storage-mssql.md +155 -0
- package/dist/docs/references/reference-storage-overview.md +121 -0
- package/dist/docs/references/reference-storage-postgresql.md +529 -0
- package/dist/docs/references/reference-storage-upstash.md +160 -0
- package/dist/docs/references/reference-streaming-ChunkType.md +292 -0
- package/dist/docs/references/reference-streaming-agents-MastraModelOutput.md +182 -0
- package/dist/docs/references/reference-streaming-agents-streamLegacy.md +142 -0
- package/dist/docs/references/reference-streaming-workflows-observeStream.md +42 -0
- package/dist/docs/references/reference-streaming-workflows-resumeStream.md +61 -0
- package/dist/docs/references/reference-streaming-workflows-stream.md +87 -0
- package/dist/docs/references/reference-streaming-workflows-timeTravelStream.md +142 -0
- package/dist/docs/{templates/01-reference.md → references/reference-templates-overview.md} +8 -17
- package/dist/docs/references/reference-tools-client.md +228 -0
- package/dist/docs/references/reference-tools-create-tool.md +237 -0
- package/dist/docs/references/reference-tools-graph-rag-tool.md +185 -0
- package/dist/docs/references/reference-tools-mcp-client.md +964 -0
- package/dist/docs/references/reference-tools-mcp-server.md +1275 -0
- package/dist/docs/references/reference-tools-vector-query-tool.md +459 -0
- package/dist/docs/references/reference-vectors-libsql.md +305 -0
- package/dist/docs/references/reference-vectors-mongodb.md +295 -0
- package/dist/docs/references/reference-vectors-pg.md +408 -0
- package/dist/docs/references/reference-vectors-upstash.md +294 -0
- package/dist/docs/references/reference-voice-composite-voice.md +121 -0
- package/dist/docs/references/reference-voice-mastra-voice.md +313 -0
- package/dist/docs/references/reference-voice-voice.addInstructions.md +56 -0
- package/dist/docs/references/reference-voice-voice.addTools.md +67 -0
- package/dist/docs/references/reference-voice-voice.connect.md +94 -0
- package/dist/docs/references/reference-voice-voice.events.md +37 -0
- package/dist/docs/references/reference-voice-voice.listen.md +164 -0
- package/dist/docs/references/reference-voice-voice.on.md +111 -0
- package/dist/docs/references/reference-voice-voice.speak.md +157 -0
- package/dist/docs/references/reference-workflows-run-methods-cancel.md +86 -0
- package/dist/docs/references/reference-workflows-run-methods-restart.md +33 -0
- package/dist/docs/references/reference-workflows-run-methods-resume.md +59 -0
- package/dist/docs/references/reference-workflows-run-methods-start.md +58 -0
- package/dist/docs/references/reference-workflows-run-methods-startAsync.md +67 -0
- package/dist/docs/references/reference-workflows-run-methods-timeTravel.md +142 -0
- package/dist/docs/references/reference-workflows-run.md +59 -0
- package/dist/docs/references/reference-workflows-step.md +117 -0
- package/dist/docs/references/reference-workflows-workflow-methods-branch.md +25 -0
- package/dist/docs/references/reference-workflows-workflow-methods-commit.md +17 -0
- package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +63 -0
- package/dist/docs/references/reference-workflows-workflow-methods-dountil.md +25 -0
- package/dist/docs/references/reference-workflows-workflow-methods-dowhile.md +25 -0
- package/dist/docs/references/reference-workflows-workflow-methods-foreach.md +88 -0
- package/dist/docs/references/reference-workflows-workflow-methods-map.md +93 -0
- package/dist/docs/references/reference-workflows-workflow-methods-parallel.md +21 -0
- package/dist/docs/references/reference-workflows-workflow-methods-sleep.md +35 -0
- package/dist/docs/references/reference-workflows-workflow-methods-sleepUntil.md +35 -0
- package/dist/docs/references/reference-workflows-workflow-methods-then.md +21 -0
- package/dist/docs/references/reference-workflows-workflow.md +157 -0
- package/dist/docs/references/reference-workspace-filesystem.md +200 -0
- package/dist/docs/references/reference-workspace-local-filesystem.md +300 -0
- package/dist/docs/references/reference-workspace-local-sandbox.md +283 -0
- package/dist/docs/references/reference-workspace-sandbox.md +79 -0
- package/dist/docs/references/reference-workspace-workspace-class.md +247 -0
- package/dist/docs/references/reference.md +243 -0
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/llm/index.cjs +9 -5
- package/dist/llm/index.d.ts +1 -1
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/llm/model/index.d.ts +1 -1
- package/dist/llm/model/index.d.ts.map +1 -1
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +17 -0
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/memory/types.d.ts +3 -2
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/processors/index.cjs +41 -41
- package/dist/processors/index.js +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +33 -33
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/test-utils/llm-mock.cjs +12 -12
- package/dist/test-utils/llm-mock.js +3 -3
- package/dist/{token-6GSAFR2W-TOUJCAPY.js → token-APYSY3BW-QJCV2XQG.js} +11 -11
- package/dist/token-APYSY3BW-QJCV2XQG.js.map +1 -0
- package/dist/{token-6GSAFR2W-GERJXNN5.cjs → token-APYSY3BW-UBKUGJQP.cjs} +14 -14
- package/dist/token-APYSY3BW-UBKUGJQP.cjs.map +1 -0
- package/dist/token-util-RMHT2CPJ-S2YMG7N3.js +8 -0
- package/dist/token-util-RMHT2CPJ-S2YMG7N3.js.map +1 -0
- package/dist/token-util-RMHT2CPJ-WV2T74WQ.cjs +10 -0
- package/dist/token-util-RMHT2CPJ-WV2T74WQ.cjs.map +1 -0
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/vector/index.cjs +11 -11
- package/dist/vector/index.js +3 -3
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +25 -25
- package/dist/workflows/index.js +1 -1
- package/package.json +4 -5
- package/dist/chunk-3LRUJTH3.cjs.map +0 -1
- package/dist/chunk-5HDIPOLV.js.map +0 -1
- package/dist/chunk-ARQG4ZSD.cjs.map +0 -1
- package/dist/chunk-DG6C6ZTL.cjs.map +0 -1
- package/dist/chunk-EY3WXGUD.js.map +0 -1
- package/dist/chunk-IPXNR6RQ.js.map +0 -1
- package/dist/chunk-NYC6PYZF.js.map +0 -1
- package/dist/chunk-X5HU5YVN.js +0 -250
- package/dist/chunk-X5HU5YVN.js.map +0 -1
- package/dist/chunk-XC7WIZBL.js.map +0 -1
- package/dist/chunk-Z2OKCLGV.cjs.map +0 -1
- package/dist/chunk-Z4PGSIZ5.cjs.map +0 -1
- package/dist/chunk-ZZF2IKZJ.cjs +0 -252
- package/dist/chunk-ZZF2IKZJ.cjs.map +0 -1
- package/dist/docs/README.md +0 -57
- package/dist/docs/agents/11-reference.md +0 -854
- package/dist/docs/ai-sdk/01-reference.md +0 -490
- package/dist/docs/auth/01-reference.md +0 -308
- package/dist/docs/core/01-reference.md +0 -1283
- package/dist/docs/deployer/01-reference.md +0 -128
- package/dist/docs/evals/04-reference.md +0 -2137
- package/dist/docs/index.mdx/01-reference.md +0 -14
- package/dist/docs/mcp/02-publishing-mcp-server.md +0 -111
- package/dist/docs/observability/15-reference.md +0 -1831
- package/dist/docs/processors/01-reference.md +0 -1418
- package/dist/docs/rag/06-reference.md +0 -342
- package/dist/docs/server/16-reference.md +0 -513
- package/dist/docs/storage/01-reference.md +0 -2022
- package/dist/docs/streaming/04-reference.md +0 -724
- package/dist/docs/tools/01-reference.md +0 -3136
- package/dist/docs/vectors/01-reference.md +0 -942
- package/dist/docs/voice/05-reference.md +0 -1043
- package/dist/docs/workflows/11-reference.md +0 -1044
- package/dist/docs/workspace/06-reference.md +0 -946
- package/dist/token-6GSAFR2W-GERJXNN5.cjs.map +0 -1
- package/dist/token-6GSAFR2W-TOUJCAPY.js.map +0 -1
- package/dist/token-util-NEHG7TUY-R2XAU2MF.cjs +0 -10
- package/dist/token-util-NEHG7TUY-R2XAU2MF.cjs.map +0 -1
- package/dist/token-util-NEHG7TUY-TZ426VZB.js +0 -8
- package/dist/token-util-NEHG7TUY-TZ426VZB.js.map +0 -1
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# Workspace Class
|
|
2
|
+
|
|
3
|
+
The `Workspace` class combines a filesystem and sandbox to provide agents with file storage and command execution capabilities. It also supports BM25 and vector search for indexed content.
|
|
4
|
+
|
|
5
|
+
## Usage Example
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { Workspace, LocalFilesystem, LocalSandbox } from '@mastra/core/workspace';
|
|
9
|
+
|
|
10
|
+
const workspace = new Workspace({
|
|
11
|
+
id: 'my-workspace',
|
|
12
|
+
name: 'My Workspace',
|
|
13
|
+
filesystem: new LocalFilesystem({
|
|
14
|
+
basePath: './workspace',
|
|
15
|
+
}),
|
|
16
|
+
sandbox: new LocalSandbox({
|
|
17
|
+
workingDirectory: './workspace',
|
|
18
|
+
}),
|
|
19
|
+
bm25: true,
|
|
20
|
+
autoIndexPaths: ['/docs'],
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Constructor parameters
|
|
25
|
+
|
|
26
|
+
**id?:** (`string`): Unique identifier for the workspace (Default: `Auto-generated`)
|
|
27
|
+
|
|
28
|
+
**name?:** (`string`): Human-readable name (Default: `workspace-{id}`)
|
|
29
|
+
|
|
30
|
+
**filesystem?:** (`WorkspaceFilesystem`): Filesystem provider instance (e.g., LocalFilesystem)
|
|
31
|
+
|
|
32
|
+
**sandbox?:** (`WorkspaceSandbox`): Sandbox provider instance (e.g., LocalSandbox)
|
|
33
|
+
|
|
34
|
+
**bm25?:** (`boolean | BM25Config`): Enable BM25 keyword search. Pass true for defaults or a config object. (Default: `undefined`)
|
|
35
|
+
|
|
36
|
+
**vectorStore?:** (`MastraVector`): Vector store for semantic search
|
|
37
|
+
|
|
38
|
+
**embedder?:** (`(text: string) => Promise<number[]>`): Embedder function for generating vectors. Required when vectorStore is provided.
|
|
39
|
+
|
|
40
|
+
**autoIndexPaths?:** (`string[]`): Paths to auto-index on init()
|
|
41
|
+
|
|
42
|
+
**skills?:** (`string[] | ((context: SkillsContext) => string[] | Promise<string[]>)`): Paths where SKILL.md files are located. This can be a static array or an async function that resolves paths dynamically.
|
|
43
|
+
|
|
44
|
+
**tools?:** (`WorkspaceToolsConfig`): Per-tool configuration for enabling tools and setting safety options
|
|
45
|
+
|
|
46
|
+
**operationTimeout?:** (`number`): Timeout for operations in milliseconds
|
|
47
|
+
|
|
48
|
+
## Tool configuration
|
|
49
|
+
|
|
50
|
+
The `tools` option accepts a `WorkspaceToolsConfig` object that controls which workspace tools are enabled and their safety settings.
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
import { WORKSPACE_TOOLS } from '@mastra/core/workspace';
|
|
54
|
+
|
|
55
|
+
tools: {
|
|
56
|
+
// Global defaults (apply to all tools)
|
|
57
|
+
enabled: true,
|
|
58
|
+
requireApproval: false,
|
|
59
|
+
|
|
60
|
+
// Per-tool overrides using WORKSPACE_TOOLS constants
|
|
61
|
+
[WORKSPACE_TOOLS.FILESYSTEM.WRITE_FILE]: {
|
|
62
|
+
requireApproval: true,
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The config object has two parts:
|
|
68
|
+
|
|
69
|
+
- **Global defaults** (`enabled`, `requireApproval`) - Apply to all tools unless overridden
|
|
70
|
+
- **Per-tool overrides** - Use `WORKSPACE_TOOLS` constants as keys to configure individual tools
|
|
71
|
+
|
|
72
|
+
See [workspace overview](https://mastra.ai/docs/workspace/overview) for more examples.
|
|
73
|
+
|
|
74
|
+
### Per-tool options
|
|
75
|
+
|
|
76
|
+
Each tool can be configured with these options:
|
|
77
|
+
|
|
78
|
+
**enabled?:** (`boolean`): Whether the tool is available to agents (Default: `true`)
|
|
79
|
+
|
|
80
|
+
**requireApproval?:** (`boolean`): Whether the tool requires user approval before execution (Default: `false`)
|
|
81
|
+
|
|
82
|
+
**requireReadBeforeWrite?:** (`boolean`): For write tools: require reading the file first to prevent overwrites (Default: `false`)
|
|
83
|
+
|
|
84
|
+
## Properties
|
|
85
|
+
|
|
86
|
+
**id:** (`string`): Workspace identifier
|
|
87
|
+
|
|
88
|
+
**name:** (`string`): Workspace name
|
|
89
|
+
|
|
90
|
+
**status:** (`WorkspaceStatus`): 'pending' | 'initializing' | 'ready' | 'error' | 'destroying' | 'destroyed'
|
|
91
|
+
|
|
92
|
+
**filesystem:** (`WorkspaceFilesystem | undefined`): The filesystem provider
|
|
93
|
+
|
|
94
|
+
**sandbox:** (`WorkspaceSandbox | undefined`): The sandbox provider
|
|
95
|
+
|
|
96
|
+
**skills:** (`WorkspaceSkills | undefined`): Skills interface for accessing SKILL.md files
|
|
97
|
+
|
|
98
|
+
**canBM25:** (`boolean`): Whether BM25 search is available
|
|
99
|
+
|
|
100
|
+
**canVector:** (`boolean`): Whether vector search is available
|
|
101
|
+
|
|
102
|
+
**canHybrid:** (`boolean`): Whether hybrid search is available
|
|
103
|
+
|
|
104
|
+
## Methods
|
|
105
|
+
|
|
106
|
+
### Lifecycle
|
|
107
|
+
|
|
108
|
+
#### `init()`
|
|
109
|
+
|
|
110
|
+
Initialize the workspace and prepare resources.
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
await workspace.init();
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Calling `init()` is optional in most cases:
|
|
117
|
+
|
|
118
|
+
- **Sandbox**: Auto-starts on first `executeCommand()` call. Use `init()` to avoid first-command latency.
|
|
119
|
+
- **Filesystem**: Creates the base directory and runs any provider-specific setup. Some providers auto-create the directory on first operation.
|
|
120
|
+
- **Search**: Required only if using `autoIndexPaths` for auto-indexing.
|
|
121
|
+
|
|
122
|
+
Initialization performs:
|
|
123
|
+
|
|
124
|
+
- Starts the filesystem provider (creates base directory if needed)
|
|
125
|
+
- Starts the sandbox provider (creates working directory, sets up isolation if configured)
|
|
126
|
+
- Indexes files from `autoIndexPaths` for search
|
|
127
|
+
|
|
128
|
+
#### `destroy()`
|
|
129
|
+
|
|
130
|
+
Destroy the workspace and clean up resources.
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
await workspace.destroy();
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Search operations
|
|
137
|
+
|
|
138
|
+
#### `index(path, content, options?)`
|
|
139
|
+
|
|
140
|
+
Index content for search.
|
|
141
|
+
|
|
142
|
+
```typescript
|
|
143
|
+
await workspace.index('/docs/guide.md', 'Guide content...');
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
#### `search(query, options?)`
|
|
147
|
+
|
|
148
|
+
Search indexed content.
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
const results = await workspace.search('password reset', {
|
|
152
|
+
topK: 10,
|
|
153
|
+
mode: 'hybrid',
|
|
154
|
+
});
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Utility
|
|
158
|
+
|
|
159
|
+
#### `getInfo()`
|
|
160
|
+
|
|
161
|
+
Get workspace information.
|
|
162
|
+
|
|
163
|
+
```typescript
|
|
164
|
+
const info = await workspace.getInfo();
|
|
165
|
+
// { id, name, status, createdAt, lastAccessedAt, filesystem?, sandbox? }
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
#### `getPathContext()`
|
|
169
|
+
|
|
170
|
+
Get information about filesystem and sandbox paths, including instructions for agents.
|
|
171
|
+
|
|
172
|
+
```typescript
|
|
173
|
+
const context = workspace.getPathContext();
|
|
174
|
+
// { filesystem?, sandbox?, instructions }
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Returns:** `PathContext`
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
interface PathContext {
|
|
181
|
+
filesystem?: {
|
|
182
|
+
provider: string;
|
|
183
|
+
basePath?: string;
|
|
184
|
+
};
|
|
185
|
+
sandbox?: {
|
|
186
|
+
provider: string;
|
|
187
|
+
workingDirectory?: string;
|
|
188
|
+
};
|
|
189
|
+
instructions: string;
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
The `instructions` field contains provider-generated descriptions combined from the filesystem and sandbox. These instructions are included in tool descriptions to help agents understand the execution context.
|
|
194
|
+
|
|
195
|
+
#### `getToolsConfig()`
|
|
196
|
+
|
|
197
|
+
Get the tools configuration.
|
|
198
|
+
|
|
199
|
+
```typescript
|
|
200
|
+
const config = workspace.getToolsConfig();
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Agent tools
|
|
204
|
+
|
|
205
|
+
A workspace provides tools to agents based on what is configured.
|
|
206
|
+
|
|
207
|
+
### Filesystem tools
|
|
208
|
+
|
|
209
|
+
Added when a filesystem is configured:
|
|
210
|
+
|
|
211
|
+
| Tool | Description |
|
|
212
|
+
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
213
|
+
| `mastra_workspace_read_file` | Read file contents. Supports optional line range for reading specific portions of large files. |
|
|
214
|
+
| `mastra_workspace_write_file` | Create or overwrite a file with new content. Creates parent directories automatically. |
|
|
215
|
+
| `mastra_workspace_edit_file` | Edit an existing file by finding and replacing text. Useful for targeted changes without rewriting the entire file. |
|
|
216
|
+
| `mastra_workspace_list_files` | List directory contents as a tree structure. Supports recursive listing with depth limits. |
|
|
217
|
+
| `mastra_workspace_delete` | Delete a file or directory. Supports recursive deletion for directories. |
|
|
218
|
+
| `mastra_workspace_file_stat` | Get metadata about a file or directory including size, type, and modification time. |
|
|
219
|
+
| `mastra_workspace_mkdir` | Create a directory. Creates parent directories automatically if they don't exist. |
|
|
220
|
+
|
|
221
|
+
Write tools (`write_file`, `edit_file`, `delete`, `mkdir`) are excluded when the filesystem is in read-only mode.
|
|
222
|
+
|
|
223
|
+
### Sandbox tools
|
|
224
|
+
|
|
225
|
+
Added when a sandbox is configured:
|
|
226
|
+
|
|
227
|
+
| Tool | Description |
|
|
228
|
+
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
229
|
+
| `mastra_workspace_execute_command` | Execute a shell command with arguments. Returns stdout, stderr, and exit code. Supports timeouts and streaming output. |
|
|
230
|
+
|
|
231
|
+
### Search tools
|
|
232
|
+
|
|
233
|
+
Added when BM25 or vector search is configured:
|
|
234
|
+
|
|
235
|
+
| Tool | Description |
|
|
236
|
+
| ------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
237
|
+
| `mastra_workspace_search` | Search indexed content using keyword (BM25), semantic (vector), or hybrid search. Returns ranked results with scores. |
|
|
238
|
+
| `mastra_workspace_index` | Index content for search. Associates content with a path for later retrieval. |
|
|
239
|
+
|
|
240
|
+
The `index` tool is excluded when the filesystem is in read-only mode.
|
|
241
|
+
|
|
242
|
+
## Related
|
|
243
|
+
|
|
244
|
+
- [Workspace overview](https://mastra.ai/docs/workspace/overview)
|
|
245
|
+
- [Search and indexing](https://mastra.ai/docs/workspace/search)
|
|
246
|
+
- [Filesystem reference](https://mastra.ai/reference/workspace/filesystem)
|
|
247
|
+
- [Sandbox reference](https://mastra.ai/reference/workspace/sandbox)
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# Reference
|
|
2
|
+
|
|
3
|
+
The Reference section provides documentation of Mastra's API, including parameters, types and usage examples.
|
|
4
|
+
|
|
5
|
+
- [Agent Class](https://mastra.ai/reference/agents/agent)
|
|
6
|
+
- [.getDefaultGenerateOptionsLegacy()](https://mastra.ai/reference/agents/getDefaultGenerateOptions)
|
|
7
|
+
- [.getDefaultOptions()](https://mastra.ai/reference/agents/getDefaultOptions)
|
|
8
|
+
- [.getDefaultStreamOptionsLegacy()](https://mastra.ai/reference/agents/getDefaultStreamOptions)
|
|
9
|
+
- [.getDescription()](https://mastra.ai/reference/agents/getDescription)
|
|
10
|
+
- [.getInstructions()](https://mastra.ai/reference/agents/getInstructions)
|
|
11
|
+
- [.getLLM()](https://mastra.ai/reference/agents/getLLM)
|
|
12
|
+
- [.getMemory()](https://mastra.ai/reference/agents/getMemory)
|
|
13
|
+
- [.getModel()](https://mastra.ai/reference/agents/getModel)
|
|
14
|
+
- [.getVoice()](https://mastra.ai/reference/agents/getVoice)
|
|
15
|
+
- [.generate()](https://mastra.ai/reference/agents/generate)
|
|
16
|
+
- [.generateLegacy()](https://mastra.ai/reference/agents/generateLegacy)
|
|
17
|
+
- [.listAgents()](https://mastra.ai/reference/agents/listAgents)
|
|
18
|
+
- [.listScorers()](https://mastra.ai/reference/agents/listScorers)
|
|
19
|
+
- [.listTools()](https://mastra.ai/reference/agents/listTools)
|
|
20
|
+
- [.listWorkflows()](https://mastra.ai/reference/agents/listWorkflows)
|
|
21
|
+
- [.network()](https://mastra.ai/reference/agents/network)
|
|
22
|
+
- [chatRoute()](https://mastra.ai/reference/ai-sdk/chat-route)
|
|
23
|
+
- [handleChatStream()](https://mastra.ai/reference/ai-sdk/handle-chat-stream)
|
|
24
|
+
- [handleNetworkStream()](https://mastra.ai/reference/ai-sdk/handle-network-stream)
|
|
25
|
+
- [handleWorkflowStream()](https://mastra.ai/reference/ai-sdk/handle-workflow-stream)
|
|
26
|
+
- [networkRoute()](https://mastra.ai/reference/ai-sdk/network-route)
|
|
27
|
+
- [toAISdkStream()](https://mastra.ai/reference/ai-sdk/to-ai-sdk-stream)
|
|
28
|
+
- [toAISdkV4Messages()](https://mastra.ai/reference/ai-sdk/to-ai-sdk-v4-messages)
|
|
29
|
+
- [toAISdkV5Messages()](https://mastra.ai/reference/ai-sdk/to-ai-sdk-v5-messages)
|
|
30
|
+
- [withMastra()](https://mastra.ai/reference/ai-sdk/with-mastra)
|
|
31
|
+
- [workflowRoute()](https://mastra.ai/reference/ai-sdk/workflow-route)
|
|
32
|
+
- [Auth0](https://mastra.ai/reference/auth/auth0)
|
|
33
|
+
- [Clerk](https://mastra.ai/reference/auth/clerk)
|
|
34
|
+
- [Firebase](https://mastra.ai/reference/auth/firebase)
|
|
35
|
+
- [JSON Web Token](https://mastra.ai/reference/auth/jwt)
|
|
36
|
+
- [Supabase](https://mastra.ai/reference/auth/supabase)
|
|
37
|
+
- [WorkOS](https://mastra.ai/reference/auth/workos)
|
|
38
|
+
- [create-mastra](https://mastra.ai/reference/cli/create-mastra)
|
|
39
|
+
- [mastra](https://mastra.ai/reference/cli/mastra)
|
|
40
|
+
- [Agents API](https://mastra.ai/reference/client-js/agents)
|
|
41
|
+
- [Error Handling](https://mastra.ai/reference/client-js/error-handling)
|
|
42
|
+
- [Logs API](https://mastra.ai/reference/client-js/logs)
|
|
43
|
+
- [Mastra Client SDK](https://mastra.ai/reference/client-js/mastra-client)
|
|
44
|
+
- [Memory API](https://mastra.ai/reference/client-js/memory)
|
|
45
|
+
- [Observability API](https://mastra.ai/reference/client-js/observability)
|
|
46
|
+
- [Telemetry API](https://mastra.ai/reference/client-js/telemetry)
|
|
47
|
+
- [Tools API](https://mastra.ai/reference/client-js/tools)
|
|
48
|
+
- [Vectors API](https://mastra.ai/reference/client-js/vectors)
|
|
49
|
+
- [Workflows API](https://mastra.ai/reference/client-js/workflows)
|
|
50
|
+
- [Mastra Class](https://mastra.ai/reference/core/mastra-class)
|
|
51
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
52
|
+
- [.addGateway()](https://mastra.ai/reference/core/addGateway)
|
|
53
|
+
- [.getAgent()](https://mastra.ai/reference/core/getAgent)
|
|
54
|
+
- [.getAgentById()](https://mastra.ai/reference/core/getAgentById)
|
|
55
|
+
- [.getDeployer()](https://mastra.ai/reference/core/getDeployer)
|
|
56
|
+
- [.getGateway()](https://mastra.ai/reference/core/getGateway)
|
|
57
|
+
- [.getGatewayById()](https://mastra.ai/reference/core/getGatewayById)
|
|
58
|
+
- [.getLogger()](https://mastra.ai/reference/core/getLogger)
|
|
59
|
+
- [.getMCPServer()](https://mastra.ai/reference/core/getMCPServer)
|
|
60
|
+
- [.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById)
|
|
61
|
+
- [.getMemory()](https://mastra.ai/reference/core/getMemory)
|
|
62
|
+
- [.getScorer()](https://mastra.ai/reference/core/getScorer)
|
|
63
|
+
- [.getScorerById()](https://mastra.ai/reference/core/getScorerById)
|
|
64
|
+
- [.getServer()](https://mastra.ai/reference/core/getServer)
|
|
65
|
+
- [.getStorage()](https://mastra.ai/reference/core/getStorage)
|
|
66
|
+
- [.getStoredAgentById()](https://mastra.ai/reference/core/getStoredAgentById)
|
|
67
|
+
- [.getTelemetry()](https://mastra.ai/reference/core/getTelemetry)
|
|
68
|
+
- [.getVector()](https://mastra.ai/reference/core/getVector)
|
|
69
|
+
- [.getWorkflow()](https://mastra.ai/reference/core/getWorkflow)
|
|
70
|
+
- [.listAgents()](https://mastra.ai/reference/core/listAgents)
|
|
71
|
+
- [.listGateways()](https://mastra.ai/reference/core/listGateways)
|
|
72
|
+
- [.listLogs()](https://mastra.ai/reference/core/listLogs)
|
|
73
|
+
- [.listLogsByRunId()](https://mastra.ai/reference/core/listLogsByRunId)
|
|
74
|
+
- [.listMCPServers()](https://mastra.ai/reference/core/listMCPServers)
|
|
75
|
+
- [.listMemory()](https://mastra.ai/reference/core/listMemory)
|
|
76
|
+
- [.listScorers()](https://mastra.ai/reference/core/listScorers)
|
|
77
|
+
- [.listStoredAgents()](https://mastra.ai/reference/core/listStoredAgents)
|
|
78
|
+
- [.listVectors()](https://mastra.ai/reference/core/listVectors)
|
|
79
|
+
- [.listWorkflows()](https://mastra.ai/reference/core/listWorkflows)
|
|
80
|
+
- [.setLogger()](https://mastra.ai/reference/core/setLogger)
|
|
81
|
+
- [.setStorage()](https://mastra.ai/reference/core/setStorage)
|
|
82
|
+
- [Cloudflare](https://mastra.ai/reference/deployer/cloudflare)
|
|
83
|
+
- [Deployer](https://mastra.ai/reference/deployer)
|
|
84
|
+
- [Netlify](https://mastra.ai/reference/deployer/netlify)
|
|
85
|
+
- [Vercel](https://mastra.ai/reference/deployer/vercel)
|
|
86
|
+
- [Answer Relevancy Scorer](https://mastra.ai/reference/evals/answer-relevancy)
|
|
87
|
+
- [Answer Similarity Scorer](https://mastra.ai/reference/evals/answer-similarity)
|
|
88
|
+
- [Bias](https://mastra.ai/reference/evals/bias)
|
|
89
|
+
- [Completeness](https://mastra.ai/reference/evals/completeness)
|
|
90
|
+
- [Content Similarity Scorer](https://mastra.ai/reference/evals/content-similarity)
|
|
91
|
+
- [Context Precision Scorer](https://mastra.ai/reference/evals/context-precision)
|
|
92
|
+
- [Context Relevance Scorer](https://mastra.ai/reference/evals/context-relevance)
|
|
93
|
+
- [createScorer](https://mastra.ai/reference/evals/create-scorer)
|
|
94
|
+
- [Faithfulness](https://mastra.ai/reference/evals/faithfulness)
|
|
95
|
+
- [Hallucination](https://mastra.ai/reference/evals/hallucination)
|
|
96
|
+
- [Keyword Coverage Scorer](https://mastra.ai/reference/evals/keyword-coverage)
|
|
97
|
+
- [MastraScorer](https://mastra.ai/reference/evals/mastra-scorer)
|
|
98
|
+
- [Noise Sensitivity Scorer](https://mastra.ai/reference/evals/noise-sensitivity)
|
|
99
|
+
- [Prompt Alignment Scorer](https://mastra.ai/reference/evals/prompt-alignment)
|
|
100
|
+
- [runEvals](https://mastra.ai/reference/evals/run-evals)
|
|
101
|
+
- [Scorer Utils](https://mastra.ai/reference/evals/scorer-utils)
|
|
102
|
+
- [Textual Difference Scorer](https://mastra.ai/reference/evals/textual-difference)
|
|
103
|
+
- [Tone Consistency Scorer](https://mastra.ai/reference/evals/tone-consistency)
|
|
104
|
+
- [Tool Call Accuracy Scorers](https://mastra.ai/reference/evals/tool-call-accuracy)
|
|
105
|
+
- [Toxicity](https://mastra.ai/reference/evals/toxicity)
|
|
106
|
+
- [Memory Class](https://mastra.ai/reference/memory/memory-class)
|
|
107
|
+
- [Observational Memory](https://mastra.ai/reference/memory/observational-memory)
|
|
108
|
+
- [.createThread()](https://mastra.ai/reference/memory/createThread)
|
|
109
|
+
- [.deleteMessages()](https://mastra.ai/reference/memory/deleteMessages)
|
|
110
|
+
- [.getThreadById()](https://mastra.ai/reference/memory/getThreadById)
|
|
111
|
+
- [.listThreads()](https://mastra.ai/reference/memory/listThreads)
|
|
112
|
+
- [.recall()](https://mastra.ai/reference/memory/recall)
|
|
113
|
+
- [PinoLogger](https://mastra.ai/reference/logging/pino-logger)
|
|
114
|
+
- [Configuration](https://mastra.ai/reference/observability/tracing/configuration)
|
|
115
|
+
- [Instances](https://mastra.ai/reference/observability/tracing/instances)
|
|
116
|
+
- [Interfaces](https://mastra.ai/reference/observability/tracing/interfaces)
|
|
117
|
+
- [Spans](https://mastra.ai/reference/observability/tracing/spans)
|
|
118
|
+
- [BatchPartsProcessor](https://mastra.ai/reference/processors/batch-parts-processor)
|
|
119
|
+
- [LanguageDetector](https://mastra.ai/reference/processors/language-detector)
|
|
120
|
+
- [MessageHistory](https://mastra.ai/reference/processors/message-history-processor)
|
|
121
|
+
- [ModerationProcessor](https://mastra.ai/reference/processors/moderation-processor)
|
|
122
|
+
- [PIIDetector](https://mastra.ai/reference/processors/pii-detector)
|
|
123
|
+
- [Processor Interface](https://mastra.ai/reference/processors/processor-interface)
|
|
124
|
+
- [PromptInjectionDetector](https://mastra.ai/reference/processors/prompt-injection-detector)
|
|
125
|
+
- [SemanticRecall](https://mastra.ai/reference/processors/semantic-recall-processor)
|
|
126
|
+
- [SystemPromptScrubber](https://mastra.ai/reference/processors/system-prompt-scrubber)
|
|
127
|
+
- [TokenLimiterProcessor](https://mastra.ai/reference/processors/token-limiter-processor)
|
|
128
|
+
- [ToolCallFilter](https://mastra.ai/reference/processors/tool-call-filter)
|
|
129
|
+
- [ToolSearchProcessor](https://mastra.ai/reference/processors/tool-search-processor)
|
|
130
|
+
- [UnicodeNormalizer](https://mastra.ai/reference/processors/unicode-normalizer)
|
|
131
|
+
- [WorkingMemory](https://mastra.ai/reference/processors/working-memory-processor)
|
|
132
|
+
- [DatabaseConfig](https://mastra.ai/reference/rag/database-config)
|
|
133
|
+
- [Embed](https://mastra.ai/reference/rag/embeddings)
|
|
134
|
+
- [ExtractParams](https://mastra.ai/reference/rag/extract-params)
|
|
135
|
+
- [GraphRAG](https://mastra.ai/reference/rag/graph-rag)
|
|
136
|
+
- [MDocument](https://mastra.ai/reference/rag/document)
|
|
137
|
+
- [Metadata Filters](https://mastra.ai/reference/rag/metadata-filters)
|
|
138
|
+
- [.chunk()](https://mastra.ai/reference/rag/chunk)
|
|
139
|
+
- [rerank()](https://mastra.ai/reference/rag/rerank)
|
|
140
|
+
- [rerankWithScorer()](https://mastra.ai/reference/rag/rerankWithScorer)
|
|
141
|
+
- [createRoute()](https://mastra.ai/reference/server/create-route)
|
|
142
|
+
- [Express Adapter](https://mastra.ai/reference/server/express-adapter)
|
|
143
|
+
- [Fastify Adapter](https://mastra.ai/reference/server/fastify-adapter)
|
|
144
|
+
- [Hono Adapter](https://mastra.ai/reference/server/hono-adapter)
|
|
145
|
+
- [Koa Adapter](https://mastra.ai/reference/server/koa-adapter)
|
|
146
|
+
- [MastraServer](https://mastra.ai/reference/server/mastra-server)
|
|
147
|
+
- [Server Routes](https://mastra.ai/reference/server/routes)
|
|
148
|
+
- [Overview](https://mastra.ai/reference/storage/overview)
|
|
149
|
+
- [Composite Storage](https://mastra.ai/reference/storage/composite)
|
|
150
|
+
- [Cloudflare D1 Storage](https://mastra.ai/reference/storage/cloudflare-d1)
|
|
151
|
+
- [Cloudflare KV Storage](https://mastra.ai/reference/storage/cloudflare)
|
|
152
|
+
- [Convex Storage](https://mastra.ai/reference/storage/convex)
|
|
153
|
+
- [DynamoDB Storage](https://mastra.ai/reference/storage/dynamodb)
|
|
154
|
+
- [LanceDB Storage](https://mastra.ai/reference/storage/lance)
|
|
155
|
+
- [libSQL Storage](https://mastra.ai/reference/storage/libsql)
|
|
156
|
+
- [MongoDB Storage](https://mastra.ai/reference/storage/mongodb)
|
|
157
|
+
- [MSSQL Storage](https://mastra.ai/reference/storage/mssql)
|
|
158
|
+
- [PostgreSQL Storage](https://mastra.ai/reference/storage/postgresql)
|
|
159
|
+
- [Upstash Storage](https://mastra.ai/reference/storage/upstash)
|
|
160
|
+
- [Workspace Class](https://mastra.ai/reference/workspace/workspace-class)
|
|
161
|
+
- [LocalFilesystem](https://mastra.ai/reference/workspace/local-filesystem)
|
|
162
|
+
- [LocalSandbox](https://mastra.ai/reference/workspace/local-sandbox)
|
|
163
|
+
- [WorkspaceFilesystem](https://mastra.ai/reference/workspace/filesystem)
|
|
164
|
+
- [WorkspaceSandbox](https://mastra.ai/reference/workspace/sandbox)
|
|
165
|
+
- [.stream()](https://mastra.ai/reference/streaming/agents/stream)
|
|
166
|
+
- [.streamLegacy()](https://mastra.ai/reference/streaming/agents/streamLegacy)
|
|
167
|
+
- [MastraModelOutput](https://mastra.ai/reference/streaming/agents/MastraModelOutput)
|
|
168
|
+
- [ChunkType](https://mastra.ai/reference/streaming/ChunkType)
|
|
169
|
+
- [.observeStream()](https://mastra.ai/reference/streaming/workflows/observeStream)
|
|
170
|
+
- [.resumeStream()](https://mastra.ai/reference/streaming/workflows/resumeStream)
|
|
171
|
+
- [.stream()](https://mastra.ai/reference/streaming/workflows/stream)
|
|
172
|
+
- [.timeTravelStream()](https://mastra.ai/reference/streaming/workflows/timeTravelStream)
|
|
173
|
+
- [Overview](https://mastra.ai/reference/templates/overview)
|
|
174
|
+
- [createDocumentChunkerTool()](https://mastra.ai/reference/tools/document-chunker-tool)
|
|
175
|
+
- [createGraphRAGTool()](https://mastra.ai/reference/tools/graph-rag-tool)
|
|
176
|
+
- [createTool()](https://mastra.ai/reference/tools/create-tool)
|
|
177
|
+
- [createVectorQueryTool()](https://mastra.ai/reference/tools/vector-query-tool)
|
|
178
|
+
- [MCPClient](https://mastra.ai/reference/tools/mcp-client)
|
|
179
|
+
- [MCPServer](https://mastra.ai/reference/tools/mcp-server)
|
|
180
|
+
- [Amazon S3 Vectors Store](https://mastra.ai/reference/vectors/s3vectors)
|
|
181
|
+
- [Astra Vector Store](https://mastra.ai/reference/vectors/astra)
|
|
182
|
+
- [Chroma Vector Store](https://mastra.ai/reference/vectors/chroma)
|
|
183
|
+
- [Cloudflare Vector Store](https://mastra.ai/reference/vectors/vectorize)
|
|
184
|
+
- [Convex Vector Store](https://mastra.ai/reference/vectors/convex)
|
|
185
|
+
- [Couchbase Vector Store](https://mastra.ai/reference/vectors/couchbase)
|
|
186
|
+
- [DuckDB Vector Store](https://mastra.ai/reference/vectors/duckdb)
|
|
187
|
+
- [ElasticSearch Vector Store](https://mastra.ai/reference/vectors/elasticsearch)
|
|
188
|
+
- [Lance Vector Store](https://mastra.ai/reference/vectors/lance)
|
|
189
|
+
- [libSQL Vector Store](https://mastra.ai/reference/vectors/libsql)
|
|
190
|
+
- [MongoDB Vector Store](https://mastra.ai/reference/vectors/mongodb)
|
|
191
|
+
- [OpenSearch Vector Store](https://mastra.ai/reference/vectors/opensearch)
|
|
192
|
+
- [PG Vector Store](https://mastra.ai/reference/vectors/pg)
|
|
193
|
+
- [Pinecone Vector Store](https://mastra.ai/reference/vectors/pinecone)
|
|
194
|
+
- [Qdrant Vector Store](https://mastra.ai/reference/vectors/qdrant)
|
|
195
|
+
- [Turbopuffer Vector Store](https://mastra.ai/reference/vectors/turbopuffer)
|
|
196
|
+
- [Upstash Vector Store](https://mastra.ai/reference/vectors/upstash)
|
|
197
|
+
- [.addInstructions()](https://mastra.ai/reference/voice/voice.addInstructions)
|
|
198
|
+
- [.addTools()](https://mastra.ai/reference/voice/voice.addTools)
|
|
199
|
+
- [.answer()](https://mastra.ai/reference/voice/voice.answer)
|
|
200
|
+
- [.close()](https://mastra.ai/reference/voice/voice.close)
|
|
201
|
+
- [.connect()](https://mastra.ai/reference/voice/voice.connect)
|
|
202
|
+
- [.getSpeakers()](https://mastra.ai/reference/voice/voice.getSpeakers)
|
|
203
|
+
- [.listen()](https://mastra.ai/reference/voice/voice.listen)
|
|
204
|
+
- [.off()](https://mastra.ai/reference/voice/voice.off)
|
|
205
|
+
- [.on()](https://mastra.ai/reference/voice/voice.on)
|
|
206
|
+
- [.send()](https://mastra.ai/reference/voice/voice.send)
|
|
207
|
+
- [.speak()](https://mastra.ai/reference/voice/voice.speak)
|
|
208
|
+
- [.updateConfig()](https://mastra.ai/reference/voice/voice.updateConfig)
|
|
209
|
+
- [Azure](https://mastra.ai/reference/voice/azure)
|
|
210
|
+
- [Cloudflare](https://mastra.ai/reference/voice/cloudflare)
|
|
211
|
+
- [Composite Voice](https://mastra.ai/reference/voice/composite-voice)
|
|
212
|
+
- [Deepgram](https://mastra.ai/reference/voice/deepgram)
|
|
213
|
+
- [ElevenLabs](https://mastra.ai/reference/voice/elevenlabs)
|
|
214
|
+
- [Events](https://mastra.ai/reference/voice/voice.events)
|
|
215
|
+
- [Google](https://mastra.ai/reference/voice/google)
|
|
216
|
+
- [Google Gemini Live](https://mastra.ai/reference/voice/google-gemini-live)
|
|
217
|
+
- [Mastra Voice](https://mastra.ai/reference/voice/mastra-voice)
|
|
218
|
+
- [Murf](https://mastra.ai/reference/voice/murf)
|
|
219
|
+
- [OpenAI](https://mastra.ai/reference/voice/openai)
|
|
220
|
+
- [OpenAI Realtime](https://mastra.ai/reference/voice/openai-realtime)
|
|
221
|
+
- [PlayAI](https://mastra.ai/reference/voice/playai)
|
|
222
|
+
- [Sarvam](https://mastra.ai/reference/voice/sarvam)
|
|
223
|
+
- [Speechify](https://mastra.ai/reference/voice/speechify)
|
|
224
|
+
- [.branch()](https://mastra.ai/reference/workflows/workflow-methods/branch)
|
|
225
|
+
- [.commit()](https://mastra.ai/reference/workflows/workflow-methods/commit)
|
|
226
|
+
- [.createRun()](https://mastra.ai/reference/workflows/workflow-methods/create-run)
|
|
227
|
+
- [.dountil()](https://mastra.ai/reference/workflows/workflow-methods/dountil)
|
|
228
|
+
- [.dowhile()](https://mastra.ai/reference/workflows/workflow-methods/dowhile)
|
|
229
|
+
- [.foreach()](https://mastra.ai/reference/workflows/workflow-methods/foreach)
|
|
230
|
+
- [.map()](https://mastra.ai/reference/workflows/workflow-methods/map)
|
|
231
|
+
- [.parallel()](https://mastra.ai/reference/workflows/workflow-methods/parallel)
|
|
232
|
+
- [.sleep()](https://mastra.ai/reference/workflows/workflow-methods/sleep)
|
|
233
|
+
- [.sleepUntil()](https://mastra.ai/reference/workflows/workflow-methods/sleepUntil)
|
|
234
|
+
- [.then()](https://mastra.ai/reference/workflows/workflow-methods/then)
|
|
235
|
+
- [Run Class](https://mastra.ai/reference/workflows/run)
|
|
236
|
+
- [.cancel()](https://mastra.ai/reference/workflows/run-methods/cancel)
|
|
237
|
+
- [.restart()](https://mastra.ai/reference/workflows/run-methods/restart)
|
|
238
|
+
- [.resume()](https://mastra.ai/reference/workflows/run-methods/resume)
|
|
239
|
+
- [.start()](https://mastra.ai/reference/workflows/run-methods/start)
|
|
240
|
+
- [.startAsync()](https://mastra.ai/reference/workflows/run-methods/startAsync)
|
|
241
|
+
- [.timeTravel()](https://mastra.ai/reference/workflows/run-methods/timeTravel)
|
|
242
|
+
- [Step Class](https://mastra.ai/reference/workflows/step)
|
|
243
|
+
- [Workflow Class](https://mastra.ai/reference/workflows/workflow)
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk2DMSFLJY_cjs = require('../chunk-2DMSFLJY.cjs');
|
|
4
|
+
var chunk5SOS47PH_cjs = require('../chunk-5SOS47PH.cjs');
|
|
5
5
|
var chunkJRJJ5VQE_cjs = require('../chunk-JRJJ5VQE.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "runEvals", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk2DMSFLJY_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk5SOS47PH_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk5SOS47PH_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "listScoresResponseSchema", {
|
|
22
22
|
enumerable: true,
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-MSWXEOZC.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-WFUNLRQX.js';
|
|
3
3
|
export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-MNWW2R3U.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkA5QFWX67_cjs = require('../../chunk-A5QFWX67.cjs');
|
|
4
4
|
var chunkJRJJ5VQE_cjs = require('../../chunk-JRJJ5VQE.cjs');
|
|
5
5
|
var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
|
|
6
6
|
var pMap = require('p-map');
|
|
@@ -235,7 +235,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
// src/evals/scoreTraces/scoreTracesWorkflow.ts
|
|
238
|
-
var getTraceStep =
|
|
238
|
+
var getTraceStep = chunkA5QFWX67_cjs.createStep({
|
|
239
239
|
id: "__process-trace-scoring",
|
|
240
240
|
inputSchema: z__default.default.object({
|
|
241
241
|
targets: z__default.default.array(
|
|
@@ -432,7 +432,7 @@ async function attachScoreToSpan({
|
|
|
432
432
|
updates: { links: [...existingLinks, link] }
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
var scoreTracesWorkflow =
|
|
435
|
+
var scoreTracesWorkflow = chunkA5QFWX67_cjs.createWorkflow({
|
|
436
436
|
id: "__batch-scoring-traces",
|
|
437
437
|
inputSchema: z__default.default.object({
|
|
438
438
|
targets: z__default.default.array(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-5YVR7B4R.js';
|
|
2
2
|
import { saveScorePayloadSchema } from '../../chunk-MNWW2R3U.js';
|
|
3
3
|
import { MastraError } from '../../chunk-FJEVLHJT.js';
|
|
4
4
|
import pMap from 'p-map';
|
package/dist/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkGVLPTDJA_cjs = require('./chunk-GVLPTDJA.cjs');
|
|
4
|
+
var chunk5SOS47PH_cjs = require('./chunk-5SOS47PH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Mastra", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkGVLPTDJA_cjs.Mastra; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "Agent", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk5SOS47PH_cjs.Agent; }
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=index.cjs.map
|
|
17
17
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
package/dist/llm/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXCPEEIHI_cjs = require('../chunk-XCPEEIHI.cjs');
|
|
4
4
|
var chunkYLODOPYM_cjs = require('../chunk-YLODOPYM.cjs');
|
|
5
5
|
var chunkVZXYBFCX_cjs = require('../chunk-VZXYBFCX.cjs');
|
|
6
6
|
var chunkUZL4H5P2_cjs = require('../chunk-UZL4H5P2.cjs');
|
|
@@ -10,19 +10,23 @@ var chunkHN2MSTR6_cjs = require('../chunk-HN2MSTR6.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AzureOpenAIGateway", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXCPEEIHI_cjs.AzureOpenAIGateway; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "EMBEDDING_MODELS", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkXCPEEIHI_cjs.EMBEDDING_MODELS; }
|
|
14
18
|
});
|
|
15
19
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkXCPEEIHI_cjs.ModelRouterEmbeddingModel; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXCPEEIHI_cjs.ModelRouterLanguageModel; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkXCPEEIHI_cjs.resolveModelConfig; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
28
32
|
enumerable: true,
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -79,5 +79,5 @@ export type LLMStreamObjectOptions<Z extends ZodSchema | JSONSchema7 | undefined
|
|
|
79
79
|
export type { ProviderConfig, GatewayLanguageModel } from './model/gateways/base.js';
|
|
80
80
|
export { MastraModelGateway, NetlifyGateway, ModelsDevGateway, AzureOpenAIGateway } from './model/gateways/index.js';
|
|
81
81
|
export type { AzureOpenAIGatewayConfig } from './model/gateways/index.js';
|
|
82
|
-
export { ModelRouterEmbeddingModel, type EmbeddingModelId } from './model/index.js';
|
|
82
|
+
export { ModelRouterEmbeddingModel, type EmbeddingModelId, EMBEDDING_MODELS, type EmbeddingModelInfo } from './model/index.js';
|
|
83
83
|
//# sourceMappingURL=index.d.ts.map
|