Skip to content

feat(loadtesting): agent guidance to cut redundant tool calls (prod) - #394

Merged
sarve-shreyas merged 1 commit into
browserstack:feat/capability-registryfrom
sourabhd-cbu:feat/loadtesting-capability-index-guidance-prod
Sep 7, 2026
Merged

feat(loadtesting): agent guidance to cut redundant tool calls (prod)#394
sarve-shreyas merged 1 commit into
browserstack:feat/capability-registryfrom
sourabhd-cbu:feat/loadtesting-capability-index-guidance-prod

Conversation

@sourabhd-cbu

Copy link
Copy Markdown
Collaborator

Follows up the prod capability index (#388, already merged) with guidance-only edits addressing the tool-call efficiency issues QA found on the agent surface (LTAI-270). No endpoint, schema, or base_url/auth changes.

What & why

QA's positive-path runs answered correctly but thrashed the generic discover→invoke layer — repeated identical invokes and over-discovery (e.g. /report ×4, /trends ×8, /projects/{id}/runs ×9). The endpoints already expose every slice/filter needed, so this steers the agent to use them and to reuse results within a task.

  • report: answer scoped questions with the narrowest slice (metrics / errorCategory / slaOnly / sinceIso+untilIso / detail=per-txn+groupBy) instead of re-fetching the full report; full only when the user asks for the raw report.
  • getLoadTest / project+test trends / project+test run-history: one call returns the whole result — reuse it within a task instead of re-fetching the same data/window.
  • estimateLoadTestRunCost: always use it for cost/VU-hour math (it models ramp-up) instead of computing by hand.
  • compareLoadTestRuns: use it for per-KPI/per-transaction deltas instead of diffing two reports.
  • getLoadTestRunStatus: a status question needs status only, not the run report.
  • summary: state that delete and scheduling are not offered (point to the web dashboard) so the agent stops searching to confirm the gap.

Scope

Guidance/summary text only — 20 capabilities unchanged in shape. The deeper lever (per-turn invoke dedup/caching in the generic host) is out of scope for the index and tracked separately.

Regression companion: #389. Ref: LTAI-270.

Add capability guidance (and a product-summary note) that fixes the
efficiency issues QA found on the agent surface:

- report: prefer narrow slices (metrics / errorCategory / sinceIso /
  detail=per-txn) over refetching the full report; fetch full only when
  the user asks for the raw report.
- getLoadTest / trends / run-history / active-runs: one call returns the
  whole result — reuse it within a task instead of re-fetching.
- estimateLoadTestRunCost: always use it for cost/VU-hour math instead of
  computing by hand (misses ramp-up).
- compareLoadTestRuns: use it for run deltas instead of diffing two reports.
- getLoadTestRunStatus: a status question needs status only, not the report.
- summary: state that delete and scheduling are not offered (point to the
  dashboard) so the agent stops searching to confirm the gap.

Guidance-only; no endpoint or schema changes.
@sarve-shreyas
sarve-shreyas merged commit 5215889 into browserstack:feat/capability-registry Sep 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants