Interface: ITextBrainService<TSettings>
Service implemented by brains that support text prompts
Type parameters
Name | Description |
---|---|
TSettings | The type of the brain settings |
Hierarchy
↳
ITextBrainService
Table of contents
Methods
Methods
sendTextPrompt
▸ sendTextPrompt(prompts
, context
): Promise
<BrainPromptResponse
>
Sends a text prompt to the brain
Parameters
Name | Type |
---|---|
prompts | TextBrainPrompt [] |
context | IBrainPromptContext <TSettings > |
Returns
Promise
<BrainPromptResponse
>
The response from the brain