@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 777 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [RelatedPromptsActions](./x-components.relatedpromptsactions.md) > [fetchRelatedPrompts](./x-components.relatedpromptsactions.fetchrelatedprompts.md)
## RelatedPromptsActions.fetchRelatedPrompts() method
Requests a new set of related prompts for the module query, and returns them.
**Signature:**
```typescript
fetchRelatedPrompts(request: RelatedPromptsRequest | null): RelatedPrompt[] | null;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| request | RelatedPromptsRequest \| null | The related prompts request. |
**Returns:**
RelatedPrompt\[\] \| null