Extract schedule events
extract_schedule_eventsConverts pasted syllabus text into dated events, assigning titles, types, dates, and optional times, while returning undated lines separately for review.
Instructions
Extract dated events from pasted syllabus text. Each line that names a date becomes one event, with a title, a type, a date and optional times. Inputs: text (the pasted syllabus or course schedule, one event per line), course (a course name or code to put on every event) and year (the year to use when a date has no year). Titles are read from the words around the date, and each event is marked as an assignment, exam, quiz, lab, reading, class or other. Any line that has no date is returned in undated_lines instead of being dropped silently. The answer ends with a next step hint that points to build_ics when the events should become a calendar. Example prompt: "Turn this syllabus into calendar events: Assignment 1 due Sep 15, Midterm exam October 20 at 10:00."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The pasted syllabus or course schedule. Put one event on each line, with a date on the line. | |
| year | No | The year to use when a date has no year. Defaults to the current year. | |
| course | No | Course name or code to put on every event, such as BIO 101. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | The year used for dates that did not name one. | |
| count | Yes | How many events were found. | |
| events | Yes | Every dated event that was found, in date order. | |
| next_step | Yes | Suggested next tool call for turning the events into a calendar. | |
| undated_lines | Yes | Lines that had no date, kept in the order they appeared so they can be fixed. |