Skip to content

Commit 60bf86a

Browse files
fix LLM give wrong current time cause create meeting in a wrong time issue
1 parent 9749c45 commit 60bf86a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

operations/meeting.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@ export const CreateMeetingOptionsSchema = z.object({
66
agenda: z
77
.string()
88
.max(2000)
9-
.describe("The meeting's agenda")
9+
.describe("The meeting's agenda.")
1010
.default("New Meeting's agenda"),
1111
start_time: z
1212
.string()
1313
.optional()
1414
.describe(
15-
"The meeting's start time. This supports local time and GMT formats.To set a meeting's start time in GMT, use the yyyy-MM-ddTHH:mm:ssZ date-time format. For example, 2020-03-31T12:02:00Z. To set a meeting's start time using a specific timezone, use the yyyy-MM-ddTHH:mm:ss date-time format and specify the timezone ID in the timezone field. If you do not specify a timezone, the timezone value defaults to your Zoom account's timezone. You can also use UTC for the timezone value. Note: If no start_time is set for a scheduled meeting, the start_time is set at the current time and the meeting type changes to an instant meeting, which expires after 30 days.",
15+
`The meeting's start time. This supports local time and GMT formats.To set a meeting's start time in GMT, use the yyyy-MM-ddTHH:mm:ssZ date-time format. For example, 2020-03-31T12:02:00Z. To set a meeting's start time using a specific timezone, use the yyyy-MM-ddTHH:mm:ss date-time format and specify the timezone ID in the timezone field. If you do not specify a timezone, the timezone value defaults to your Zoom account's timezone. You can also use UTC for the timezone value. Note: If no start_time is set for a scheduled meeting, the start_time is set at the current time and the meeting type changes to an instant meeting, which expires after 30 days. current time is ${new Date().toISOString()}.`,
1616
),
1717
timezone: z
1818
.string()
1919
.optional()
20-
.describe("Timezone for the meeting's start time"),
20+
.describe(
21+
`Timezone for the meeting's start time. The Current timezone is ${Intl.DateTimeFormat().resolvedOptions().timeZone}.`,
22+
),
2123
topic: z.string().max(200).optional().describe("The meeting's topic."),
2224
});
2325

0 commit comments

Comments
 (0)