@empathyco/x-components
Version:
Empathy X Components
116 lines (51 loc) • 1.59 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [AiActions](./x-components.aiactions.md)
## AiActions interface
Ai module actions.
**Signature:**
```typescript
export interface AiActions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[fetchAndSaveAiSuggestions](./x-components.aiactions.fetchandsaveaisuggestions.md)
</td><td>
</td><td>
(request: AiSuggestionsRequest \| null) => void
</td><td>
Requests suggestions for the module ai.
</td></tr>
<tr><td>
[fetchAndSaveAiSuggestionsSearch](./x-components.aiactions.fetchandsaveaisuggestionssearch.md)
</td><td>
</td><td>
(expanded: boolean) => void
</td><td>
Requests suggestions search for the module AI.
</td></tr>
<tr><td>
[saveOrigin](./x-components.aiactions.saveorigin.md)
</td><td>
</td><td>
(originInit: [QueryOriginInit](./x-components.queryorigininit.md)<!-- -->) => void
</td><td>
Creates a [QueryOrigin](./x-components.queryorigin.md) and saves it.
</td></tr>
<tr><td>
[setUrlParams](./x-components.aiactions.seturlparams.md)
</td><td>
</td><td>
(urlParams: [UrlParams](./x-components.urlparams.md)<!-- -->) => void
</td><td>
Checks if the URL has params on it and then updates the state with these values.
</td></tr>
</tbody></table>