Skip to content

Commit

Permalink
Merge pull request #65 from thedadams/add-tool-cat
Browse files Browse the repository at this point in the history
chore: add ToolCategory
  • Loading branch information
thedadams authored Jun 27, 2024
2 parents 954d73d + 45c34d9 commit 0a63991
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/gptscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,15 @@ export enum RunState {
Error = "error"
}

export enum ToolCategory {
ProviderToolCategory = "provider",
CredentialToolCategory = "credential",
ContextToolCategory = "context",
InputToolCategory = "input",
OutputToolCategory = "output",
NoCategory = ""
}

export interface RunFrame {
id: string
type: RunEventType.RunStart | RunEventType.RunFinish
Expand Down Expand Up @@ -750,7 +759,7 @@ export interface CallFrame {
agentGroup?: ToolReference[]
displayText?: string
inputContext: InputContext[]
toolCategory?: string
toolCategory?: ToolCategory
toolName: string
parentID?: string
type: RunEventType.CallStart | RunEventType.CallChat | RunEventType.CallConfirm | RunEventType.CallContinue | RunEventType.CallSubCalls | RunEventType.CallProgress | RunEventType.CallFinish
Expand Down

0 comments on commit 0a63991

Please sign in to comment.