Prompt
此内容尚不支持你的语言。
Defined in: Prompts.ts:9
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
Params extends Schema.Struct.Fields |
- |
E |
- |
R |
- |
CE |
never |
CR |
never |
Properties
Section titled “Properties”annotations?
Section titled “annotations?”readonly annotations?: Context<never>;Defined in: Prompts.ts:35
completion?
Section titled “completion?”readonly completion?: { readonly [K in string | number | symbol]?: (input: string, context: { arguments?: { [key: string]: string } } | undefined) => Effect<Params[K]["Type"][], CE, CR> };Defined in: Prompts.ts:23
content
Section titled “content”readonly content: (params: View<Params>) => Effect<string | PromptMessage[], E, R>;Defined in: Prompts.ts:20
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
params |
View<Params> |
Returns
Section titled “Returns”Effect<string | PromptMessage[], E, R>
description?
Section titled “description?”readonly description?: string;Defined in: Prompts.ts:18
readonly name: string;Defined in: Prompts.ts:16
parameters?
Section titled “parameters?”readonly parameters?: Params;Defined in: Prompts.ts:19
title?
Section titled “title?”readonly title?: string;Defined in: Prompts.ts:17