-
Notifications
You must be signed in to change notification settings - Fork 18
client
canisminor1990 edited this page Apr 8, 2023
·
1 revision
▸ createPrompt(props
): PromptRequest
创建 Prompt 请求参数
Name | Type | Description |
---|---|---|
props |
Object |
参数对象 |
props.clientId? |
string |
- |
props.customWidgets |
string [] |
- |
props.graph |
PersistedGraph |
- |
props.widgets |
Record <string , Widget > |
- |
PromptRequest
Prompt 请求参数
▸ deleteFromQueue(id
): Promise
<void
>
从队列中删除项
Name | Type | Description |
---|---|---|
id |
number |
队列项 id |
Promise
<void
>
▸ getHistory(): Promise
<History
>
获取历史记录
Promise
<History
>
历史记录
▸ getQueue(): Promise
<Queue
>
获取队列
Promise
<Queue
>
队列
▸ getWidgetLibrary(): Promise
<Record
<string
, Widget
>>
获取小部件库
Promise
<Record
<string
, Widget
>>
小部件库
▸ sendPrompt(prompt
): Promise
<PromptResponse
>
发送 Prompt 请求
Name | Type | Description |
---|---|---|
prompt |
PromptRequest |
Prompt 请求参数 |
Promise
<PromptResponse
>
Prompt 响应参数