Skip to content

Commit

Permalink
fix saved message rendering error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jshen123 committed Apr 26, 2023
1 parent ff5a11a commit 50a384f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/agentTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export type TaskStatus = z.infer<typeof TaskStatusSchema>;

export const messageSchemaBase = z.object({
value: z.string(),
info: z.string().optional(),
info: z.string().optional().nullable(),
});

export const taskSchema = z
.object({
taskId: z.string(),
taskId: z.string().optional(),
type: z.literal(MESSAGE_TYPE_TASK),
status: TaskStatusSchema,
})
Expand Down

0 comments on commit 50a384f

Please sign in to comment.