Skip to content

Commit 0a63991

Browse files
authored
Merge pull request #65 from thedadams/add-tool-cat
chore: add ToolCategory
2 parents 954d73d + 45c34d9 commit 0a63991

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/gptscript.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,15 @@ export enum RunState {
710710
Error = "error"
711711
}
712712

713+
export enum ToolCategory {
714+
ProviderToolCategory = "provider",
715+
CredentialToolCategory = "credential",
716+
ContextToolCategory = "context",
717+
InputToolCategory = "input",
718+
OutputToolCategory = "output",
719+
NoCategory = ""
720+
}
721+
713722
export interface RunFrame {
714723
id: string
715724
type: RunEventType.RunStart | RunEventType.RunFinish
@@ -750,7 +759,7 @@ export interface CallFrame {
750759
agentGroup?: ToolReference[]
751760
displayText?: string
752761
inputContext: InputContext[]
753-
toolCategory?: string
762+
toolCategory?: ToolCategory
754763
toolName: string
755764
parentID?: string
756765
type: RunEventType.CallStart | RunEventType.CallChat | RunEventType.CallConfirm | RunEventType.CallContinue | RunEventType.CallSubCalls | RunEventType.CallProgress | RunEventType.CallFinish

0 commit comments

Comments
 (0)