@salesforce/afv-skills 1.59.0 → 1.61.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/package.json +1 -1
- package/skills/agentforce-architecture-analyze/SKILL.md +66 -17
- package/skills/agentforce-architecture-analyze/assets/cli/show_access_token.yaml +4 -7
- package/skills/agentforce-architecture-analyze/references/contract.json +1 -1
- package/skills/agentforce-architecture-analyze/scripts/emit_env.py +2 -2
- package/skills/agentforce-architecture-analyze/scripts/main.py +40 -44
- package/skills/agentforce-architecture-analyze/scripts/rest_client.py +11 -3
- package/skills/agentforce-architecture-analyze/scripts/sf_cli.py +77 -10
- package/skills/agentforce-architecture-analyze/scripts/tests/test_end_to_end_fixture.py +1 -0
- package/skills/agentforce-architecture-analyze/scripts/tests/test_flow_children_inflation.py +1 -0
- package/skills/agentforce-architecture-analyze/scripts/tests/test_main_pipeline.py +53 -2
- package/skills/agentforce-architecture-analyze/scripts/tests/test_resolve_creds.py +184 -36
- package/skills/agentforce-architecture-analyze/scripts/tests/test_rest_client.py +17 -0
- package/skills/agentforce-architecture-analyze/scripts/tests/test_sf_cli.py +165 -11
- package/skills/agentforce-architecture-analyze/scripts/tests/test_skill_md_pipeline_block.py +319 -0
- package/skills/agentforce-d360-analyze/SKILL.md +28 -10
- package/skills/agentforce-d360-analyze/scripts/dc.py +200 -50
- package/skills/agentforce-d360-analyze/scripts/discover_sessions.py +10 -6
- package/skills/agentforce-d360-analyze/scripts/fetch_dc.py +22 -6
- package/skills/agentforce-d360-analyze/scripts/resolve_session.py +21 -13
- package/skills/agentforce-d360-analyze/scripts/tests/test_dc_and_resolve_session.py +298 -76
- package/skills/agentforce-d360-analyze/scripts/tests/test_default_target_org.py +432 -0
- package/skills/agentforce-d360-analyze/scripts/tests/test_discover_sessions.py +1 -1
- package/skills/agentforce-d360-analyze/scripts/tests/test_resolve_session_main.py +9 -3
- package/skills/agentforce-d360-analyze/scripts/tests/test_skill_md_prefix_block.py +176 -0
- package/skills/consumer-goods-accruals-datakit-deploy/SKILL.md +17 -27
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/setup.js +7 -17
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/00-check-prerequisites.js +47 -63
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/01-download-static-resource.js +10 -13
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/02-replace-org-id.js +46 -46
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/03-deploy-metadata.js +4 -21
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/06-create-dataspace.js +58 -82
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/07-deploy-accruals-reports.js +16 -315
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/08-deploy-ui.js +9 -24
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/09-completion.js +44 -44
- package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/utils.js +11 -63
- package/skills/consumer-goods-rtr-datacloud-export-configure/SKILL.md +2 -1
- package/skills/consumer-goods-tpe-dashboard-configure/SKILL.md +2 -1
- package/skills/consumer-goods-tpe-dashboard-custom-kpi-configure/SKILL.md +2 -1
- package/skills/consumer-goods-tpe-datakit-deploy/SKILL.md +2 -1
- package/skills/data360-schema-get/SKILL.md +3 -3
- package/skills/design-systems-slds-validate/references/report-format.md +1 -1
- package/skills/dx-org-manage/SKILL.md +1 -0
- package/skills/dx-org-shape-manage/SKILL.md +1 -0
- package/skills/dx-org-snapshot-manage/SKILL.md +172 -0
- package/skills/dx-org-snapshot-manage/examples/create_error_output.json +16 -0
- package/skills/dx-org-snapshot-manage/examples/create_success_output.json +19 -0
- package/skills/dx-org-snapshot-manage/examples/delete_output.json +9 -0
- package/skills/dx-org-snapshot-manage/examples/get_output.json +19 -0
- package/skills/dx-org-snapshot-manage/examples/list_output.json +36 -0
- package/skills/dx-org-snapshot-manage/references/cli_flags.md +179 -0
- package/skills/dx-org-snapshot-manage/references/snapshot_usage.md +55 -0
- package/skills/dx-org-trial-expiration-check/SKILL.md +1 -1
- package/skills/dx-org-trial-expiration-check/scripts/check_expiration.sh +2 -2
- package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +7 -5
- package/skills/education-cloud-student-recruitment-agent-configure/references/prerequisites.md +11 -11
- package/skills/experience-content-media-image-generate/SKILL.md +83 -0
- package/skills/experience-content-media-image-generate/scripts/download-image.sh +84 -0
- package/skills/external-diagram-mermaid-generate/SKILL.md +12 -12
- package/skills/field-service-data-capture-migrate/references/component-mapping.md +1 -1
- package/skills/field-service-data-capture-migrate/references/fsm-dc-capability-catalog.md +1 -2
- package/skills/field-service-data-capture-migrate/references/known-deploy-errors.md +1 -0
- package/skills/field-service-data-capture-migrate/references/transformer-rules.md +1 -1
- package/skills/field-service-data-capture-migrate/scripts/transform_flow.py +12 -1
- package/skills/field-service-data-capture-migrate/scripts/vendor/build_flow.py +4 -1
- package/skills/field-service-setup-orchestrator-get/SKILL.md +0 -1
- package/skills/insurance-brokerage-agency-billing-configure/SKILL.md +233 -0
- package/skills/insurance-brokerage-agency-billing-configure/references/accounting-setup.md +117 -0
- package/skills/insurance-brokerage-agency-billing-configure/references/billing-rules-config.md +237 -0
- package/skills/insurance-brokerage-agency-billing-configure/references/billing-settings.md +271 -0
- package/skills/insurance-brokerage-agency-billing-configure/references/demo-policy-config.md +138 -0
- package/skills/insurance-brokerage-agency-billing-configure/references/org-defaults.md +64 -0
- package/skills/insurance-brokerage-agency-billing-configure/references/permissions-config.md +226 -0
- package/skills/insurance-brokerage-agency-billing-configure/references/prerequisites.md +142 -0
- package/skills/life-sciences-fieldsalesrep-coordinate/SKILL.md +3 -2
- package/skills/life-sciences-fieldsalesrep-coordinate/references/stage-5-visit-creation-execution-state-and-recovery.md +3 -3
- package/skills/life-sciences-fieldsalesrep-coordinate/references/stage-5-visit-creation-overview.md +68 -45
- package/skills/life-sciences-fieldsalesrep-coordinate/references/stage-5-visit-creation-visit-creation-data.md +17 -18
- package/skills/life-sciences-kam-coordinate/references/stage-5-data-and-plan-templates-overview.md +16 -3
- package/skills/life-sciences-kam-coordinate/references/stage-5-data-creation-data.md +16 -13
- package/skills/marketing-message-test/SKILL.md +194 -0
- package/skills/marketing-message-test/references/api-contract.md +333 -0
- package/skills/omnistudio-callable-apex-generate/SKILL.md +3 -3
- package/skills/omnistudio-datamapper-generate/SKILL.md +6 -6
- package/skills/omnistudio-datapacks-deploy/SKILL.md +11 -11
- package/skills/omnistudio-dependencies-analyze/SKILL.md +5 -5
- package/skills/omnistudio-epc-catalog-generate/SKILL.md +6 -6
- package/skills/omnistudio-flexcard-generate/SKILL.md +6 -6
- package/skills/omnistudio-integration-procedure-generate/SKILL.md +6 -6
- package/skills/omnistudio-omniscript-generate/SKILL.md +6 -5
- package/skills/platform-apex-logs-debug/SKILL.md +1 -0
- package/skills/platform-metadata-deploy/SKILL.md +1 -0
- package/skills/platform-models-api-configure/SKILL.md +5 -5
- package/skills/platform-soql-query/SKILL.md +1 -0
- package/skills/service-itsm-agentic-setup-cmdb-coordinate/SKILL.md +17 -6
- package/skills/service-itsm-agentic-setup-incident-sla-configure/SKILL.md +107 -192
- package/skills/service-itsm-agentic-setup-incident-sla-configure/assets/attach-milestone-action.json +6 -6
- package/skills/service-itsm-agentic-setup-incident-sla-configure/examples/milestone-patterns.md +49 -20
- package/skills/service-itsm-agentic-setup-incident-sla-configure/examples/output-templates.md +4 -4
- package/skills/service-itsm-agentic-setup-incident-sla-configure/references/mcp-invocation.md +224 -290
- package/skills/service-itsm-agentic-setup-incident-sla-configure/references/workflow.md +295 -0
- package/skills/service-itsm-incident-priority-configure/SKILL.md +1 -1
- package/skills/service-itsm-slack-itservice-configure/SKILL.md +2 -1
- package/skills/service-itsm-slack-itservice-configure/references/manage-slack-connection.md +2 -2
- package/skills/service-omni-channel-setup-coordinate/SKILL.md +20 -13
- package/skills/service-omni-channel-setup-coordinate/scripts/integration-driver.sh +5 -55
- package/skills/service-omni-channel-setup-coordinate/scripts/tests/test_omni_contracts.py +0 -38
- package/skills/service-omni-command-center-analyze/SKILL.md +2 -3
- package/skills/service-omni-command-center-analyze/scripts/analyze.sh +3 -3
- package/skills/tableau-next-asset-create/README.md +65 -0
- package/skills/tableau-next-asset-create/SKILL.md +409 -0
- package/skills/tableau-next-asset-create/references/admin-users.md +149 -0
- package/skills/tableau-next-asset-create/references/ai-readiness.md +355 -0
- package/skills/tableau-next-asset-create/references/alerts.md +111 -0
- package/skills/tableau-next-asset-create/references/build-workflow.md +819 -0
- package/skills/tableau-next-asset-create/references/dashboard-authoring.md +302 -0
- package/skills/tableau-next-asset-create/references/dashboard-design-principles.md +352 -0
- package/skills/tableau-next-asset-create/references/data-transform-gotchas.md +210 -0
- package/skills/tableau-next-asset-create/references/data-understanding.md +387 -0
- package/skills/tableau-next-asset-create/references/deep-reference-index.md +74 -0
- package/skills/tableau-next-asset-create/references/destructive-operations.md +62 -0
- package/skills/tableau-next-asset-create/references/edit-dashboard.md +273 -0
- package/skills/tableau-next-asset-create/references/edit-visualization.md +529 -0
- package/skills/tableau-next-asset-create/references/empty-source-handling.md +104 -0
- package/skills/tableau-next-asset-create/references/ingest-and-metric-gotchas.md +638 -0
- package/skills/tableau-next-asset-create/references/insight-bundle.md +69 -0
- package/skills/tableau-next-asset-create/references/large-flat-file-handling.md +331 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/_envelope.json +54 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/_shared-widget-fields.json +122 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/add_page.json +29 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/delete_page.json +27 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/discard_dashboard.json +11 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/move_widget.json +30 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/move_widget_to_page.json +30 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/place_widget_on_page.json +30 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/remove_widget_from_dashboard.json +16 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/remove_widget_from_page.json +26 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/rename_page.json +28 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/save_dashboard.json +18 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/undo.json +11 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/upsert_button_widget.json +69 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/upsert_container_widget.json +88 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/upsert_filter_widget.json +146 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/upsert_metric_widget.json +78 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/upsert_navigation_widget.json +80 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/upsert_parameter_widget.json +160 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/upsert_text_widget.json +103 -0
- package/skills/tableau-next-asset-create/references/schemas/edit-dashboard/upsert_visualization_widget.json +68 -0
- package/skills/tableau-next-asset-create/references/sdm-tool-reference.md +721 -0
- package/skills/tableau-next-asset-create/references/semantic-query-and-enrichment.md +355 -0
- package/skills/tableau-next-asset-create/references/shared-gates.md +322 -0
- package/skills/tableau-next-asset-create/references/sharing-and-promotion.md +306 -0
- package/skills/tableau-next-asset-create/references/tasks/ai-readiness-audit.md +51 -0
- package/skills/tableau-next-asset-create/references/tasks/analyze-data.md +48 -0
- package/skills/tableau-next-asset-create/references/tasks/build-dashboard.md +66 -0
- package/skills/tableau-next-asset-create/references/tasks/build-end-to-end.md +73 -0
- package/skills/tableau-next-asset-create/references/tasks/create-data-transform.md +51 -0
- package/skills/tableau-next-asset-create/references/tasks/create-viz.md +58 -0
- package/skills/tableau-next-asset-create/references/tasks/edit-dashboard.md +80 -0
- package/skills/tableau-next-asset-create/references/tasks/edit-sdm.md +106 -0
- package/skills/tableau-next-asset-create/references/tasks/edit-viz.md +40 -0
- package/skills/tableau-next-asset-create/references/tasks/enrich-model.md +68 -0
- package/skills/tableau-next-asset-create/references/tasks/ingest-flat-file.md +68 -0
- package/skills/tableau-next-asset-create/references/tasks/manage-alert.md +35 -0
- package/skills/tableau-next-asset-create/references/tasks/profile-dataset.md +47 -0
- package/skills/tableau-next-asset-create/references/tasks/promote-or-reuse.md +46 -0
- package/skills/tableau-next-asset-create/references/tasks/provision-user.md +39 -0
- package/skills/tableau-next-asset-create/references/tasks/query-model.md +92 -0
- package/skills/tableau-next-asset-create/references/tasks/review-verified-questions.md +42 -0
- package/skills/tableau-next-asset-create/references/tasks/share-asset.md +37 -0
- package/skills/tableau-next-asset-create/references/verified-questions.md +125 -0
- package/skills/tableau-next-asset-create/references/viz-authoring.md +992 -0
- package/skills/service-de-channel-consent-configure/SKILL.md +0 -230
- package/skills/service-itsm-agentic-setup-incident-sla-configure/assets/predefined-incident-policy.json +0 -102
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Task: Review verified questions / score agent SQL
|
|
2
|
+
|
|
3
|
+
List or classify Analytic Verified Questions, manage utterance records, or
|
|
4
|
+
score candidate SQL against expected SQL. Do **not** use this to answer a
|
|
5
|
+
business question (`query-model.md` / `analyze-data.md`) or to backfill
|
|
6
|
+
readiness metadata (`ai-readiness-audit.md`).
|
|
7
|
+
|
|
8
|
+
## Gates (assert before any tool call) → `../shared-gates.md`
|
|
9
|
+
|
|
10
|
+
Required: **G1**
|
|
11
|
+
|
|
12
|
+
- **G1** (router-asserted): a `mcp__tableau-next-*__` tool must be connected.
|
|
13
|
+
- **Tool names are written bare** — invoke each under your client's name for
|
|
14
|
+
that `tableau-next-*` server tool (`shared-gates.md`).
|
|
15
|
+
- **Confirmation (this guide):** `delete_analytics_utterances` is
|
|
16
|
+
irreversible — confirm first.
|
|
17
|
+
|
|
18
|
+
## When **not** to use these tools
|
|
19
|
+
|
|
20
|
+
- **"What is total revenue" / live figures** → `query-model.md`.
|
|
21
|
+
- **Interpreted breakdown / trend** → `analyze-data.md`.
|
|
22
|
+
- **"Is my model AI-ready" / backfill descriptions** →
|
|
23
|
+
`ai-readiness-audit.md`.
|
|
24
|
+
|
|
25
|
+
## Steps
|
|
26
|
+
|
|
27
|
+
Filters, `classificationStatus` enum, `fetchInteractions` / only-surface-
|
|
28
|
+
`query`, classify NPE if `interaction` omitted, utterance CRUD, and
|
|
29
|
+
evaluator caveats are in **`../verified-questions.md`**.
|
|
30
|
+
|
|
31
|
+
1. **List / audit** — `list_analytics_interactions` once for all models
|
|
32
|
+
(do not loop per SDM). Paginate with `offset`. Default sort
|
|
33
|
+
`lastModifiedDate DESC` when recency matters.
|
|
34
|
+
2. **One classified question** — `get_analytics_full_interaction` by
|
|
35
|
+
utterance API name. Not for unclassified questions.
|
|
36
|
+
3. **Verify / reject status** — `classify_analytics_interactions`. For
|
|
37
|
+
payload edits, `update_and_classify_analytics_interaction` (always send
|
|
38
|
+
`interaction`).
|
|
39
|
+
4. **Question text only** — utterance get/create/update/delete tools. Do
|
|
40
|
+
not set `agentId` on create.
|
|
41
|
+
5. **Score SQL** — `run_regression_evaluator` once per Q&A pair. Requires
|
|
42
|
+
expected + actual SQL + `dataspace`. Persists nothing.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Task: Share or revoke access to a Tableau Next asset
|
|
2
|
+
|
|
3
|
+
Grant, inspect, change, or revoke a **user or group** share on a dashboard,
|
|
4
|
+
visualization, workspace, or semantic model. This is not workspace
|
|
5
|
+
membership (`add_workspace_asset` / `remove_workspace_asset`) and not
|
|
6
|
+
deleting the asset itself.
|
|
7
|
+
|
|
8
|
+
## Gates (assert before any tool call) → `../shared-gates.md`
|
|
9
|
+
|
|
10
|
+
Required: **G1**
|
|
11
|
+
|
|
12
|
+
- **G1** (router-asserted): a `mcp__tableau-next-*__` tool must be connected.
|
|
13
|
+
- **Tool names are written bare** — invoke each under your client's name for that `tableau-next-*` server tool (`shared-gates.md`).
|
|
14
|
+
- **Confirmation (this guide):** show recipient + asset + `accessType` and
|
|
15
|
+
wait for an explicit yes before `add_asset_share` or `update_asset_share`.
|
|
16
|
+
`remove_asset_share` is destructive — the user **loses access immediately**.
|
|
17
|
+
Confirm first.
|
|
18
|
+
- Granting a Tableau Next **role** (Analyst, Admin, …) is `provision-user.md`,
|
|
19
|
+
not this guide.
|
|
20
|
+
|
|
21
|
+
## Steps
|
|
22
|
+
|
|
23
|
+
Lookup, access-level matrix, Personal Org rules, partial-batch / silent-204
|
|
24
|
+
recovery, and wrap vs unwrap are in **`../sharing-and-promotion.md`** (§Share).
|
|
25
|
+
|
|
26
|
+
1. Resolve the asset `recordId` (Salesforce id, not apiName/label) from
|
|
27
|
+
`get_dashboard` / `get_visualization` / `list_workspaces` /
|
|
28
|
+
`get_semantic_model`.
|
|
29
|
+
2. **New grant:** search_users_and_groups first (name or email →
|
|
30
|
+
`userOrGroupId`). Then `add_asset_share` with `applicationDomain: "Tableau"`
|
|
31
|
+
and an `accessType` allowed for that `setupObjectType`.
|
|
32
|
+
3. **Inspect / verify / change / revoke:** list_asset_shares first. Update
|
|
33
|
+
and remove use the listed `userOrGroupId` (Personal Org: the **shadow ID**).
|
|
34
|
+
To **revoke access entirely**, call `remove_asset_share` — do not set a
|
|
35
|
+
weaker `accessType` on update.
|
|
36
|
+
4. Always read `failedRecordShares` on add/update. After remove, list again
|
|
37
|
+
if you need to prove the row is gone (HTTP 204 is not proof).
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Verified questions, utterances, and regression eval
|
|
2
|
+
|
|
3
|
+
Load this from `tasks/review-verified-questions.md`. Not a first hop.
|
|
4
|
+
|
|
5
|
+
Analytic Verified Questions (AVQ) and SQL calibration. This is **not**
|
|
6
|
+
AI-readiness metadata (`tasks/ai-readiness-audit.md`), **not**
|
|
7
|
+
`run_semantic_query` (`query-model.md`), and **not** `analyze_data`.
|
|
8
|
+
|
|
9
|
+
The MCP tools are namespaced per server — names here are bare; use whichever
|
|
10
|
+
server prefix is connected. All of these are **current org only**.
|
|
11
|
+
|
|
12
|
+
## Contents
|
|
13
|
+
|
|
14
|
+
- List / get interactions
|
|
15
|
+
- Classify / update-and-classify
|
|
16
|
+
- Utterance CRUD (question text only)
|
|
17
|
+
- `run_regression_evaluator` (score SQL, persist nothing)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## `list_analytics_interactions`
|
|
22
|
+
|
|
23
|
+
Enumerate question/answer pairs. **Covers ALL models in one query — never
|
|
24
|
+
loop per SDM.** Omit `semanticModels` unless the user asked to filter to a
|
|
25
|
+
specific model. Pagination is separate: a single call still returns at most
|
|
26
|
+
`limit` rows; keep calling with advancing `offset` until a page is empty (or
|
|
27
|
+
you have the reported total).
|
|
28
|
+
|
|
29
|
+
**Inputs (all optional):**
|
|
30
|
+
|
|
31
|
+
- `limit`, `offset`
|
|
32
|
+
- `orderBy` — e.g. `lastModifiedDate DESC`
|
|
33
|
+
- `classificationStatus` — `New` | `Regression` | `Inaccurate` | `Verified`
|
|
34
|
+
| `NeedsValidation`
|
|
35
|
+
- `semanticModels` — comma-separated IDs/apiNames; omit for all models
|
|
36
|
+
- `agentType` — `Concierge` | `Inspector`
|
|
37
|
+
- `sourceType` — `Csv` | `Feedback` | `Generated` | `Manual`
|
|
38
|
+
- `fetchInteractions` — default `false`. `false` = questions without agent
|
|
39
|
+
responses/SQL; `true` when agent response data is needed
|
|
40
|
+
- `utterance` — search string
|
|
41
|
+
- `isRequiresReview` — classifications needing review
|
|
42
|
+
- `agentResponse` — `Nl2Sql` | `Waii`
|
|
43
|
+
|
|
44
|
+
**Returns:** `items[]` with utterance, classification, semantic model,
|
|
45
|
+
timestamps, and (when fetched) agent response.
|
|
46
|
+
|
|
47
|
+
**When `fetchInteractions=true`:** surface **only** the `query` property of
|
|
48
|
+
the agent interaction data to the user. Do not dump the rest of that
|
|
49
|
+
payload.
|
|
50
|
+
|
|
51
|
+
**Use when:** browse, search, or audit past interactions and classification
|
|
52
|
+
status.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## `get_analytics_full_interaction`
|
|
57
|
+
|
|
58
|
+
Full payload for **one** classified interaction, by utterance API name
|
|
59
|
+
(from `list_analytics_interactions`).
|
|
60
|
+
|
|
61
|
+
Returns utterance text, classification status, semantic model, agent
|
|
62
|
+
response, and associated interaction data.
|
|
63
|
+
|
|
64
|
+
**Use when:** the user wants full details of a question that already has a
|
|
65
|
+
classification (reviewed / verified / rejected). **Do not** use this for
|
|
66
|
+
new or unclassified questions.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## `classify_analytics_interactions`
|
|
71
|
+
|
|
72
|
+
Update one or many classifications in a single request (verify, reject, or
|
|
73
|
+
change status). Each item is identified by classification ID plus the
|
|
74
|
+
fields to change.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## `update_and_classify_analytics_interaction`
|
|
79
|
+
|
|
80
|
+
Update an interaction-with-classification record by classification ID
|
|
81
|
+
(path).
|
|
82
|
+
|
|
83
|
+
**Required:** `interaction` (e.g. `analyticsUtteranceId`, `agentUtterance`,
|
|
84
|
+
`sources`) — even for classification-only updates. Omitting it causes a
|
|
85
|
+
**500 NPE**, not a validation error.
|
|
86
|
+
|
|
87
|
+
When the user asks to update a question with a SQL query, set SQL as
|
|
88
|
+
`agentInteractionData` wrapped as an escaped JSON string:
|
|
89
|
+
`{"query": "<escaped SQL>"}`. `agentResponse`: if the SQL starts with
|
|
90
|
+
`WITH`, set `Waii`; otherwise `Nl2Sql`.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Utterance CRUD (question text only)
|
|
95
|
+
|
|
96
|
+
These operate on the **utterance** (question text/metadata). They do **not**
|
|
97
|
+
create, update, or delete the interaction / agent response / classification.
|
|
98
|
+
|
|
99
|
+
| Tool | Notes |
|
|
100
|
+
|---|---|
|
|
101
|
+
| `get_analytics_utterance` | By API name. Returns text, agent type, source type, model API name, status. |
|
|
102
|
+
| `create_analytics_utterances` | Collection of utterances (text + model API name, agent type, source type). **Do not set `agentId`** — utterances must not be tied to a specific agent. |
|
|
103
|
+
| `update_analytics_utterance` | By API name. Fields: utterance text, model API name, agent type, source type. |
|
|
104
|
+
| `delete_analytics_utterances` | Collection of utterance API names. **DESTRUCTIVE — no undo.** Confirm first. Does not directly delete the interaction or classification. |
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## `run_regression_evaluator`
|
|
109
|
+
|
|
110
|
+
Score one Q&A calibration pair: candidate agent SQL
|
|
111
|
+
(`actualAgentResponse`) vs expected SQL (`expectedAgentResponse`) for the
|
|
112
|
+
same question.
|
|
113
|
+
|
|
114
|
+
**Required:** `semanticModelApiName` (full model resolved server-side),
|
|
115
|
+
`utterance`, `dataspace`, `actualAgentResponse`, `expectedAgentResponse`.
|
|
116
|
+
|
|
117
|
+
**Returns:** `success` (`true` if candidate matches baseline) and
|
|
118
|
+
`explanation` (human-readable rationale).
|
|
119
|
+
|
|
120
|
+
**Caveats:**
|
|
121
|
+
|
|
122
|
+
- **Evaluation-only** — scores a single test and **persists nothing**.
|
|
123
|
+
- One Q&A pair per call; batch by calling once per pair.
|
|
124
|
+
- Not a substitute for `run_semantic_query` or `analyze_data`. Those run
|
|
125
|
+
live questions against data; this compares two SQLs.
|