feat(quantic): add search queries to agent stream of thoughts component#7898
Conversation
🦋 Changeset detectedLatest commit: 47ab30a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
@coveo/atomic
@coveo/atomic-hosted-page
@coveo/atomic-legacy
@coveo/atomic-react
@coveo/auth
@coveo/bueno
@coveo/create-atomic
@coveo/create-atomic-component
@coveo/create-atomic-component-project
@coveo/create-atomic-result-component
@coveo/create-atomic-rollup-plugin
@coveo/headless
@coveo/headless-react
@coveo/shopify
commit: |
8b4ef64 to
c1d8188
Compare
There was a problem hiding this comment.
Pull request overview
This PR enhances the Quantic generated-answer “agent stream of thought” UI by expanding searching generation steps into per-tool-call steps and displaying the actual search query used, improving transparency for end users. It also wires agent-id through the Quantic Generated Answer example page and introduces new localized labels for the new step variants.
Changes:
- Expand
searchingsteps into one or moresearching-with-querysteps based ontoolCallsand format labels with the query viaI18nUtils.format. - Add new Custom Labels + FR/ES translations for the query-based searching step (active + completed).
- Update Quantic Generated Answer example templates/config to support
agent-id, and add unit tests for the new step resolution/rendering behavior.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/quantic/force-app/main/translations/fr.translation-meta.xml | Adds FR translations for query-based searching step labels. |
| packages/quantic/force-app/main/translations/es.translation-meta.xml | Adds ES translations for query-based searching step labels. |
| packages/quantic/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/quanticGeneratedAnswerStreamOfThought.js | Expands searching steps into per-search tool call steps and formats labels with the query. |
| packages/quantic/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/tests/quanticGeneratedAnswerStreamOfThought.test.js | Adds tests for resolving and rendering searching-with-query steps. |
| packages/quantic/force-app/main/default/labels/CustomLabels.labels-meta.xml | Introduces new EN custom labels for query-based searching steps. |
| packages/quantic/force-app/examples/main/lwc/exampleQuanticGeneratedAnswer/templates/templateGeneratedAnswerWithoutFacets.html | Passes agent-id through to the generated answer component in the example page. |
| packages/quantic/force-app/examples/main/lwc/exampleQuanticGeneratedAnswer/templates/templateGeneratedAnswerWithFacets.html | Passes agent-id through to the generated answer component in the example page (facets variant). |
| packages/quantic/force-app/examples/main/lwc/exampleQuanticGeneratedAnswer/exampleQuanticGeneratedAnswer.js | Adds agentId to example configuration options. |
| .changeset/quantic-display-search-query-stream-of-thought.md | Adds a minor changeset for @coveo/quantic. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
cca2491 to
6633131
Compare
erocheleau
left a comment
There was a problem hiding this comment.
Very quick comment, but you can still consider it approved. :)
SFINT-6812
This pull request enhances the Quantic agent stream of thought component by displaying the generated search queries used by the agent, providing more transparency into the agent's reasoning process. It introduces new step types for searching with a specific query, updates the UI and translations, and adds comprehensive tests for these scenarios.
Also added
agent-idin the test page for the component.In action
quanticsot.mp4