@mastra/mcp-docs-server 1.1.9-alpha.0 → 1.1.9-alpha.2
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/.docs/docs/agents/adding-voice.md +4 -4
- package/.docs/docs/agents/agent-approval.md +3 -3
- package/.docs/docs/agents/agent-memory.md +1 -1
- package/.docs/docs/agents/network-approval.md +1 -1
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +1 -1
- package/.docs/docs/agents/processors.md +8 -8
- package/.docs/docs/agents/structured-output.md +1 -1
- package/.docs/docs/agents/supervisor-agents.md +3 -3
- package/.docs/docs/agents/using-tools.md +1 -1
- package/.docs/docs/build-with-ai/mcp-docs-server.md +1 -1
- package/.docs/docs/build-with-ai/skills.md +1 -1
- package/.docs/docs/community/contributing-templates.md +1 -1
- package/.docs/docs/community/discord.md +2 -2
- package/.docs/docs/community/licensing.md +1 -1
- package/.docs/docs/deployment/cloud-providers.md +2 -2
- package/.docs/docs/deployment/mastra-server.md +1 -1
- package/.docs/docs/deployment/monorepo.md +1 -1
- package/.docs/docs/deployment/overview.md +3 -3
- package/.docs/docs/deployment/studio.md +1 -1
- package/.docs/docs/deployment/web-framework.md +1 -1
- package/.docs/docs/deployment/workflow-runners.md +1 -1
- package/.docs/docs/evals/built-in-scorers.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +6 -6
- package/.docs/docs/evals/overview.md +1 -1
- package/.docs/docs/evals/running-in-ci.md +6 -6
- package/.docs/docs/getting-started/build-with-ai.md +2 -2
- package/.docs/docs/getting-started/manual-install.md +1 -1
- package/.docs/docs/getting-started/project-structure.md +1 -1
- package/.docs/docs/index.md +1 -1
- package/.docs/docs/mcp/overview.md +1 -1
- package/.docs/docs/mcp/publishing-mcp-server.md +3 -3
- package/.docs/docs/memory/memory-processors.md +8 -8
- package/.docs/docs/memory/message-history.md +2 -2
- package/.docs/docs/memory/observational-memory.md +5 -5
- package/.docs/docs/memory/semantic-recall.md +7 -7
- package/.docs/docs/memory/working-memory.md +14 -14
- package/.docs/docs/observability/datasets/overview.md +1 -1
- package/.docs/docs/observability/datasets/running-experiments.md +1 -1
- package/.docs/docs/observability/logging.md +1 -1
- package/.docs/docs/observability/overview.md +5 -5
- package/.docs/docs/observability/tracing/bridges/otel.md +7 -7
- package/.docs/docs/observability/tracing/exporters/arize.md +3 -3
- package/.docs/docs/observability/tracing/exporters/braintrust.md +1 -1
- package/.docs/docs/observability/tracing/exporters/cloud.md +2 -2
- package/.docs/docs/observability/tracing/exporters/datadog.md +3 -3
- package/.docs/docs/observability/tracing/exporters/default.md +7 -7
- package/.docs/docs/observability/tracing/exporters/laminar.md +1 -1
- package/.docs/docs/observability/tracing/exporters/langfuse.md +3 -3
- package/.docs/docs/observability/tracing/exporters/langsmith.md +4 -4
- package/.docs/docs/observability/tracing/exporters/otel.md +8 -8
- package/.docs/docs/observability/tracing/exporters/posthog.md +2 -2
- package/.docs/docs/observability/tracing/exporters/sentry.md +4 -4
- package/.docs/docs/observability/tracing/overview.md +20 -20
- package/.docs/docs/observability/tracing/processors/sensitive-data-filter.md +11 -11
- package/.docs/docs/rag/chunking-and-embedding.md +4 -4
- package/.docs/docs/rag/overview.md +2 -2
- package/.docs/docs/rag/retrieval.md +4 -4
- package/.docs/docs/rag/vector-databases.md +11 -11
- package/.docs/docs/server/auth/auth0.md +1 -1
- package/.docs/docs/server/auth/clerk.md +1 -1
- package/.docs/docs/server/auth/composite-auth.md +9 -9
- package/.docs/docs/server/auth/custom-auth-provider.md +12 -12
- package/.docs/docs/server/auth/firebase.md +2 -2
- package/.docs/docs/server/auth/jwt.md +1 -1
- package/.docs/docs/server/auth/simple-auth.md +8 -8
- package/.docs/docs/server/auth/supabase.md +1 -1
- package/.docs/docs/server/auth/workos.md +1 -1
- package/.docs/docs/server/auth.md +1 -1
- package/.docs/docs/server/custom-adapters.md +7 -7
- package/.docs/docs/server/custom-api-routes.md +2 -2
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/mastra-server.md +1 -1
- package/.docs/docs/server/request-context.md +2 -2
- package/.docs/docs/server/server-adapters.md +1 -1
- package/.docs/docs/streaming/events.md +1 -1
- package/.docs/docs/streaming/overview.md +1 -1
- package/.docs/docs/streaming/tool-streaming.md +2 -2
- package/.docs/docs/voice/overview.md +3 -3
- package/.docs/docs/voice/speech-to-speech.md +1 -1
- package/.docs/docs/voice/speech-to-text.md +2 -2
- package/.docs/docs/voice/text-to-speech.md +2 -2
- package/.docs/docs/workflows/agents-and-tools.md +1 -1
- package/.docs/docs/workflows/control-flow.md +1 -1
- package/.docs/docs/workflows/error-handling.md +3 -3
- package/.docs/docs/workflows/suspend-and-resume.md +1 -1
- package/.docs/docs/workflows/time-travel.md +1 -1
- package/.docs/docs/workflows/workflow-state.md +1 -1
- package/.docs/docs/workspace/filesystem.md +1 -1
- package/.docs/docs/workspace/overview.md +1 -1
- package/.docs/docs/workspace/search.md +1 -1
- package/.docs/docs/workspace/skills.md +2 -2
- package/.docs/guides/build-your-ui/ai-sdk-ui.md +2 -2
- package/.docs/guides/build-your-ui/assistant-ui.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit.md +1 -1
- package/.docs/guides/deployment/digital-ocean.md +1 -1
- package/.docs/guides/getting-started/astro.md +1 -1
- package/.docs/guides/getting-started/electron.md +1 -1
- package/.docs/guides/getting-started/next-js.md +1 -1
- package/.docs/guides/getting-started/vite-react.md +1 -1
- package/.docs/guides/guide/ai-recruiter.md +3 -3
- package/.docs/guides/guide/chef-michel.md +4 -4
- package/.docs/guides/guide/code-review-bot.md +3 -3
- package/.docs/guides/guide/dev-assistant.md +5 -5
- package/.docs/guides/guide/docs-manager.md +3 -3
- package/.docs/guides/guide/github-actions-pr-description.md +2 -2
- package/.docs/guides/guide/notes-mcp-server.md +3 -3
- package/.docs/guides/guide/research-assistant.md +4 -4
- package/.docs/guides/guide/research-coordinator.md +1 -1
- package/.docs/guides/guide/stock-agent.md +4 -4
- package/.docs/guides/guide/web-search.md +2 -2
- package/.docs/guides/guide/whatsapp-chat-bot.md +1 -1
- package/.docs/guides/migrations/ai-sdk-v4-to-v5.md +3 -3
- package/.docs/guides/migrations/network-to-supervisor.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/agent.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/deployment.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/evals.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/mastra.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/overview.md +3 -3
- package/.docs/guides/migrations/upgrade-to-v1/storage.md +3 -3
- package/.docs/guides/migrations/upgrade-to-v1/tracing.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/vectors.md +3 -3
- package/.docs/guides/migrations/upgrade-to-v1/voice.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/workflows.md +1 -1
- package/.docs/guides/migrations/vnext-to-standard-apis.md +1 -1
- package/.docs/models/embeddings.md +4 -4
- package/.docs/models/gateways/custom-gateways.md +4 -4
- package/.docs/models/gateways/netlify.md +1 -1
- package/.docs/models/gateways/openrouter.md +1 -1
- package/.docs/models/gateways/vercel.md +9 -2
- package/.docs/models/gateways.md +2 -2
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/302ai.md +3 -3
- package/.docs/models/providers/abacus.md +3 -3
- package/.docs/models/providers/aihubmix.md +3 -3
- package/.docs/models/providers/alibaba-cn.md +3 -3
- package/.docs/models/providers/alibaba-coding-plan-cn.md +3 -3
- package/.docs/models/providers/alibaba-coding-plan.md +3 -3
- package/.docs/models/providers/alibaba.md +3 -3
- package/.docs/models/providers/anthropic.md +4 -4
- package/.docs/models/providers/bailing.md +3 -3
- package/.docs/models/providers/baseten.md +3 -3
- package/.docs/models/providers/berget.md +3 -3
- package/.docs/models/providers/cerebras.md +4 -4
- package/.docs/models/providers/chutes.md +6 -5
- package/.docs/models/providers/clarifai.md +3 -3
- package/.docs/models/providers/cloudferro-sherlock.md +3 -3
- package/.docs/models/providers/cloudflare-workers-ai.md +3 -3
- package/.docs/models/providers/cortecs.md +3 -3
- package/.docs/models/providers/deepinfra.md +4 -4
- package/.docs/models/providers/deepseek.md +3 -3
- package/.docs/models/providers/drun.md +3 -3
- package/.docs/models/providers/evroc.md +3 -3
- package/.docs/models/providers/fastrouter.md +3 -3
- package/.docs/models/providers/fireworks-ai.md +3 -3
- package/.docs/models/providers/firmware.md +3 -3
- package/.docs/models/providers/friendli.md +3 -3
- package/.docs/models/providers/github-models.md +3 -3
- package/.docs/models/providers/google.md +4 -4
- package/.docs/models/providers/groq.md +4 -4
- package/.docs/models/providers/helicone.md +3 -3
- package/.docs/models/providers/huggingface.md +3 -3
- package/.docs/models/providers/iflowcn.md +3 -3
- package/.docs/models/providers/inception.md +3 -3
- package/.docs/models/providers/inference.md +3 -3
- package/.docs/models/providers/io-net.md +3 -3
- package/.docs/models/providers/jiekou.md +3 -3
- package/.docs/models/providers/kilo.md +3 -3
- package/.docs/models/providers/kimi-for-coding.md +4 -4
- package/.docs/models/providers/kuae-cloud-coding-plan.md +3 -3
- package/.docs/models/providers/llama.md +3 -3
- package/.docs/models/providers/lmstudio.md +3 -3
- package/.docs/models/providers/lucidquery.md +3 -3
- package/.docs/models/providers/meganova.md +3 -3
- package/.docs/models/providers/minimax-cn-coding-plan.md +4 -4
- package/.docs/models/providers/minimax-cn.md +4 -4
- package/.docs/models/providers/minimax-coding-plan.md +4 -4
- package/.docs/models/providers/minimax.md +4 -4
- package/.docs/models/providers/mistral.md +4 -4
- package/.docs/models/providers/moark.md +3 -3
- package/.docs/models/providers/modelscope.md +3 -3
- package/.docs/models/providers/moonshotai-cn.md +3 -3
- package/.docs/models/providers/moonshotai.md +3 -3
- package/.docs/models/providers/morph.md +3 -3
- package/.docs/models/providers/nano-gpt.md +25 -23
- package/.docs/models/providers/nebius.md +3 -3
- package/.docs/models/providers/nova.md +3 -3
- package/.docs/models/providers/novita-ai.md +3 -3
- package/.docs/models/providers/nvidia.md +3 -3
- package/.docs/models/providers/ollama-cloud.md +3 -3
- package/.docs/models/providers/openai.md +4 -4
- package/.docs/models/providers/opencode-go.md +3 -3
- package/.docs/models/providers/opencode.md +3 -3
- package/.docs/models/providers/ovhcloud.md +3 -3
- package/.docs/models/providers/perplexity-agent.md +4 -4
- package/.docs/models/providers/perplexity.md +4 -4
- package/.docs/models/providers/poe.md +3 -3
- package/.docs/models/providers/privatemode-ai.md +3 -3
- package/.docs/models/providers/qihang-ai.md +3 -3
- package/.docs/models/providers/qiniu-ai.md +3 -3
- package/.docs/models/providers/requesty.md +3 -3
- package/.docs/models/providers/scaleway.md +3 -3
- package/.docs/models/providers/siliconflow-cn.md +3 -3
- package/.docs/models/providers/siliconflow.md +3 -3
- package/.docs/models/providers/stackit.md +3 -3
- package/.docs/models/providers/stepfun.md +3 -3
- package/.docs/models/providers/submodel.md +3 -3
- package/.docs/models/providers/synthetic.md +3 -3
- package/.docs/models/providers/togetherai.md +4 -4
- package/.docs/models/providers/upstage.md +3 -3
- package/.docs/models/providers/vivgrid.md +4 -4
- package/.docs/models/providers/vultr.md +3 -3
- package/.docs/models/providers/wandb.md +3 -3
- package/.docs/models/providers/xai.md +4 -4
- package/.docs/models/providers/xiaomi.md +3 -3
- package/.docs/models/providers/zai-coding-plan.md +3 -3
- package/.docs/models/providers/zai.md +3 -3
- package/.docs/models/providers/zenmux.md +4 -4
- package/.docs/models/providers/zhipuai-coding-plan.md +3 -3
- package/.docs/models/providers/zhipuai.md +3 -3
- package/.docs/reference/agents/agent.md +3 -3
- package/.docs/reference/agents/generateLegacy.md +1 -1
- package/.docs/reference/agents/network.md +2 -2
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +1 -1
- package/.docs/reference/auth/auth0.md +4 -4
- package/.docs/reference/auth/better-auth.md +2 -2
- package/.docs/reference/auth/clerk.md +1 -1
- package/.docs/reference/auth/firebase.md +4 -4
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/auth/supabase.md +1 -1
- package/.docs/reference/auth/workos.md +4 -4
- package/.docs/reference/cli/mastra.md +1 -1
- package/.docs/reference/client-js/agents.md +22 -22
- package/.docs/reference/client-js/error-handling.md +2 -2
- package/.docs/reference/client-js/logs.md +2 -2
- package/.docs/reference/client-js/mastra-client.md +1 -1
- package/.docs/reference/client-js/memory.md +6 -6
- package/.docs/reference/client-js/observability.md +4 -4
- package/.docs/reference/client-js/telemetry.md +1 -1
- package/.docs/reference/client-js/tools.md +3 -3
- package/.docs/reference/client-js/vectors.md +2 -2
- package/.docs/reference/client-js/workflows.md +12 -12
- package/.docs/reference/core/getGatewayById.md +1 -1
- package/.docs/reference/core/getMCPServer.md +2 -2
- package/.docs/reference/core/getMCPServerById.md +2 -2
- package/.docs/reference/core/getMemory.md +1 -1
- package/.docs/reference/core/getScorer.md +2 -2
- package/.docs/reference/core/getScorerById.md +2 -2
- package/.docs/reference/core/getStoredAgentById.md +2 -2
- package/.docs/reference/core/listMCPServers.md +2 -2
- package/.docs/reference/core/listMemory.md +1 -1
- package/.docs/reference/core/listScorers.md +1 -1
- package/.docs/reference/core/listStoredAgents.md +2 -2
- package/.docs/reference/core/mastra-class.md +1 -1
- package/.docs/reference/core/mastra-model-gateway.md +11 -11
- package/.docs/reference/datasets/dataset.md +1 -1
- package/.docs/reference/deployer.md +4 -4
- package/.docs/reference/evals/answer-relevancy.md +3 -3
- package/.docs/reference/evals/answer-similarity.md +3 -3
- package/.docs/reference/evals/bias.md +4 -4
- package/.docs/reference/evals/completeness.md +5 -5
- package/.docs/reference/evals/content-similarity.md +3 -3
- package/.docs/reference/evals/context-precision.md +6 -6
- package/.docs/reference/evals/context-relevance.md +6 -6
- package/.docs/reference/evals/create-scorer.md +7 -7
- package/.docs/reference/evals/faithfulness.md +3 -3
- package/.docs/reference/evals/hallucination.md +5 -5
- package/.docs/reference/evals/keyword-coverage.md +3 -3
- package/.docs/reference/evals/mastra-scorer.md +6 -6
- package/.docs/reference/evals/noise-sensitivity.md +9 -9
- package/.docs/reference/evals/prompt-alignment.md +5 -5
- package/.docs/reference/evals/run-evals.md +5 -5
- package/.docs/reference/evals/scorer-utils.md +17 -17
- package/.docs/reference/evals/textual-difference.md +3 -3
- package/.docs/reference/evals/tone-consistency.md +4 -4
- package/.docs/reference/evals/tool-call-accuracy.md +9 -9
- package/.docs/reference/evals/toxicity.md +3 -3
- package/.docs/reference/harness/harness-class.md +1 -1
- package/.docs/reference/memory/clone-utilities.md +7 -7
- package/.docs/reference/memory/cloneThread.md +4 -4
- package/.docs/reference/memory/createThread.md +1 -1
- package/.docs/reference/memory/deleteMessages.md +1 -1
- package/.docs/reference/memory/getThreadById.md +1 -1
- package/.docs/reference/memory/listThreads.md +3 -3
- package/.docs/reference/memory/memory-class.md +1 -1
- package/.docs/reference/memory/observational-memory.md +1 -1
- package/.docs/reference/memory/recall.md +1 -1
- package/.docs/reference/observability/tracing/bridges/otel.md +5 -5
- package/.docs/reference/observability/tracing/configuration.md +17 -17
- package/.docs/reference/observability/tracing/exporters/arize.md +4 -4
- package/.docs/reference/observability/tracing/exporters/braintrust.md +3 -3
- package/.docs/reference/observability/tracing/exporters/cloud-exporter.md +6 -6
- package/.docs/reference/observability/tracing/exporters/console-exporter.md +4 -4
- package/.docs/reference/observability/tracing/exporters/datadog.md +4 -4
- package/.docs/reference/observability/tracing/exporters/default-exporter.md +6 -6
- package/.docs/reference/observability/tracing/exporters/laminar.md +2 -2
- package/.docs/reference/observability/tracing/exporters/langfuse.md +4 -4
- package/.docs/reference/observability/tracing/exporters/langsmith.md +6 -6
- package/.docs/reference/observability/tracing/exporters/otel.md +12 -12
- package/.docs/reference/observability/tracing/exporters/posthog.md +3 -3
- package/.docs/reference/observability/tracing/exporters/sentry.md +5 -5
- package/.docs/reference/observability/tracing/instances.md +9 -9
- package/.docs/reference/observability/tracing/interfaces.md +39 -39
- package/.docs/reference/observability/tracing/processors/sensitive-data-filter.md +5 -5
- package/.docs/reference/observability/tracing/spans.md +13 -13
- package/.docs/reference/processors/processor-interface.md +15 -15
- package/.docs/reference/rag/chunk.md +2 -2
- package/.docs/reference/rag/database-config.md +8 -8
- package/.docs/reference/rag/document.md +11 -11
- package/.docs/reference/rag/embeddings.md +5 -5
- package/.docs/reference/rag/extract-params.md +8 -8
- package/.docs/reference/rag/graph-rag.md +4 -4
- package/.docs/reference/rag/metadata-filters.md +5 -5
- package/.docs/reference/rag/rerank.md +2 -2
- package/.docs/reference/rag/rerankWithScorer.md +2 -2
- package/.docs/reference/server/express-adapter.md +1 -1
- package/.docs/reference/server/fastify-adapter.md +1 -1
- package/.docs/reference/server/hono-adapter.md +1 -1
- package/.docs/reference/server/koa-adapter.md +1 -1
- package/.docs/reference/server/mastra-server.md +16 -16
- package/.docs/reference/server/register-api-route.md +5 -5
- package/.docs/reference/server/routes.md +1 -1
- package/.docs/reference/storage/cloudflare-d1.md +2 -2
- package/.docs/reference/storage/cloudflare.md +2 -2
- package/.docs/reference/storage/composite.md +1 -1
- package/.docs/reference/storage/convex.md +5 -5
- package/.docs/reference/storage/dynamodb.md +5 -5
- package/.docs/reference/storage/lance.md +3 -3
- package/.docs/reference/storage/libsql.md +1 -1
- package/.docs/reference/storage/mongodb.md +5 -5
- package/.docs/reference/storage/mssql.md +3 -3
- package/.docs/reference/storage/overview.md +2 -2
- package/.docs/reference/storage/postgresql.md +5 -5
- package/.docs/reference/storage/upstash.md +3 -3
- package/.docs/reference/streaming/ChunkType.md +13 -13
- package/.docs/reference/streaming/agents/MastraModelOutput.md +6 -6
- package/.docs/reference/streaming/agents/stream.md +2 -2
- package/.docs/reference/streaming/agents/streamLegacy.md +1 -1
- package/.docs/reference/streaming/workflows/observeStream.md +1 -1
- package/.docs/reference/streaming/workflows/resumeStream.md +1 -1
- package/.docs/reference/streaming/workflows/stream.md +1 -1
- package/.docs/reference/templates/overview.md +3 -3
- package/.docs/reference/tools/create-tool.md +9 -9
- package/.docs/reference/tools/document-chunker-tool.md +4 -4
- package/.docs/reference/tools/graph-rag-tool.md +7 -7
- package/.docs/reference/tools/mcp-client.md +13 -13
- package/.docs/reference/tools/mcp-server.md +23 -23
- package/.docs/reference/tools/vector-query-tool.md +12 -12
- package/.docs/reference/vectors/astra.md +13 -13
- package/.docs/reference/vectors/chroma.md +16 -16
- package/.docs/reference/vectors/convex.md +15 -15
- package/.docs/reference/vectors/couchbase.md +15 -15
- package/.docs/reference/vectors/duckdb.md +17 -17
- package/.docs/reference/vectors/elasticsearch.md +14 -14
- package/.docs/reference/vectors/lance.md +22 -22
- package/.docs/reference/vectors/libsql.md +15 -15
- package/.docs/reference/vectors/mongodb.md +18 -18
- package/.docs/reference/vectors/opensearch.md +11 -11
- package/.docs/reference/vectors/pg.md +21 -21
- package/.docs/reference/vectors/pinecone.md +15 -15
- package/.docs/reference/vectors/qdrant.md +15 -15
- package/.docs/reference/vectors/s3vectors.md +17 -17
- package/.docs/reference/vectors/turbopuffer.md +14 -14
- package/.docs/reference/vectors/upstash.md +15 -15
- package/.docs/reference/vectors/vectorize.md +16 -16
- package/.docs/reference/voice/azure.md +8 -8
- package/.docs/reference/voice/cloudflare.md +5 -5
- package/.docs/reference/voice/composite-voice.md +5 -5
- package/.docs/reference/voice/deepgram.md +5 -5
- package/.docs/reference/voice/elevenlabs.md +6 -6
- package/.docs/reference/voice/google-gemini-live.md +20 -20
- package/.docs/reference/voice/google.md +9 -9
- package/.docs/reference/voice/mastra-voice.md +17 -17
- package/.docs/reference/voice/murf.md +6 -6
- package/.docs/reference/voice/openai-realtime.md +16 -16
- package/.docs/reference/voice/openai.md +5 -5
- package/.docs/reference/voice/playai.md +5 -5
- package/.docs/reference/voice/sarvam.md +5 -5
- package/.docs/reference/voice/speechify.md +5 -5
- package/.docs/reference/voice/voice.addInstructions.md +2 -2
- package/.docs/reference/voice/voice.addTools.md +2 -2
- package/.docs/reference/voice/voice.answer.md +2 -2
- package/.docs/reference/voice/voice.close.md +2 -2
- package/.docs/reference/voice/voice.connect.md +5 -5
- package/.docs/reference/voice/voice.events.md +2 -2
- package/.docs/reference/voice/voice.getSpeakers.md +3 -3
- package/.docs/reference/voice/voice.listen.md +6 -6
- package/.docs/reference/voice/voice.off.md +2 -2
- package/.docs/reference/voice/voice.on.md +3 -3
- package/.docs/reference/voice/voice.send.md +2 -2
- package/.docs/reference/voice/voice.speak.md +5 -5
- package/.docs/reference/voice/voice.updateConfig.md +3 -3
- package/.docs/reference/workflows/run-methods/startAsync.md +1 -1
- package/.docs/reference/workflows/run.md +3 -3
- package/.docs/reference/workflows/step.md +2 -2
- package/.docs/reference/workflows/workflow-methods/create-run.md +1 -1
- package/.docs/reference/workflows/workflow.md +1 -1
- package/.docs/reference/workspace/daytona-sandbox.md +2 -2
- package/.docs/reference/workspace/e2b-sandbox.md +2 -2
- package/.docs/reference/workspace/filesystem.md +1 -1
- package/.docs/reference/workspace/gcs-filesystem.md +1 -1
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +4 -4
- package/.docs/reference/workspace/process-manager.md +2 -2
- package/.docs/reference/workspace/s3-filesystem.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +2 -2
- package/CHANGELOG.md +14 -0
- package/package.json +4 -4
|
@@ -44,9 +44,9 @@ for await (const chunk of stream) {
|
|
|
44
44
|
| `zhipuai/glm-4.7-flash` | 200K | | | | | | — | — |
|
|
45
45
|
| `zhipuai/glm-5` | 205K | | | | | | $1 | $3 |
|
|
46
46
|
|
|
47
|
-
## Advanced
|
|
47
|
+
## Advanced configuration
|
|
48
48
|
|
|
49
|
-
### Custom
|
|
49
|
+
### Custom headers
|
|
50
50
|
|
|
51
51
|
```typescript
|
|
52
52
|
const agent = new Agent({
|
|
@@ -63,7 +63,7 @@ const agent = new Agent({
|
|
|
63
63
|
});
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
### Dynamic
|
|
66
|
+
### Dynamic model selection
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
69
|
const agent = new Agent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Agent
|
|
1
|
+
# Agent class
|
|
2
2
|
|
|
3
3
|
The `Agent` class is the foundation for creating AI agents in Mastra. It provides methods for generating responses, streaming interactions, and handling voice capabilities.
|
|
4
4
|
|
|
@@ -40,7 +40,7 @@ export const agent3 = new Agent({
|
|
|
40
40
|
})
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
### Single CoreSystemMessage
|
|
43
|
+
### Single `CoreSystemMessage`
|
|
44
44
|
|
|
45
45
|
Use CoreSystemMessage format to access additional properties like `providerOptions` for provider-specific configurations:
|
|
46
46
|
|
|
@@ -63,7 +63,7 @@ export const agent = new Agent({
|
|
|
63
63
|
})
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
### Multiple CoreSystemMessages
|
|
66
|
+
### Multiple `CoreSystemMessages`
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
69
|
import { Agent } from '@mastra/core/agent'
|
|
@@ -126,7 +126,7 @@ await agent.generateLegacy('message for agent')
|
|
|
126
126
|
|
|
127
127
|
**toolCalls.args** (`any`): The arguments passed to the tool.
|
|
128
128
|
|
|
129
|
-
## Migration to
|
|
129
|
+
## Migration to new API
|
|
130
130
|
|
|
131
131
|
> **Info:** The new `.generate()` method offers enhanced capabilities including AI SDK v5+ compatibility, better structured output handling, and improved streaming support. See the [migration guide](https://mastra.ai/guides/migrations/vnext-to-standard-apis) for detailed migration instructions.
|
|
132
132
|
|
|
@@ -132,7 +132,7 @@ await agent.network(`
|
|
|
132
132
|
|
|
133
133
|
**objectStream** (`ReadableStream<Partial<OUTPUT>>`): A stream of partial objects during structured output generation. Useful for streaming partial results as they're being generated.
|
|
134
134
|
|
|
135
|
-
## Structured
|
|
135
|
+
## Structured output
|
|
136
136
|
|
|
137
137
|
When you need typed, validated results from your network, use the `structuredOutput` option. The network will generate a response matching your schema after task completion.
|
|
138
138
|
|
|
@@ -188,7 +188,7 @@ When using structured output, additional chunk types are emitted:
|
|
|
188
188
|
- `network-object`: Emitted with partial objects during streaming
|
|
189
189
|
- `network-object-result`: Emitted with the final structured object
|
|
190
190
|
|
|
191
|
-
## Aborting a
|
|
191
|
+
## Aborting a network
|
|
192
192
|
|
|
193
193
|
Use `abortSignal` to cancel a running network. When aborted, the network stops routing, cancels any in-progress sub-agent, tool, or workflow execution, and doesn't save partial results to memory.
|
|
194
194
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MastraAuthAuth0
|
|
1
|
+
# MastraAuthAuth0 class
|
|
2
2
|
|
|
3
3
|
The `MastraAuthAuth0` class provides authentication for Mastra using Auth0. It verifies incoming requests using Auth0-issued JWT tokens and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
@@ -30,7 +30,7 @@ export const mastra = new Mastra({
|
|
|
30
30
|
|
|
31
31
|
**authorizeUser** (`(user: Auth0User) => Promise<boolean> | boolean`): Custom authorization function to determine if a user should be granted access. Called after token verification. By default, allows all authenticated users with valid tokens.
|
|
32
32
|
|
|
33
|
-
## Environment
|
|
33
|
+
## Environment variables
|
|
34
34
|
|
|
35
35
|
The following environment variables are automatically used when constructor options aren't provided:
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ The following environment variables are automatically used when constructor opti
|
|
|
38
38
|
|
|
39
39
|
**AUTH0\_AUDIENCE** (`string`): Your Auth0 API identifier. This is the identifier you set when creating an API in your Auth0 Dashboard.
|
|
40
40
|
|
|
41
|
-
## Default
|
|
41
|
+
## Default authorization behavior
|
|
42
42
|
|
|
43
43
|
By default, `MastraAuthAuth0` validates Auth0 JWT tokens and allows access to all authenticated users:
|
|
44
44
|
|
|
@@ -50,7 +50,7 @@ By default, `MastraAuthAuth0` validates Auth0 JWT tokens and allows access to al
|
|
|
50
50
|
|
|
51
51
|
If all validations pass, the user is considered authorized. To implement custom authorization logic (e.g., role-based access control), provide a custom `authorizeUser` function.
|
|
52
52
|
|
|
53
|
-
## Auth0
|
|
53
|
+
## Auth0 user type
|
|
54
54
|
|
|
55
55
|
The `Auth0User` type used in the `authorizeUser` function corresponds to the decoded JWT token payload, which typically includes:
|
|
56
56
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MastraAuthBetterAuth
|
|
1
|
+
# MastraAuthBetterAuth class
|
|
2
2
|
|
|
3
3
|
The `MastraAuthBetterAuth` class provides authentication for Mastra applications using Better Auth. It verifies incoming requests with Better Auth sessions and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
@@ -43,7 +43,7 @@ export const mastra = new Mastra({
|
|
|
43
43
|
|
|
44
44
|
**protected** (`Array<string | RegExp | [string, Methods | Methods[]]>`): Protected routes that require authentication. Supports exact paths, wildcards, and path params.
|
|
45
45
|
|
|
46
|
-
## BetterAuthUser
|
|
46
|
+
## `BetterAuthUser` type
|
|
47
47
|
|
|
48
48
|
The `BetterAuthUser` type contains the session and user information returned by Better Auth:
|
|
49
49
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MastraAuthFirebase
|
|
1
|
+
# MastraAuthFirebase class
|
|
2
2
|
|
|
3
3
|
The `MastraAuthFirebase` class provides authentication for Mastra using Firebase Authentication. It verifies incoming requests using Firebase ID tokens and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
@@ -44,7 +44,7 @@ export const mastra = new Mastra({
|
|
|
44
44
|
|
|
45
45
|
**authorizeUser** (`(user: FirebaseUser) => Promise<boolean> | boolean`): Custom authorization function to determine if a user should be granted access. Called after token verification. By default, checks for the presence of a document in the 'user\_access' collection keyed by the user's UID.
|
|
46
46
|
|
|
47
|
-
## Environment
|
|
47
|
+
## Environment variables
|
|
48
48
|
|
|
49
49
|
The following environment variables are automatically used when constructor options aren't provided:
|
|
50
50
|
|
|
@@ -54,7 +54,7 @@ The following environment variables are automatically used when constructor opti
|
|
|
54
54
|
|
|
55
55
|
**FIREBASE\_DATABASE\_ID** (`string`): Alternative environment variable for Firestore database ID. Used if FIRESTORE\_DATABASE\_ID is not set.
|
|
56
56
|
|
|
57
|
-
## Default
|
|
57
|
+
## Default authorization behavior
|
|
58
58
|
|
|
59
59
|
By default, `MastraAuthFirebase` uses Firestore to manage user access:
|
|
60
60
|
|
|
@@ -63,7 +63,7 @@ By default, `MastraAuthFirebase` uses Firestore to manage user access:
|
|
|
63
63
|
3. If the document exists, the user is authorized; otherwise, access is denied
|
|
64
64
|
4. The Firestore database used is determined by the `databaseId` parameter or environment variables
|
|
65
65
|
|
|
66
|
-
## Firebase
|
|
66
|
+
## Firebase user type
|
|
67
67
|
|
|
68
68
|
The `FirebaseUser` type used in the `authorizeUser` function corresponds to Firebase's `DecodedIdToken` interface, which includes:
|
|
69
69
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MastraJwtAuth
|
|
1
|
+
# MastraJwtAuth class
|
|
2
2
|
|
|
3
3
|
The `MastraJwtAuth` class provides a lightweight authentication mechanism for Mastra using JSON Web Tokens (JWTs). It verifies incoming requests based on a shared secret and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MastraAuthSupabase
|
|
1
|
+
# MastraAuthSupabase class
|
|
2
2
|
|
|
3
3
|
The `MastraAuthSupabase` class provides authentication for Mastra using Supabase Auth. It verifies incoming requests using Supabase's authentication system and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MastraAuthWorkos
|
|
1
|
+
# MastraAuthWorkos class
|
|
2
2
|
|
|
3
3
|
The `MastraAuthWorkos` class provides authentication for Mastra using WorkOS. It verifies incoming requests using WorkOS access tokens and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
@@ -30,7 +30,7 @@ export const mastra = new Mastra({
|
|
|
30
30
|
|
|
31
31
|
**authorizeUser** (`(user: WorkosUser) => Promise<boolean> | boolean`): Custom authorization function to determine if a user should be granted access. Called after token verification. By default, checks if the user has an 'admin' role in any organization membership.
|
|
32
32
|
|
|
33
|
-
## Environment
|
|
33
|
+
## Environment variables
|
|
34
34
|
|
|
35
35
|
The following environment variables are automatically used when constructor options aren't provided:
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ The following environment variables are automatically used when constructor opti
|
|
|
38
38
|
|
|
39
39
|
**WORKOS\_CLIENT\_ID** (`string`): Your WorkOS Client ID. Can be found in your WorkOS Dashboard under Applications.
|
|
40
40
|
|
|
41
|
-
## Default
|
|
41
|
+
## Default authorization behavior
|
|
42
42
|
|
|
43
43
|
By default, `MastraAuthWorkos` implements role-based authorization that checks for admin access:
|
|
44
44
|
|
|
@@ -53,7 +53,7 @@ This means that by default, only users with admin privileges in at least one org
|
|
|
53
53
|
|
|
54
54
|
To implement custom authorization logic (e.g., allow all authenticated users, check for specific roles, or implement custom business logic), provide a custom `authorizeUser` function.
|
|
55
55
|
|
|
56
|
-
## WorkOS
|
|
56
|
+
## WorkOS user type
|
|
57
57
|
|
|
58
58
|
The `WorkosUser` type used in the `authorizeUser` function corresponds to the JWT token payload returned by WorkOS. WorkOS allows administrators to set up custom JWT templates, so the exact structure may vary based on your configuration. Here's an example of what the user object might look like:
|
|
59
59
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Agents API provides methods to interact with Mastra AI agents, including generating responses, streaming interactions, and managing agent tools.
|
|
4
4
|
|
|
5
|
-
## Getting
|
|
5
|
+
## Getting all agents
|
|
6
6
|
|
|
7
7
|
Retrieve a list of all available agents:
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ const agents = await mastraClient.listAgents()
|
|
|
12
12
|
|
|
13
13
|
Returns a record of agent IDs to their serialized agent configurations.
|
|
14
14
|
|
|
15
|
-
## Working with a
|
|
15
|
+
## Working with a specific agent
|
|
16
16
|
|
|
17
17
|
Get an instance of a specific agent by its ID:
|
|
18
18
|
|
|
@@ -26,9 +26,9 @@ export const myAgent = new Agent({
|
|
|
26
26
|
const agent = mastraClient.getAgent('my-agent')
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
## Agent
|
|
29
|
+
## Agent methods
|
|
30
30
|
|
|
31
|
-
### details()
|
|
31
|
+
### `details()`
|
|
32
32
|
|
|
33
33
|
Retrieve detailed information about an agent:
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Retrieve detailed information about an agent:
|
|
|
36
36
|
const details = await agent.details()
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
### generate()
|
|
39
|
+
### `generate()`
|
|
40
40
|
|
|
41
41
|
Generate a response from the agent:
|
|
42
42
|
|
|
@@ -69,7 +69,7 @@ const response = await agent.generate('Hello, how are you?', {
|
|
|
69
69
|
})
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
### stream()
|
|
72
|
+
### `stream()`
|
|
73
73
|
|
|
74
74
|
Stream responses from the agent for real-time interactions:
|
|
75
75
|
|
|
@@ -151,7 +151,7 @@ for await (const part of uiMessageStream) {
|
|
|
151
151
|
}
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
### getTool()
|
|
154
|
+
### `getTool()`
|
|
155
155
|
|
|
156
156
|
Retrieve information about a specific tool available to the agent:
|
|
157
157
|
|
|
@@ -159,7 +159,7 @@ Retrieve information about a specific tool available to the agent:
|
|
|
159
159
|
const tool = await agent.getTool('tool-id')
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
-
### executeTool()
|
|
162
|
+
### `executeTool()`
|
|
163
163
|
|
|
164
164
|
Execute a specific tool for the agent:
|
|
165
165
|
|
|
@@ -169,7 +169,7 @@ const result = await agent.executeTool('tool-id', {
|
|
|
169
169
|
})
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-
### network()
|
|
172
|
+
### `network()`
|
|
173
173
|
|
|
174
174
|
Stream responses from an agent network for multi-agent interactions:
|
|
175
175
|
|
|
@@ -183,7 +183,7 @@ response.processDataStream({
|
|
|
183
183
|
})
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
-
### approveToolCall()
|
|
186
|
+
### `approveToolCall()`
|
|
187
187
|
|
|
188
188
|
Approve a pending tool call that requires human confirmation:
|
|
189
189
|
|
|
@@ -200,7 +200,7 @@ response.processDataStream({
|
|
|
200
200
|
})
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
### declineToolCall()
|
|
203
|
+
### `declineToolCall()`
|
|
204
204
|
|
|
205
205
|
Decline a pending tool call that requires human confirmation:
|
|
206
206
|
|
|
@@ -217,7 +217,7 @@ response.processDataStream({
|
|
|
217
217
|
})
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
-
### approveToolCallGenerate()
|
|
220
|
+
### `approveToolCallGenerate()`
|
|
221
221
|
|
|
222
222
|
Approve a pending tool call when using `generate()` (non-streaming). Returns the complete response:
|
|
223
223
|
|
|
@@ -236,7 +236,7 @@ if (output.finishReason === 'suspended') {
|
|
|
236
236
|
}
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
### declineToolCallGenerate()
|
|
239
|
+
### `declineToolCallGenerate()`
|
|
240
240
|
|
|
241
241
|
Decline a pending tool call when using `generate()` (non-streaming). Returns the complete response:
|
|
242
242
|
|
|
@@ -255,7 +255,7 @@ if (output.finishReason === 'suspended') {
|
|
|
255
255
|
}
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
## Client
|
|
258
|
+
## Client tools
|
|
259
259
|
|
|
260
260
|
Client-side tools allow you to execute custom functions on the client side when the agent requests them.
|
|
261
261
|
|
|
@@ -306,11 +306,11 @@ response.processDataStream({
|
|
|
306
306
|
})
|
|
307
307
|
```
|
|
308
308
|
|
|
309
|
-
## Stored
|
|
309
|
+
## Stored agents
|
|
310
310
|
|
|
311
311
|
Stored agents are agent configurations stored in a database that can be created, updated, and deleted at runtime. They reference primitives (tools, workflows, other agents, memory, scorers) by key, which are resolved from the Mastra registry when the agent is instantiated.
|
|
312
312
|
|
|
313
|
-
### listStoredAgents()
|
|
313
|
+
### `listStoredAgents()`
|
|
314
314
|
|
|
315
315
|
Retrieve a paginated list of all stored agents:
|
|
316
316
|
|
|
@@ -333,7 +333,7 @@ const result = await mastraClient.listStoredAgents({
|
|
|
333
333
|
})
|
|
334
334
|
```
|
|
335
335
|
|
|
336
|
-
### createStoredAgent()
|
|
336
|
+
### `createStoredAgent()`
|
|
337
337
|
|
|
338
338
|
Create a new stored agent:
|
|
339
339
|
|
|
@@ -380,7 +380,7 @@ const agent = await mastraClient.createStoredAgent({
|
|
|
380
380
|
})
|
|
381
381
|
```
|
|
382
382
|
|
|
383
|
-
### getStoredAgent()
|
|
383
|
+
### `getStoredAgent()`
|
|
384
384
|
|
|
385
385
|
Get an instance of a specific stored agent:
|
|
386
386
|
|
|
@@ -388,9 +388,9 @@ Get an instance of a specific stored agent:
|
|
|
388
388
|
const storedAgent = mastraClient.getStoredAgent('my-agent')
|
|
389
389
|
```
|
|
390
390
|
|
|
391
|
-
## Stored
|
|
391
|
+
## Stored agent methods
|
|
392
392
|
|
|
393
|
-
### details()
|
|
393
|
+
### `details()`
|
|
394
394
|
|
|
395
395
|
Retrieve the stored agent configuration:
|
|
396
396
|
|
|
@@ -401,7 +401,7 @@ console.log(details.instructions)
|
|
|
401
401
|
console.log(details.model)
|
|
402
402
|
```
|
|
403
403
|
|
|
404
|
-
### update()
|
|
404
|
+
### `update()`
|
|
405
405
|
|
|
406
406
|
Update specific fields of a stored agent. All fields are optional:
|
|
407
407
|
|
|
@@ -427,7 +427,7 @@ await storedAgent.update({
|
|
|
427
427
|
})
|
|
428
428
|
```
|
|
429
429
|
|
|
430
|
-
### delete()
|
|
430
|
+
### `delete()`
|
|
431
431
|
|
|
432
432
|
Delete a stored agent:
|
|
433
433
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Logs API provides methods to access and query system logs and debugging information in Mastra.
|
|
4
4
|
|
|
5
|
-
## Getting
|
|
5
|
+
## Getting logs
|
|
6
6
|
|
|
7
7
|
Retrieve system logs with optional filtering:
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ const logs = await mastraClient.listLogs({
|
|
|
12
12
|
})
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
## Getting
|
|
15
|
+
## Getting logs for a specific run
|
|
16
16
|
|
|
17
17
|
Retrieve logs for a specific execution run:
|
|
18
18
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Memory API provides methods to manage conversation threads and message history in Mastra.
|
|
4
4
|
|
|
5
|
-
## Get
|
|
5
|
+
## Get all threads
|
|
6
6
|
|
|
7
7
|
Retrieve all memory threads for a specific resource:
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ const threads = await mastraClient.getMemoryThreads({
|
|
|
15
15
|
|
|
16
16
|
When `agentId` is omitted and storage is configured on the server, threads will be retrieved using storage directly. This is useful when multiple agents share the same threads (e.g., in workflows with multiple agent steps).
|
|
17
17
|
|
|
18
|
-
## Create a
|
|
18
|
+
## Create a new thread
|
|
19
19
|
|
|
20
20
|
Create a new memory thread:
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ const thread = await mastraClient.createMemoryThread({
|
|
|
28
28
|
})
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
## Working with a
|
|
31
|
+
## Working with a specific thread
|
|
32
32
|
|
|
33
33
|
Get an instance of a specific memory thread:
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Get an instance of a specific memory thread:
|
|
|
36
36
|
const thread = mastraClient.getMemoryThread({ threadId: 'thread-id', agentId: 'agent-id' })
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
## Thread
|
|
39
|
+
## Thread methods
|
|
40
40
|
|
|
41
41
|
### Get Thread Details
|
|
42
42
|
|
|
@@ -105,7 +105,7 @@ The clone response includes:
|
|
|
105
105
|
- `thread`: The newly created cloned thread with clone metadata
|
|
106
106
|
- `clonedMessages`: Array of the cloned messages with new IDs
|
|
107
107
|
|
|
108
|
-
## Message
|
|
108
|
+
## Message operations
|
|
109
109
|
|
|
110
110
|
### Save Messages
|
|
111
111
|
|
|
@@ -168,7 +168,7 @@ const result = await thread.deleteMessages(['message-1', 'message-2', 'message-3
|
|
|
168
168
|
// Returns: { success: true, message: "Message deleted successfully" }
|
|
169
169
|
```
|
|
170
170
|
|
|
171
|
-
## Working
|
|
171
|
+
## Working memory
|
|
172
172
|
|
|
173
173
|
Working memory allows agents to maintain persistent information about users across interactions. It can be scoped to either a specific thread or across all threads for a resource (user).
|
|
174
174
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Observability API provides methods to retrieve traces, monitor your application's performance, and score traces for evaluation. This helps you understand how your AI agents and workflows are performing.
|
|
4
4
|
|
|
5
|
-
## Getting a
|
|
5
|
+
## Getting a specific trace
|
|
6
6
|
|
|
7
7
|
Retrieve a specific trace by its ID, including all its spans and details:
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Retrieve a specific trace by its ID, including all its spans and details:
|
|
|
10
10
|
const trace = await mastraClient.getTrace('trace-id-123')
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
## Getting
|
|
13
|
+
## Getting traces with filtering
|
|
14
14
|
|
|
15
15
|
Retrieve a paginated list of trace root spans with optional filtering:
|
|
16
16
|
|
|
@@ -39,7 +39,7 @@ console.log(`Total pages: ${traces.pagination.totalPages}`)
|
|
|
39
39
|
const completeTrace = await mastraClient.getTrace(traces.spans[0].traceId)
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
## Scoring
|
|
42
|
+
## Scoring traces
|
|
43
43
|
|
|
44
44
|
Score specific traces using registered scorers for evaluation:
|
|
45
45
|
|
|
@@ -53,7 +53,7 @@ const result = await mastraClient.score({
|
|
|
53
53
|
})
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
## Getting
|
|
56
|
+
## Getting scores by span
|
|
57
57
|
|
|
58
58
|
Retrieve scores for a specific span within a trace:
|
|
59
59
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Telemetry API provides methods to retrieve and analyze traces from your Mastra application. This helps you monitor and debug your application's behavior and performance.
|
|
4
4
|
|
|
5
|
-
## Getting
|
|
5
|
+
## Getting traces
|
|
6
6
|
|
|
7
7
|
Retrieve traces with optional filtering and pagination:
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Tools API provides methods to interact with and execute tools available in the Mastra platform.
|
|
4
4
|
|
|
5
|
-
## Getting
|
|
5
|
+
## Getting all tools
|
|
6
6
|
|
|
7
7
|
Retrieve a list of all available tools:
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Retrieve a list of all available tools:
|
|
|
10
10
|
const tools = await mastraClient.listTools()
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
## Working with a
|
|
13
|
+
## Working with a specific tool
|
|
14
14
|
|
|
15
15
|
Get an instance of a specific tool:
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Get an instance of a specific tool:
|
|
|
18
18
|
const tool = mastraClient.getTool('tool-id')
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
## Tool
|
|
21
|
+
## Tool methods
|
|
22
22
|
|
|
23
23
|
### Get Tool Details
|
|
24
24
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Vectors API provides methods to work with vector embeddings for semantic search and similarity matching in Mastra.
|
|
4
4
|
|
|
5
|
-
## Working with
|
|
5
|
+
## Working with vectors
|
|
6
6
|
|
|
7
7
|
Get an instance of a vector store:
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Get an instance of a vector store:
|
|
|
10
10
|
const vector = mastraClient.getVector('vector-name')
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
## Vector
|
|
13
|
+
## Vector methods
|
|
14
14
|
|
|
15
15
|
### Get Vector Index Details
|
|
16
16
|
|