feat: add prompt suggestions widget#6855
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 0b2dcf2:
|
packages/instantsearch.js/src/connectors/prompt-suggestions/connectPromptSuggestions.ts
Show resolved
Hide resolved
packages/instantsearch.js/src/connectors/prompt-suggestions/connectPromptSuggestions.ts
Outdated
Show resolved
Hide resolved
| /** | ||
| * Context object to send to the agent (e.g., product data for a PDP). | ||
| */ | ||
| context: Record<string, unknown>; |
There was a problem hiding this comment.
Should this be just unknown? Is there a chance that they have an agent setup in way that only requires the object id for example?
There was a problem hiding this comment.
We may need to be able to compare it if it changed, would be easier with an object idk. Could be { objectID: '' } too in this case anyway
packages/instantsearch.js/src/connectors/prompt-suggestions/connectPromptSuggestions.ts
Show resolved
Hide resolved
09bb7f9 to
5eb61a6
Compare
5eb61a6 to
b4d91ff
Compare
| PromptSuggestionsWidgetDescription['indexRenderState'] { | ||
| return { | ||
| ...renderState, | ||
| promptSuggestions: this.getWidgetRenderState(renderOptions), |
There was a problem hiding this comment.
because we use a different widget, do you mind reverting the type change in chat widget?
There was a problem hiding this comment.
Will make a different PR yeah
packages/instantsearch.js/src/connectors/prompt-suggestions/connectPromptSuggestions.ts
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/connectors/prompt-suggestions/connectPromptSuggestions.ts
Show resolved
Hide resolved
packages/instantsearch.js/src/connectors/prompt-suggestions/connectPromptSuggestions.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Fabien Motte <[email protected]>
c322c69 to
3816b0f
Compare
3816b0f to
0b2dcf2
Compare
Summary
FX-3606
Result
Screen.Recording.2026-01-08.at.15.29.25.mov