Reference
@chloejs/ core/ tools/ calendar
The events on a Google calendar, and adding one that invites nobody.
The tools over calendarService.ts: reading the events on the calendars an agent is bound to, and adding one. The binding is in the agent's config, and the model chooses only the dates, and what the event it adds says.
import * as calendar from "@chloejs/core/tools/calendar";
tools: { calendarListEvents: calendar.listEvents({ calendars: ["primary"] }) }addEventfunction
export function addEvent({ calendar = "primary", what = "the calendar", when = "" }: { calendar?: string; what?: string; when?: string } = {})A tool that adds one event to the calendar it is bound to. It invites nobody, so nothing reaches anybody else.
listEventsfunction
export function listEvents({ calendars = ["primary"], what = "the calendar", days = 7 }: Options = {})A tool that lists the events on the calendars the agent is bound to.