Skip to content

Commit

Permalink
Add flag for human-in-the-loop (superagent-ai#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp authored Aug 22, 2023
1 parent cbf5152 commit 2f092ff
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Agent" ADD COLUMN "hasHumanInTheLoop" BOOLEAN NOT NULL DEFAULT false;
51 changes: 26 additions & 25 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -98,31 +98,32 @@ model Document {
}

model Agent {
id String @id @default(cuid()) @db.VarChar(255)
description String? @db.Text()
avatarUrl String? @db.Text()
shareableToken String? @db.Text()
userId String @db.VarChar(255)
user User @relation(fields: [userId], references: [id])
document Document? @relation(fields: [documentId], references: [id])
documentId String? @db.VarChar(255)
tool Tool? @relation(fields: [toolId], references: [id])
toolId String? @db.VarChar(255)
tags Json? @default("[]")
prompt Prompt? @relation(fields: [promptId], references: [id])
promptId String? @db.VarChar(255)
name String
type AgentType @default(REACT)
llm Json @default("{ \"provider\": \"openai-chat\", \"model\": \"gpt-3.5-turbo\" }")
hasMemory Boolean @default(false)
isPublic Boolean @default(false)
isListed Boolean @default(false)
AgentMemory AgentMemory[]
createdAt DateTime? @default(now())
updatedAt DateTime? @updatedAt
AgentTrace AgentTrace[]
AgentDocument AgentDocument[]
AgentTool AgentTool[]
id String @id @default(cuid()) @db.VarChar(255)
description String? @db.Text()
avatarUrl String? @db.Text()
shareableToken String? @db.Text()
userId String @db.VarChar(255)
user User @relation(fields: [userId], references: [id])
document Document? @relation(fields: [documentId], references: [id])
documentId String? @db.VarChar(255)
tool Tool? @relation(fields: [toolId], references: [id])
toolId String? @db.VarChar(255)
tags Json? @default("[]")
prompt Prompt? @relation(fields: [promptId], references: [id])
promptId String? @db.VarChar(255)
name String
type AgentType @default(REACT)
llm Json @default("{ \"provider\": \"openai-chat\", \"model\": \"gpt-3.5-turbo\" }")
hasMemory Boolean @default(false)
hasHumanInTheLoop Boolean @default(false)
isPublic Boolean @default(false)
isListed Boolean @default(false)
AgentMemory AgentMemory[]
createdAt DateTime? @default(now())
updatedAt DateTime? @updatedAt
AgentTrace AgentTrace[]
AgentDocument AgentDocument[]
AgentTool AgentTool[]
}

model ApiToken {
Expand Down

0 comments on commit 2f092ff

Please sign in to comment.