@mastra/mcp-docs-server 1.3.6-alpha.1 → 1.3.6-alpha.10
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/human-in-the-loop.md +5 -3
- package/.docs/docs/agents/processors.md +13 -8
- package/.docs/docs/agents/tools.md +24 -0
- package/.docs/docs/browser.md +0 -2
- package/.docs/docs/guides/authentication-identity.md +1 -1
- package/.docs/docs/harness/agent-controller.md +29 -0
- package/.docs/docs/memory/memory-processors.md +2 -5
- package/.docs/docs/memory/message-history.md +15 -8
- package/.docs/docs/memory/observational-memory.md +33 -4
- package/.docs/docs/memory/semantic-recall.md +2 -2
- package/.docs/docs/memory/working-memory.md +16 -0
- package/.docs/docs/observability/tracing/overview.md +1 -1
- package/.docs/docs/subagents.md +10 -8
- package/.docs/docs/workflows/control-flow.md +1 -1
- package/.docs/docs/workflows/time-travel.md +5 -3
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +60 -0
- package/.docs/integrations/deploy/temporal.md +23 -0
- package/.docs/integrations/sandboxes/docker.md +61 -0
- package/.docs/integrations/sandboxes/e2b.md +37 -0
- package/.docs/models/embeddings.md +1 -1
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/netlify.md +4 -5
- package/.docs/models/gateways/openrouter.md +4 -3
- package/.docs/models/gateways/vercel.md +4 -5
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba.md +1 -1
- package/.docs/models/providers/anthropic.md +4 -3
- package/.docs/models/providers/berget.md +1 -1
- package/.docs/models/providers/coralbricks.md +1 -2
- package/.docs/models/providers/cortecs.md +5 -2
- package/.docs/models/providers/crossmodel.md +2 -1
- package/.docs/models/providers/deepinfra.md +0 -2
- package/.docs/models/providers/edenai.md +11 -8
- package/.docs/models/providers/hyper.md +4 -6
- package/.docs/models/providers/kilo.md +19 -17
- package/.docs/models/providers/llmgateway-providers.md +4 -2
- package/.docs/models/providers/llmgateway.md +2 -1
- package/.docs/models/providers/mistral.md +10 -17
- package/.docs/models/providers/nano-gpt.md +32 -30
- package/.docs/models/providers/neuralwatt.md +3 -1
- package/.docs/models/providers/ollama-cloud.md +2 -1
- package/.docs/models/providers/opencode-go.md +7 -5
- package/.docs/models/providers/opencode.md +3 -2
- package/.docs/models/providers/ovhcloud.md +1 -2
- package/.docs/models/providers/requesty.md +7 -4
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +15 -1
- package/.docs/reference/agent-controller/session.md +17 -6
- package/.docs/reference/agents/generate.md +1 -1
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +3 -3
- package/.docs/reference/classifier/classifier.md +35 -35
- package/.docs/reference/client-js/memory.md +13 -1
- package/.docs/reference/coding-agent/create-coding-agent.md +2 -2
- package/.docs/reference/configuration.md +2 -2
- package/.docs/reference/connect/providers.md +118 -112
- package/.docs/reference/core/getClassifier.md +1 -1
- package/.docs/reference/datasets/updateItem.md +10 -0
- package/.docs/reference/deployer/vercel.md +1 -1
- package/.docs/reference/deployer.md +7 -14
- package/.docs/reference/editor/blob-store-provider.md +2 -1
- package/.docs/reference/editor/browser-provider.md +3 -2
- package/.docs/reference/editor/filesystem-provider.md +2 -1
- package/.docs/reference/editor/processor-provider.md +2 -2
- package/.docs/reference/editor/sandbox-provider.md +2 -1
- package/.docs/reference/editor/storage-workspace-ref.md +27 -2
- package/.docs/reference/evals/answer-relevancy.md +4 -2
- package/.docs/reference/evals/answer-similarity.md +1 -1
- package/.docs/reference/evals/bias.md +3 -1
- package/.docs/reference/evals/content-similarity.md +1 -1
- package/.docs/reference/evals/context-recall.md +1 -1
- package/.docs/reference/evals/context-relevance.md +6 -6
- package/.docs/reference/evals/create-classifier-scorer.md +5 -5
- package/.docs/reference/evals/hallucination.md +7 -8
- package/.docs/reference/evals/keyword-coverage.md +4 -4
- package/.docs/reference/evals/noise-sensitivity.md +6 -6
- package/.docs/reference/evals/prompt-alignment.md +1 -1
- package/.docs/reference/evals/run-evals.md +1 -1
- package/.docs/reference/evals/scorer-utils.md +8 -8
- package/.docs/reference/evals/tone-consistency.md +23 -24
- package/.docs/reference/evals/tool-call-accuracy.md +19 -15
- package/.docs/reference/evals/toxicity.md +3 -1
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/logging/pino-logger.md +4 -4
- package/.docs/reference/memory/deleteMessages.md +1 -1
- package/.docs/reference/memory/memory-class.md +2 -2
- package/.docs/reference/memory/observational-memory.md +8 -4
- package/.docs/reference/memory/summarizeConversation.md +1 -1
- package/.docs/reference/migrations/ai-sdk-v4-to-v5.md +2 -2
- package/.docs/reference/migrations/upgrade-to-v1/mcp.md +2 -0
- package/.docs/reference/migrations/upgrade-to-v1/memory.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/tools.md +1 -1
- package/.docs/reference/observability/tracing/configuration.md +10 -1
- package/.docs/reference/observability/tracing/instances.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +1 -1
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/classifier-processor.md +6 -6
- package/.docs/reference/processors/file-upload-processor.md +236 -0
- package/.docs/reference/processors/message-history-processor.md +3 -2
- package/.docs/reference/processors/model-selection-processor.md +11 -11
- package/.docs/reference/processors/processor-interface.md +2 -0
- package/.docs/reference/processors/response-cache.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +2 -3
- package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/processors/unsupported-file-handler.md +69 -0
- package/.docs/reference/processors/working-memory-processor.md +3 -2
- package/.docs/reference/project-structure.md +11 -13
- package/.docs/reference/pubsub/unix-socket-pubsub.md +6 -2
- package/.docs/reference/rag/chunk.md +2 -2
- package/.docs/reference/rag/chunking-and-embedding.md +1 -1
- package/.docs/reference/rag/database-config.md +14 -2
- package/.docs/reference/rag/document.md +7 -2
- package/.docs/reference/rag/extract-params.md +5 -5
- package/.docs/reference/rag/graph-rag-guide.md +1 -1
- package/.docs/reference/rag/metadata-filters.md +1 -1
- package/.docs/reference/rag/rerank.md +5 -4
- package/.docs/reference/rag/rerankWithScorer.md +2 -2
- package/.docs/reference/rag/retrieval.md +7 -5
- package/.docs/reference/rag/vector-databases.md +1 -1
- package/.docs/reference/server/mastra-server.md +2 -2
- package/.docs/reference/streaming/agents/stream.md +1 -1
- package/.docs/reference/tools/isolated-vm-transport.md +0 -2
- package/.docs/reference/tools/quickjs-transport.md +0 -2
- package/.docs/reference/workflows/run-methods/restart.md +6 -0
- package/.docs/reference/workflows/step.md +1 -1
- package/.docs/reference/workspace/platform-sandbox.md +36 -2
- package/package.json +6 -6
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Provider toolsets
|
|
6
6
|
|
|
7
|
-
This page documents generated toolsets for 21 providers (
|
|
7
|
+
This page documents generated toolsets for 21 providers (883 tools in this version of `@mastra/connect`). It isn't an exhaustive list of providers registered in the SDK or available in the platform catalog. [`tools()`](https://mastra.ai/reference/connect/tools) exposes a provider's toolset when the project has an active connection for its provider ID.
|
|
8
8
|
|
|
9
9
|
Tool keys are stable identifiers of the form `<provider>_<action>` and are the values accepted by `allowTools` and `disallowTools`. Toolsets are versioned with the package: the exact list depends on the installed `@mastra/connect` version, and this page reflects the version it was generated from.
|
|
10
10
|
|
|
@@ -13,15 +13,15 @@ MCP providers (Attio, Canva, Clay, Neon, Render, Robinhood, and Sanity) serve th
|
|
|
13
13
|
| Provider | Provider ID | Tools |
|
|
14
14
|
| --------------------------------------------------------------------------------------------------------- | ----------------- | ----- |
|
|
15
15
|
|  [Clerk](#clerk) | `clerk` | 42 |
|
|
16
|
-
|  [Discord](#discord) | `discord` |
|
|
16
|
+
|  [Discord](#discord) | `discord` | 34 |
|
|
17
17
|
|  [Fireflies.ai](#firefliesai) | `fireflies` | 27 |
|
|
18
|
-
|  [GitHub](#github) | `github` |
|
|
18
|
+
|  [GitHub](#github) | `github` | 49 |
|
|
19
19
|
|  [Google Calendar](#google-calendar) | `google-calendar` | 43 |
|
|
20
20
|
|  [Google Docs](#google-docs) | `google-docs` | 37 |
|
|
21
21
|
|  [Google Drive](#google-drive) | `google-drive` | 30 |
|
|
22
22
|
|  [Gmail](#gmail) | `google-mail` | 52 |
|
|
23
23
|
|  [Google Sheets](#google-sheets) | `google-sheet` | 18 |
|
|
24
|
-
|  [HubSpot](#hubspot) | `hubspot` |
|
|
24
|
+
|  [HubSpot](#hubspot) | `hubspot` | 50 |
|
|
25
25
|
|  [incident.io](#incidentio) | `incident-io` | 66 |
|
|
26
26
|
|  [Jira](#jira) | `jira` | 38 |
|
|
27
27
|
|  [Linear](#linear) | `linear` | 46 |
|
|
@@ -29,7 +29,7 @@ MCP providers (Attio, Canva, Clay, Neon, Render, Robinhood, and Sanity) serve th
|
|
|
29
29
|
|  [OpenAI](#openai) | `openai` | 26 |
|
|
30
30
|
|  [PostHog](#posthog) | `posthog` | 67 |
|
|
31
31
|
|  [Resend](#resend) | `resend` | 80 |
|
|
32
|
-
|  [Slack](#slack) | `slack` |
|
|
32
|
+
|  [Slack](#slack) | `slack` | 52 |
|
|
33
33
|
|  [Snowflake](#snowflake) | `snowflake` | 15 |
|
|
34
34
|
|  [Supabase](#supabase) | `supabase` | 27 |
|
|
35
35
|
|  [WorkOS](#workos) | `workos` | 40 |
|
|
@@ -85,7 +85,7 @@ Provider ID: `clerk` · 42 tools
|
|
|
85
85
|
|
|
86
86
|
## Discord
|
|
87
87
|
|
|
88
|
-
Provider ID: `discord` ·
|
|
88
|
+
Provider ID: `discord` · 34 tools
|
|
89
89
|
|
|
90
90
|
| Tool | Description |
|
|
91
91
|
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
@@ -116,6 +116,7 @@ Provider ID: `discord` · 33 tools
|
|
|
116
116
|
| `discord_list_roles` | List roles from Discord. |
|
|
117
117
|
| `discord_list_webhooks` | List webhooks from a Discord channel |
|
|
118
118
|
| `discord_remove_guild_member_role` | Remove a role from a guild member |
|
|
119
|
+
| `discord_search_members` | Search guild members whose username or nickname starts with the query, instead of paging the full member list. |
|
|
119
120
|
| `discord_update_channel` | Update a Discord channel. |
|
|
120
121
|
| `discord_update_guild` | Update a guild in Discord |
|
|
121
122
|
| `discord_update_guild_member` | Update a guild member in Discord |
|
|
@@ -159,56 +160,59 @@ Provider ID: `fireflies` · 27 tools
|
|
|
159
160
|
|
|
160
161
|
## GitHub
|
|
161
162
|
|
|
162
|
-
Provider ID: `github` ·
|
|
163
|
-
|
|
164
|
-
| Tool | Description
|
|
165
|
-
| ----------------------------------- |
|
|
166
|
-
| `github_add_issue_comment` | Create a new comment on an issue or pull request discussion thread
|
|
167
|
-
| `github_create_branch` | Create a branch ref from an existing commit SHA
|
|
168
|
-
| `github_create_issue` | Open a new GitHub issue in a repository.
|
|
169
|
-
| `github_create_label` | Create a repository label with name, color, and description
|
|
170
|
-
| `github_create_or_update_file` | Create a new file or update existing repository contents in a branch.
|
|
171
|
-
| `github_create_pull_request` | Open a pull request from one branch into another.
|
|
172
|
-
| `github_create_release` | Publish a Git tag release for a repository.
|
|
173
|
-
| `github_create_review_request` | Request reviewers or teams on an open pull request
|
|
174
|
-
| `github_create_tag_object` | Create an annotated Git tag object for a commit or object SHA.
|
|
175
|
-
| `github_delete_file` | Delete a file from a repository branch.
|
|
176
|
-
| `github_delete_label` | Delete a repository label by name
|
|
177
|
-
| `github_delete_release` | Delete a release by release ID.
|
|
178
|
-
| `github_get_branch` | Retrieve branch metadata and protection status.
|
|
179
|
-
| `github_get_commit` | Retrieve a commit with changed files and stats
|
|
180
|
-
| `github_get_file_contents` | Retrieve a file or directory entry from repository contents.
|
|
181
|
-
| `github_get_issue` | Fetch a single issue or pull request issue record by number.
|
|
182
|
-
| `github_get_label` | Retrieve a single repository label by name.
|
|
183
|
-
| `github_get_pull_request` | Fetch a single pull request by number.
|
|
184
|
-
| `github_get_release` | Retrieve a single release by release ID.
|
|
185
|
-
| `github_get_repository` | Retrieve repository metadata, visibility, default branch, and owner info.
|
|
186
|
-
| `github_get_review` | Retrieve a pull request review by review ID.
|
|
187
|
-
| `github_get_tag_ref` | Retrieve a tag ref or branch-style Git reference
|
|
188
|
-
| `github_get_tree` | Get a git tree for a repository, optionally recursively, listing the files and directories it contains.
|
|
189
|
-
| `github_get_workflow` | Retrieve metadata for a GitHub Actions workflow.
|
|
190
|
-
| `github_get_workflow_run` | Retrieve a workflow run with status and conclusion details.
|
|
191
|
-
| `github_list_branches` | List branches for a repository with optional pagination and protected filtering.
|
|
192
|
-
| `github_list_commits` | List commits for a repository or branch with common filters
|
|
193
|
-
| `github_list_issue_comments` | List comments attached to an issue or pull request thread
|
|
194
|
-
| `github_list_issues` | List repository issues with state, assignee, label, and pagination filters.
|
|
195
|
-
| `github_list_labels` | List repository labels with pagination
|
|
196
|
-
| `github_list_pull_request_files` | List files changed by a pull request
|
|
197
|
-
| `github_list_pull_request_reviews` | List reviews submitted on a pull request
|
|
198
|
-
| `github_list_pull_requests` | List pull requests for a repository with state and branch filters
|
|
199
|
-
| `github_list_release_assets` | List assets uploaded to a repository release.
|
|
200
|
-
| `github_list_releases` | List published and draft releases for a repository.
|
|
201
|
-
| `github_list_tags` | List tags for a repository with optional pagination.
|
|
202
|
-
| `github_list_workflow_jobs` | List jobs in a workflow run attempt
|
|
203
|
-
| `github_list_workflow_runs` | List workflow runs for a repository or a specific workflow
|
|
204
|
-
| `github_list_workflows` | List GitHub Actions workflows configured in a repository.
|
|
205
|
-
| `github_merge_pull_request` | Merge an open pull request using the selected merge method.
|
|
206
|
-
| `github_rerun_workflow_run` | Rerun a completed or failed workflow run.
|
|
207
|
-
| `
|
|
208
|
-
| `
|
|
209
|
-
| `
|
|
210
|
-
| `
|
|
211
|
-
| `
|
|
163
|
+
Provider ID: `github` · 49 tools
|
|
164
|
+
|
|
165
|
+
| Tool | Description |
|
|
166
|
+
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
167
|
+
| `github_add_issue_comment` | Create a new comment on an issue or pull request discussion thread |
|
|
168
|
+
| `github_create_branch` | Create a branch ref from an existing commit SHA |
|
|
169
|
+
| `github_create_issue` | Open a new GitHub issue in a repository. |
|
|
170
|
+
| `github_create_label` | Create a repository label with name, color, and description |
|
|
171
|
+
| `github_create_or_update_file` | Create a new file or update existing repository contents in a branch. |
|
|
172
|
+
| `github_create_pull_request` | Open a pull request from one branch into another. |
|
|
173
|
+
| `github_create_release` | Publish a Git tag release for a repository. |
|
|
174
|
+
| `github_create_review_request` | Request reviewers or teams on an open pull request |
|
|
175
|
+
| `github_create_tag_object` | Create an annotated Git tag object for a commit or object SHA. |
|
|
176
|
+
| `github_delete_file` | Delete a file from a repository branch. |
|
|
177
|
+
| `github_delete_label` | Delete a repository label by name |
|
|
178
|
+
| `github_delete_release` | Delete a release by release ID. |
|
|
179
|
+
| `github_get_branch` | Retrieve branch metadata and protection status. |
|
|
180
|
+
| `github_get_commit` | Retrieve a commit with changed files and stats |
|
|
181
|
+
| `github_get_file_contents` | Retrieve a file or directory entry from repository contents. |
|
|
182
|
+
| `github_get_issue` | Fetch a single issue or pull request issue record by number. |
|
|
183
|
+
| `github_get_label` | Retrieve a single repository label by name. |
|
|
184
|
+
| `github_get_pull_request` | Fetch a single pull request by number. |
|
|
185
|
+
| `github_get_release` | Retrieve a single release by release ID. |
|
|
186
|
+
| `github_get_repository` | Retrieve repository metadata, visibility, default branch, and owner info. |
|
|
187
|
+
| `github_get_review` | Retrieve a pull request review by review ID. |
|
|
188
|
+
| `github_get_tag_ref` | Retrieve a tag ref or branch-style Git reference |
|
|
189
|
+
| `github_get_tree` | Get a git tree for a repository, optionally recursively, listing the files and directories it contains. |
|
|
190
|
+
| `github_get_workflow` | Retrieve metadata for a GitHub Actions workflow. |
|
|
191
|
+
| `github_get_workflow_run` | Retrieve a workflow run with status and conclusion details. |
|
|
192
|
+
| `github_list_branches` | List branches for a repository with optional pagination and protected filtering. |
|
|
193
|
+
| `github_list_commits` | List commits for a repository or branch with common filters |
|
|
194
|
+
| `github_list_issue_comments` | List comments attached to an issue or pull request thread |
|
|
195
|
+
| `github_list_issues` | List repository issues with state, assignee, label, and pagination filters. |
|
|
196
|
+
| `github_list_labels` | List repository labels with pagination |
|
|
197
|
+
| `github_list_pull_request_files` | List files changed by a pull request |
|
|
198
|
+
| `github_list_pull_request_reviews` | List reviews submitted on a pull request |
|
|
199
|
+
| `github_list_pull_requests` | List pull requests for a repository with state and branch filters |
|
|
200
|
+
| `github_list_release_assets` | List assets uploaded to a repository release. |
|
|
201
|
+
| `github_list_releases` | List published and draft releases for a repository. |
|
|
202
|
+
| `github_list_tags` | List tags for a repository with optional pagination. |
|
|
203
|
+
| `github_list_workflow_jobs` | List jobs in a workflow run attempt |
|
|
204
|
+
| `github_list_workflow_runs` | List workflow runs for a repository or a specific workflow |
|
|
205
|
+
| `github_list_workflows` | List GitHub Actions workflows configured in a repository. |
|
|
206
|
+
| `github_merge_pull_request` | Merge an open pull request using the selected merge method. |
|
|
207
|
+
| `github_rerun_workflow_run` | Rerun a completed or failed workflow run. |
|
|
208
|
+
| `github_search_code` | Search file contents across GitHub repositories. The query must be scoped with a repo:, org:, or user: qualifier. |
|
|
209
|
+
| `github_search_issues` | Search issues and pull requests across GitHub with the search API instead of paging repository listings. Supports the full GitHub search query syntax. |
|
|
210
|
+
| `github_search_repositories` | Search repositories across GitHub by name, organization, language, or topic instead of needing to know the exact owner/repo up front. |
|
|
211
|
+
| `github_submit_pull_request_review` | Create a pull request review with approval, comment, or change request. |
|
|
212
|
+
| `github_update_issue` | Edit an issue's title, body, state, assignees, labels, or milestone. |
|
|
213
|
+
| `github_update_label` | Update a repository label's name, color, or description. |
|
|
214
|
+
| `github_update_pull_request` | Edit a pull request's title, body, base branch, or state. |
|
|
215
|
+
| `github_update_release` | Edit release metadata such as name, notes, or draft state. |
|
|
212
216
|
|
|
213
217
|
## Google Calendar
|
|
214
218
|
|
|
@@ -427,7 +431,7 @@ Provider ID: `google-sheet` · 18 tools
|
|
|
427
431
|
|
|
428
432
|
## HubSpot
|
|
429
433
|
|
|
430
|
-
Provider ID: `hubspot` ·
|
|
434
|
+
Provider ID: `hubspot` · 50 tools
|
|
431
435
|
|
|
432
436
|
| Tool | Description |
|
|
433
437
|
| ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -470,6 +474,7 @@ Provider ID: `hubspot` · 49 tools
|
|
|
470
474
|
| `hubspot_list_marketing_emails` | List marketing emails |
|
|
471
475
|
| `hubspot_list_tickets` | List support tickets |
|
|
472
476
|
| `hubspot_search_companies` | Search companies by criteria |
|
|
477
|
+
| `hubspot_search_contacts` | Search contacts by free-text query or property filters instead of paging the full contact list. |
|
|
473
478
|
| `hubspot_search_deals` | Search deals by criteria |
|
|
474
479
|
| `hubspot_search_tickets` | Search tickets by criteria |
|
|
475
480
|
| `hubspot_submit_form` | Submit a HubSpot form on behalf of a visitor, using the authenticated form submission endpoint. |
|
|
@@ -899,61 +904,62 @@ Provider ID: `resend` · 80 tools
|
|
|
899
904
|
|
|
900
905
|
## Slack
|
|
901
906
|
|
|
902
|
-
Provider ID: `slack` ·
|
|
903
|
-
|
|
904
|
-
| Tool | Description
|
|
905
|
-
| -------------------------------- |
|
|
906
|
-
| `slack_add_reaction` | Add an emoji reaction to a specific Slack message
|
|
907
|
-
| `slack_archive_channel` | Archive a Slack channel
|
|
908
|
-
| `slack_create_channel` | Create a new public or private Slack channel by name; does not create DMs or other conversation types.
|
|
909
|
-
| `slack_create_reminder` | Create a reminder for a user
|
|
910
|
-
| `slack_delete_message` | Delete a message from a channel
|
|
911
|
-
| `slack_delete_scheduled_message` | Cancel a scheduled message
|
|
912
|
-
| `slack_get_channel_info` | Retrieve conversation details including topic, purpose, and membership state
|
|
913
|
-
| `slack_get_channel_members` | List members in a Slack channel
|
|
914
|
-
| `slack_get_conversation_history` | Fetch paginated message history for a conversation within optional time bounds
|
|
915
|
-
| `slack_get_dnd_info` | Get a user's Do Not Disturb status and next scheduled DND window
|
|
916
|
-
| `slack_get_message_permalink` | Get a permanent URL for a message
|
|
917
|
-
| `slack_get_reactions` | Retrieve all reactions attached to a specific message
|
|
918
|
-
| `slack_get_team_info` | Retrieve workspace details such as name, domain, and icon
|
|
919
|
-
| `slack_get_thread_replies` | Fetch paginated thread replies and parent message for a conversation thread
|
|
920
|
-
| `slack_get_upload_url` | Generate an external upload URL and file ID for Slack uploads
|
|
921
|
-
| `slack_get_user_info` | Retrieve a user's account details, including profile and avatar fields
|
|
922
|
-
| `slack_get_user_presence` | Check if a user is online or away
|
|
923
|
-
| `slack_get_user_profile` | Retrieve a user's detailed profile, status, and custom fields
|
|
924
|
-
| `slack_invite_shared` | Invite external people to a channel via Slack Connect (shared channels), by email or Slack user ID.
|
|
925
|
-
| `slack_invite_to_channel` | Invite users to a Slack channel
|
|
926
|
-
| `slack_join_channel` | Join a public or private channel and return its conversation details
|
|
927
|
-
| `slack_leave_channel` | Leave a channel
|
|
928
|
-
| `slack_list_channels` | List Slack conversations with optional type filters and cursor pagination.
|
|
929
|
-
| `slack_list_custom_emoji` | List workspace custom emoji mappings, including alias-based emoji entries
|
|
930
|
-
| `slack_list_files` | List files shared in the workspace
|
|
931
|
-
| `slack_list_pins` | List all items pinned in a specific channel
|
|
932
|
-
| `slack_list_scheduled_messages` | List pending scheduled messages
|
|
933
|
-
| `slack_list_user_group_members` | List member user IDs for a specific Slack user group
|
|
934
|
-
| `slack_list_user_groups` | List workspace user groups with optional disabled and membership counts
|
|
935
|
-
| `slack_list_user_reactions` | List items the user reacted to with cursor-based pagination
|
|
936
|
-
| `slack_list_users` | List all users in the workspace
|
|
937
|
-
| `slack_lookup_user_by_email` | Look up a user by email address
|
|
938
|
-
| `slack_mark_as_read` | Move a conversation's read cursor to a specific message timestamp
|
|
939
|
-
| `slack_open_dm` | Open a direct or multi-person DM for specified users
|
|
940
|
-
| `slack_pin_message` | Pin a specific message in a channel
|
|
941
|
-
| `slack_post_message` | Post a message to a channel, DM, or thread
|
|
942
|
-
| `slack_remove_from_channel` | Remove a user from a channel
|
|
943
|
-
| `slack_remove_reaction` | Remove an emoji reaction from a specific message
|
|
944
|
-
| `slack_rename_channel` | Rename a Slack channel
|
|
945
|
-
| `slack_schedule_message` | Schedule a Slack message to a channel or thread, subject to Slack's 120-day scheduling limit.
|
|
946
|
-
| `
|
|
947
|
-
| `
|
|
948
|
-
| `
|
|
949
|
-
| `
|
|
950
|
-
| `
|
|
951
|
-
| `
|
|
952
|
-
| `
|
|
953
|
-
| `
|
|
954
|
-
| `
|
|
955
|
-
| `
|
|
956
|
-
| `
|
|
907
|
+
Provider ID: `slack` · 52 tools
|
|
908
|
+
|
|
909
|
+
| Tool | Description |
|
|
910
|
+
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
911
|
+
| `slack_add_reaction` | Add an emoji reaction to a specific Slack message |
|
|
912
|
+
| `slack_archive_channel` | Archive a Slack channel |
|
|
913
|
+
| `slack_create_channel` | Create a new public or private Slack channel by name; does not create DMs or other conversation types. |
|
|
914
|
+
| `slack_create_reminder` | Create a reminder for a user |
|
|
915
|
+
| `slack_delete_message` | Delete a message from a channel |
|
|
916
|
+
| `slack_delete_scheduled_message` | Cancel a scheduled message |
|
|
917
|
+
| `slack_get_channel_info` | Retrieve conversation details including topic, purpose, and membership state |
|
|
918
|
+
| `slack_get_channel_members` | List members in a Slack channel |
|
|
919
|
+
| `slack_get_conversation_history` | Fetch paginated message history for a conversation within optional time bounds |
|
|
920
|
+
| `slack_get_dnd_info` | Get a user's Do Not Disturb status and next scheduled DND window |
|
|
921
|
+
| `slack_get_message_permalink` | Get a permanent URL for a message |
|
|
922
|
+
| `slack_get_reactions` | Retrieve all reactions attached to a specific message |
|
|
923
|
+
| `slack_get_team_info` | Retrieve workspace details such as name, domain, and icon |
|
|
924
|
+
| `slack_get_thread_replies` | Fetch paginated thread replies and parent message for a conversation thread |
|
|
925
|
+
| `slack_get_upload_url` | Generate an external upload URL and file ID for Slack uploads |
|
|
926
|
+
| `slack_get_user_info` | Retrieve a user's account details, including profile and avatar fields |
|
|
927
|
+
| `slack_get_user_presence` | Check if a user is online or away |
|
|
928
|
+
| `slack_get_user_profile` | Retrieve a user's detailed profile, status, and custom fields |
|
|
929
|
+
| `slack_invite_shared` | Invite external people to a channel via Slack Connect (shared channels), by email or Slack user ID. |
|
|
930
|
+
| `slack_invite_to_channel` | Invite users to a Slack channel |
|
|
931
|
+
| `slack_join_channel` | Join a public or private channel and return its conversation details |
|
|
932
|
+
| `slack_leave_channel` | Leave a channel |
|
|
933
|
+
| `slack_list_channels` | List Slack conversations with optional type filters and cursor pagination. |
|
|
934
|
+
| `slack_list_custom_emoji` | List workspace custom emoji mappings, including alias-based emoji entries |
|
|
935
|
+
| `slack_list_files` | List files shared in the workspace |
|
|
936
|
+
| `slack_list_pins` | List all items pinned in a specific channel |
|
|
937
|
+
| `slack_list_scheduled_messages` | List pending scheduled messages |
|
|
938
|
+
| `slack_list_user_group_members` | List member user IDs for a specific Slack user group |
|
|
939
|
+
| `slack_list_user_groups` | List workspace user groups with optional disabled and membership counts |
|
|
940
|
+
| `slack_list_user_reactions` | List items the user reacted to with cursor-based pagination |
|
|
941
|
+
| `slack_list_users` | List all users in the workspace |
|
|
942
|
+
| `slack_lookup_user_by_email` | Look up a user by email address |
|
|
943
|
+
| `slack_mark_as_read` | Move a conversation's read cursor to a specific message timestamp |
|
|
944
|
+
| `slack_open_dm` | Open a direct or multi-person DM for specified users |
|
|
945
|
+
| `slack_pin_message` | Pin a specific message in a channel |
|
|
946
|
+
| `slack_post_message` | Post a message to a channel, DM, or thread |
|
|
947
|
+
| `slack_remove_from_channel` | Remove a user from a channel |
|
|
948
|
+
| `slack_remove_reaction` | Remove an emoji reaction from a specific message |
|
|
949
|
+
| `slack_rename_channel` | Rename a Slack channel |
|
|
950
|
+
| `slack_schedule_message` | Schedule a Slack message to a channel or thread, subject to Slack's 120-day scheduling limit. |
|
|
951
|
+
| `slack_search_channels` | Find Slack channels by name without paging manually. Scans conversations.list and returns channels whose name contains the query (case-insensitive). |
|
|
952
|
+
| `slack_search_files` | Search workspace files with pagination |
|
|
953
|
+
| `slack_search_messages` | Search for messages matching a query |
|
|
954
|
+
| `slack_send_ephemeral_message` | Send a message visible only to one user in a channel |
|
|
955
|
+
| `slack_send_message` | Send a message to a channel |
|
|
956
|
+
| `slack_set_channel_purpose` | Update a channel's purpose text for a conversation |
|
|
957
|
+
| `slack_set_channel_topic` | Set the topic of a channel |
|
|
958
|
+
| `slack_set_status` | Set a user's status |
|
|
959
|
+
| `slack_set_user_presence` | Set a user's presence to online or away |
|
|
960
|
+
| `slack_unarchive_channel` | Restore an archived conversation so members can use it again |
|
|
961
|
+
| `slack_unpin_message` | Remove a pinned message from a channel |
|
|
962
|
+
| `slack_update_message` | Edit an existing message in a Slack channel |
|
|
957
963
|
|
|
958
964
|
## Snowflake
|
|
959
965
|
|
|
@@ -34,10 +34,20 @@ const updated = await dataset.updateItem({
|
|
|
34
34
|
|
|
35
35
|
**groundTruth** (`unknown`): Updated ground truth.
|
|
36
36
|
|
|
37
|
+
**expectedTrajectory** (`unknown`): Updated expected trajectory for trajectory scorers.
|
|
38
|
+
|
|
39
|
+
**toolMocks** (`DatasetItemToolMock[]`): Updated static tool mocks used during experiments. Each mock has toolName, args, output, and an optional matchArgs ('strict' | 'ignore').
|
|
40
|
+
|
|
41
|
+
**unmockedToolPolicy** (`'allow' | 'deny'`): Overrides how the experiment handles tool calls that are not declared in toolMocks.
|
|
42
|
+
|
|
43
|
+
**requestContext** (`Record<string, unknown>`): Updated request context applied when the item runs.
|
|
44
|
+
|
|
37
45
|
**scorerIds** (`string[] | null`): Scorer IDs that override dataset-attached scorers for this item. Use \[] to run no scorers, null to remove the override and restore dataset inheritance, or omit the field to preserve the current value.
|
|
38
46
|
|
|
39
47
|
**metadata** (`Record<string, unknown>`): Updated metadata.
|
|
40
48
|
|
|
49
|
+
**source** (`{ type: 'csv' | 'json' | 'trace' | 'llm' | 'experiment-result' | 'candidate-screener'; referenceId?: string }`): Updated provenance of the item.
|
|
50
|
+
|
|
41
51
|
## Returns
|
|
42
52
|
|
|
43
53
|
**result** (`Promise<DatasetItem>`): The updated dataset item. See dataset.addItem() for the item shape.
|
|
@@ -115,6 +115,6 @@ With `studio: true`:
|
|
|
115
115
|
└── node_modules/
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
When studio is enabled, the routing is configured so that
|
|
118
|
+
When studio is enabled, the routing is configured so that `/` and the Studio routes listed in the Studio build's route manifest are served from `index.html` for client-side routing, and static assets (JS, CSS) are served from Vercel's Edge CDN with no function invocations. All other paths, including `/api/*` and custom routes registered with `registerApiRoute()`, are handled by the serverless function. Custom routes that fall under a Studio route (for example, `/agents/custom`) are served from `index.html` instead, so register custom routes outside Studio's route roots.
|
|
119
119
|
|
|
120
120
|
This folder is generated during build and shouldn't be committed to version control.
|
|
@@ -44,7 +44,7 @@ class CustomDeployer extends Deployer {
|
|
|
44
44
|
|
|
45
45
|
## Methods
|
|
46
46
|
|
|
47
|
-
**getEnvFiles** (`() => Promise<string[]>`): Returns
|
|
47
|
+
**getEnvFiles** (`() => Promise<string[]>`): Returns the environment files to be used during deployment. By default, it returns every existing file among '.env', '.env.local', and '.env.production', in that order (lowest to highest precedence).
|
|
48
48
|
|
|
49
49
|
**deploy** (`(outputDirectory: string) => Promise<void>`): Abstract method that must be implemented by subclasses. Handles the deployment process to the specified output directory.
|
|
50
50
|
|
|
@@ -65,7 +65,7 @@ The Deployer class inherits the following key methods from the Bundler class:
|
|
|
65
65
|
The Deployer abstract class implements a structured deployment lifecycle:
|
|
66
66
|
|
|
67
67
|
1. **Initialization**: The deployer is initialized with a name and creates a Deps instance for dependency management.
|
|
68
|
-
2. **Environment Setup**: The `getEnvFiles` method identifies environment files (.env.production
|
|
68
|
+
2. **Environment Setup**: The `getEnvFiles` method identifies the environment files (`.env`, `.env.local`, `.env.production`) to be used during deployment.
|
|
69
69
|
3. **Preparation**: The `prepare` method (inherited from Bundler) cleans the output directory and creates necessary subdirectories.
|
|
70
70
|
4. **Bundling**: The `_bundle` method (inherited from Bundler) packages the application code and its dependencies.
|
|
71
71
|
5. **Deployment**: The abstract `deploy` method is implemented by subclasses to handle the actual deployment process.
|
|
@@ -74,23 +74,16 @@ The Deployer abstract class implements a structured deployment lifecycle:
|
|
|
74
74
|
|
|
75
75
|
The Deployer class includes built-in support for environment file management through the `getEnvFiles` method. This method:
|
|
76
76
|
|
|
77
|
-
- Looks for environment files in a predefined order
|
|
78
|
-
-
|
|
79
|
-
- Returns an array of found environment files
|
|
77
|
+
- Looks for environment files in a predefined order, from lowest to highest precedence: `.env`, `.env.local`, `.env.production`
|
|
78
|
+
- Returns every file that exists, in that order, so values in later files override earlier ones
|
|
80
79
|
- Returns an empty array if no environment files are found
|
|
81
80
|
|
|
82
81
|
```typescript
|
|
83
82
|
getEnvFiles(): Promise<string[]> {
|
|
84
|
-
const possibleFiles = ['.env
|
|
83
|
+
const possibleFiles = ['.env', '.env.local', '.env.production'];
|
|
84
|
+
const fileService = new FileService();
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
const fileService = new FileService();
|
|
88
|
-
const envFile = fileService.getFirstExistingFile(possibleFiles);
|
|
89
|
-
|
|
90
|
-
return Promise.resolve([envFile]);
|
|
91
|
-
} catch {}
|
|
92
|
-
|
|
93
|
-
return Promise.resolve([]);
|
|
86
|
+
return Promise.resolve(fileService.getExistingFiles(possibleFiles));
|
|
94
87
|
}
|
|
95
88
|
```
|
|
96
89
|
|
|
@@ -36,7 +36,8 @@ new MastraEditor({
|
|
|
36
36
|
## Implementing a provider
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import type {
|
|
39
|
+
import type { BlobStoreProvider } from '@mastra/core/editor'
|
|
40
|
+
import type { BlobStore } from '@mastra/core/storage'
|
|
40
41
|
|
|
41
42
|
export const myBlobStoreProvider: BlobStoreProvider<{ bucket: string; region: string }> = {
|
|
42
43
|
id: 'my-blob-store',
|
|
@@ -31,12 +31,13 @@ new MastraEditor({
|
|
|
31
31
|
|
|
32
32
|
**configSchema** (`Record<string, unknown>`): JSON Schema describing provider-specific configuration. Used by the UI to render config forms.
|
|
33
33
|
|
|
34
|
-
**createBrowser** (`(config: TConfig) => MastraBrowser | Promise<MastraBrowser>`): Create a runtime MastraBrowser instance from the stored config.
|
|
34
|
+
**createBrowser** (`(config: TConfig) => MastraBrowser | Promise<MastraBrowser>`): Create a runtime MastraBrowser instance from the stored config. For a static browser config, it is called once per agent hydration and the resulting instance is cached alongside the agent.
|
|
35
35
|
|
|
36
36
|
## Implementing a provider
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import type { BrowserProvider
|
|
39
|
+
import type { BrowserProvider } from '@mastra/core/editor'
|
|
40
|
+
import type { MastraBrowser } from '@mastra/core/browser'
|
|
40
41
|
|
|
41
42
|
export const myBrowserProvider: BrowserProvider<{ apiKey: string }> = {
|
|
42
43
|
id: 'my-browser',
|
|
@@ -36,7 +36,8 @@ new MastraEditor({
|
|
|
36
36
|
## Implementing a provider
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import type { FilesystemProvider
|
|
39
|
+
import type { FilesystemProvider } from '@mastra/core/editor'
|
|
40
|
+
import type { WorkspaceFilesystem } from '@mastra/core/workspace'
|
|
40
41
|
|
|
41
42
|
export const myFilesystemProvider: FilesystemProvider<{ bucket: string; region: string }> = {
|
|
42
43
|
id: 'my-fs',
|
|
@@ -15,11 +15,11 @@ Providers are supplied via `MastraEditorConfig.processorProviders`.
|
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { MastraEditor } from '@mastra/editor'
|
|
18
|
-
import {
|
|
18
|
+
import { moderationProvider } from '@mastra/core/processor-provider'
|
|
19
19
|
|
|
20
20
|
new MastraEditor({
|
|
21
21
|
processorProviders: {
|
|
22
|
-
moderation:
|
|
22
|
+
moderation: moderationProvider,
|
|
23
23
|
},
|
|
24
24
|
})
|
|
25
25
|
```
|
|
@@ -36,7 +36,8 @@ new MastraEditor({
|
|
|
36
36
|
## Implementing a provider
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import type { SandboxProvider
|
|
39
|
+
import type { SandboxProvider } from '@mastra/core/editor'
|
|
40
|
+
import type { WorkspaceSandbox } from '@mastra/core/workspace'
|
|
40
41
|
|
|
41
42
|
export const mySandboxProvider: SandboxProvider<{ apiKey: string }> = {
|
|
42
43
|
id: 'my-sandbox',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# StorageWorkspaceRef
|
|
6
6
|
|
|
7
|
-
`StorageWorkspaceRef` is the discriminated union used to attach a workspace to a stored agent. It
|
|
7
|
+
`StorageWorkspaceRef` is the discriminated union used to attach a workspace to a stored agent. It points at a workspace registered on the Mastra runtime by ID, embeds a workspace snapshot inline, or names a workspace provider registered on `MastraEditor.workspaces` that builds the workspace.
|
|
8
8
|
|
|
9
9
|
It's the type used by [`BuilderAgentDefaults.workspace`](https://agent-builder.mastra.ai/reference/builder-agent-defaults) and by stored agent records.
|
|
10
10
|
|
|
@@ -45,6 +45,23 @@ new MastraEditor({
|
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
})
|
|
48
|
+
|
|
49
|
+
// Variant 3 — build the workspace with a registered workspace provider
|
|
50
|
+
new MastraEditor({
|
|
51
|
+
workspaces: { 'my-provider': myWorkspaceProvider },
|
|
52
|
+
builder: {
|
|
53
|
+
enabled: true,
|
|
54
|
+
configuration: {
|
|
55
|
+
agent: {
|
|
56
|
+
workspace: {
|
|
57
|
+
type: 'provider',
|
|
58
|
+
provider: 'my-provider',
|
|
59
|
+
config: { region: 'us-east-1' },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
})
|
|
48
65
|
```
|
|
49
66
|
|
|
50
67
|
## Variants
|
|
@@ -61,6 +78,14 @@ new MastraEditor({
|
|
|
61
78
|
|
|
62
79
|
**{ type: 'inline'; config: StorageWorkspaceSnapshotType }.config** (`StorageWorkspaceSnapshotType`): Serialized workspace configuration (filesystem, sandbox, mounts, search, skills, tools). See the StorageWorkspaceSnapshotType section below for the field list.
|
|
63
80
|
|
|
81
|
+
**{ type: 'provider'; provider: string; config: Record\<string, unknown> }** (`ProviderRef`): Build the entire workspace with a workspace provider registered on MastraEditor.workspaces. The ref is stored as-is in the agent snapshot; no separate workspace record is persisted.
|
|
82
|
+
|
|
83
|
+
**{ type: 'provider'; provider: string; config: Record\<string, unknown> }.type** (`'provider'`): Discriminant. Must be the literal "provider".
|
|
84
|
+
|
|
85
|
+
**{ type: 'provider'; provider: string; config: Record\<string, unknown> }.provider** (`string`): Id of a workspace provider registered via new MastraEditor({ workspaces }).
|
|
86
|
+
|
|
87
|
+
**{ type: 'provider'; provider: string; config: Record\<string, unknown> }.config** (`Record<string, unknown>`): Provider-specific configuration passed to the provider's createWorkspace(config).
|
|
88
|
+
|
|
64
89
|
## `StorageWorkspaceSnapshotType`
|
|
65
90
|
|
|
66
91
|
The shape embedded under `{ type: 'inline', config }`. Defined in `@mastra/core/storage`.
|
|
@@ -87,7 +112,7 @@ The shape embedded under `{ type: 'inline', config }`. Defined in `@mastra/core/
|
|
|
87
112
|
|
|
88
113
|
## Hydration
|
|
89
114
|
|
|
90
|
-
`StorageWorkspaceRef` is resolved lazily on `mastra.editor.agent.getById()`, not on `list()`. The editor looks up filesystem and sandbox providers on `MastraEditor.filesystems` / `MastraEditor.sandboxes` and materializes a runtime `Workspace`. Missing providers surface as a warning and the workspace is omitted.
|
|
115
|
+
`StorageWorkspaceRef` is resolved lazily on `mastra.editor.agent.getById()`, not on `list()`. The editor looks up filesystem and sandbox providers on `MastraEditor.filesystems` / `MastraEditor.sandboxes` and materializes a runtime `Workspace`. Missing providers surface as a warning and the workspace is omitted. For `{ type: 'provider' }` refs, the editor calls `createWorkspace(config)` on the provider registered on `MastraEditor.workspaces`. An unregistered provider throws an error.
|
|
91
116
|
|
|
92
117
|
## Related
|
|
93
118
|
|
|
@@ -10,9 +10,11 @@ The `createAnswerRelevancyScorer()` function accepts a single options object wit
|
|
|
10
10
|
|
|
11
11
|
**model** (`LanguageModel`): Configuration for the model used to evaluate relevancy.
|
|
12
12
|
|
|
13
|
-
**
|
|
13
|
+
**options** (`Record<'uncertaintyWeight' | 'scale', number>`): Configuration options for the scorer. (Default: `{ uncertaintyWeight: 0.3, scale: 1 }`)
|
|
14
14
|
|
|
15
|
-
**
|
|
15
|
+
**options.uncertaintyWeight** (`number`): Weight given to 'unsure' verdicts in scoring (0-1).
|
|
16
|
+
|
|
17
|
+
**options.scale** (`number`): Maximum score value.
|
|
16
18
|
|
|
17
19
|
This function returns an instance of the MastraScorer class. The `.run()` method accepts the same input as other scorers (see the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)), but the return value includes LLM-specific fields as documented below.
|
|
18
20
|
|
|
@@ -26,7 +26,7 @@ The `createAnswerSimilarityScorer()` function creates a scorer that evaluates ho
|
|
|
26
26
|
|
|
27
27
|
**options.scale** (`number`): Score scaling factor.
|
|
28
28
|
|
|
29
|
-
This function returns an instance of the MastraScorer class. The `.run()` method accepts the same input as other scorers (see the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)), but
|
|
29
|
+
This function returns an instance of the MastraScorer class. The `.run()` method accepts the same input as other scorers (see the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)), but expects ground truth to be provided in the run object. When `options.requireGroundTruth` is `true` (the default), a run without ground truth throws an error. Set it to `false` to score runs without ground truth as 0.
|
|
30
30
|
|
|
31
31
|
## `.run()` returns
|
|
32
32
|
|
|
@@ -10,7 +10,9 @@ The `createBiasScorer()` function accepts a single options object with the follo
|
|
|
10
10
|
|
|
11
11
|
**model** (`LanguageModel`): Configuration for the model used to evaluate bias.
|
|
12
12
|
|
|
13
|
-
**
|
|
13
|
+
**options** (`BiasMetricOptions`): Configuration options for the scorer.
|
|
14
|
+
|
|
15
|
+
**options.scale** (`number`): Maximum score value.
|
|
14
16
|
|
|
15
17
|
This function returns an instance of the MastraScorer class. The `.run()` method accepts the same input as other scorers (see the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)), but the return value includes LLM-specific fields as documented below.
|
|
16
18
|
|
|
@@ -44,7 +44,7 @@ The scorer evaluates textual similarity through character-level matching and con
|
|
|
44
44
|
- Considers relative positions
|
|
45
45
|
- Accounts for length differences
|
|
46
46
|
|
|
47
|
-
Final score: `similarity_value
|
|
47
|
+
Final score: `similarity_value` (0-1, returned directly from the string-similarity comparison)
|
|
48
48
|
|
|
49
49
|
## Example
|
|
50
50
|
|