fix: add description column to tools page and make agents public by default
- Add description column to tools registry table - Change agent isPublic default from false to true in Prisma schema - Update CreateAgentSchema Zod default to true
This commit is contained in:
parent
361a49f3d7
commit
4b392a2eed
3 changed files with 17 additions and 8 deletions
|
|
@ -503,7 +503,7 @@ model Agent {
|
|||
maxMessagesInContext Int @default(10) @map("max_messages_in_context")
|
||||
|
||||
// Visibility
|
||||
isPublic Boolean @default(false) @map("is_public")
|
||||
isPublic Boolean @default(true) @map("is_public")
|
||||
likeCount Int @default(0) @map("like_count")
|
||||
|
||||
// Timestamps
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export const CreateAgentSchema = z.object({
|
|||
temperature: z.number().min(0).max(2).default(0.7),
|
||||
maxToolCallsPerTurn: z.number().int().min(1).max(100).default(20),
|
||||
maxMessagesInContext: z.number().int().min(1).max(100).default(10),
|
||||
isPublic: z.boolean().default(false),
|
||||
isPublic: z.boolean().default(true),
|
||||
collectionIds: z.array(z.string()).optional(),
|
||||
toolIds: z.array(z.string()).optional(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue