mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-04 08:20:03 +00:00
Personas now support providing options for commands. This PR introduces a single option "base_query" for the SearchCommand. When supplied all searches the persona will perform will also include the pre-supplied filter. This can allow personas to search a subset of the forum (such as documentation) This system is extensible we can add options to any command trivially.
16 lines
369 B
Plaintext
16 lines
369 B
Plaintext
import { Input } from "@ember/component";
|
|
|
|
<template>
|
|
<div class="control-group ai-persona-command-option-editor">
|
|
<label>
|
|
{{@option.name}}
|
|
</label>
|
|
<div class="">
|
|
<Input @value={{@option.value.value}} />
|
|
</div>
|
|
<div class="ai-persona-command-option-editor__instructions">
|
|
{{@option.description}}
|
|
</div>
|
|
</div>
|
|
</template>
|