-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major change to move to OpenAI functions (#33)
Change includes OpenAI functions schema for all commands Moved to functions with updated prompt Changed to primary main loop model to be GPT-4 as its much more reliable in reasoning Fixes issues related to development with remix package update. Solves issues #24 #28 #31
- Loading branch information
Showing
29 changed files
with
3,184 additions
and
3,438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
|
||
export type CommandExecArgs = { [key: string]: any }; | ||
|
||
type StringExecArg = { type: "string" }; | ||
type IntExecArg = { type: "integer" }; | ||
type BoolExecArg = { type: "boolean" }; | ||
type ArrayExecArg = { type: "array"; items: ExecArgType }; | ||
type EnumExecArg = { type: "string"; enum: string[] }; | ||
|
||
type ExecArgType = StringExecArg | IntExecArg | ArrayExecArg | EnumExecArg | BoolExecArg; | ||
|
||
export type CommandExecArgsV2 = { | ||
[key: string]: { | ||
description: string; | ||
} & ExecArgType; | ||
}; | ||
|
||
export interface CommandPlugin { | ||
command: string; | ||
name: string; | ||
arguments: CommandExecArgs; | ||
execute: (args: CommandExecArgs) => Promise<string>; | ||
} | ||
command: string; | ||
name: string; | ||
arguments: CommandExecArgs; | ||
argumentsV2: { required: string[]; args: CommandExecArgsV2 }; | ||
execute: (args: CommandExecArgs) => Promise<string>; | ||
} |
Oops, something went wrong.