api ai desktop

pull/5241/head
STetsing 1 month ago
parent 2695aafc82
commit 1743146a1c
  1. 21
      libs/remix-api/src/lib/plugins/remixaiDesktop-api.ts

@ -1,16 +1,23 @@
import { IParams } from "@remix/remix-ai-core";
import { StatusEvents } from "@remixproject/plugin-utils";
export interface IRemixAIDesktop {
export interface IRemixAID {
events: {
onStreamResult(streamText: string): Promise<void>,
activated():void,
onInference():void,
onInferenceDone():void,
onStreamResult(streamText: string):void,
} & StatusEvents,
methods: {
code_completion(context: string): Promise<string>
code_insertion(msg_pfx: string, msg_sfx: string): Promise<string>,
code_generation(prompt: string): Promise<string>,
code_explaining(code: string, context?: string): Promise<string>,
error_explaining(prompt: string): Promise<string>,
solidity_answer(prompt: string): Promise<string>,
initializeModelBackend(local: boolean, generalModel?, completionModel?): Promise<void>,
code_generation(prompt: string): Promise<string | null>,
code_explaining(code: string, context?: string): Promise<string | null>,
error_explaining(prompt: string): Promise<string | null>,
solidity_answer(prompt: string): Promise<string | null>,
initializeModelBackend(local: boolean, generalModel?, completionModel?): Promise<boolean>,
chatPipe(pipeMessage: string): Promise<void>,
ProcessChatRequestBuffer(params:IParams): Promise<void>,
}
}
Loading…
Cancel
Save