[]
Forguncy.Plugin.CommandExecutor
命令执行器
▸ executeCommand(commands, options): any
执行命令
| 属性名 | 类型 | 说明 |
|---|---|---|
commands |
object[] |
命令列表。 |
options |
CommandExecuteOptions |
执行选项。 |
any
▸ openAICallAsync(params, abortSignal?): Promise<AIResponse>
调用OpenAI
| 属性名 | 类型 | 说明 |
|---|---|---|
params |
OpenAICallRequestParams |
参数。 |
abortSignal? |
AbortSignal |
取消信号。 |
Promise<AIResponse>
▸ openAICallStreamingAsync(params, onMessage, onClose?, onError?, abortSignal?): any
调用OpenAI
| 属性名 | 类型 | 说明 |
|---|---|---|
params |
OpenAICallRequestParams |
参数。 |
onMessage |
(response: AIResponse) => void |
接收消息时回调方法。 |
onClose? |
() => void |
结束时回调方法。 |
onError? |
(e: any) => void |
出错时回调方法。 |
abortSignal? |
AbortSignal |
取消信号。 |
any