Skip to main content

Calendar: Create Event Tool

Usage

All Portia tools using API endpoints that require OAuth are built with plug and play authentication support. They use Portia client credentials including client ID, client name and redirect URL. Such tools will raise a Action Clarification with an OAuth link as the action URL. The portia.wait_for_ready() method must be used in this scenario: Portia's OAuth server will listen for the authentication result and resolve the concerned clarification, allowing your plan run to resume again.

For more on this, please visit to the section on running Portia tools ().

Tool details

Tool ID: portia:google:gcalendar:create_event

Tool description: Creates a Google Calendar event. DO NOT call portia:google:gcalendar:check_availability before using this tool, unless the user explicitly asks you to check their availability.

Args schema:

{
"description": "Schema for creating a Google Calendar event.",
"properties": {
"event_title": {
"description": "The title of the calendar event",
"title": "Event Title",
"type": "string"
},
"start_time": {
"description": "The start time of the event in ISO format, e.g 2024-09-20T20:00:00Z",
"format": "date-time",
"title": "Start Time",
"type": "string"
},
"end_time": {
"description": "The end time of the event in ISO format, e.g 2024-09-20T20:00:00Z",
"format": "date-time",
"title": "End Time",
"type": "string"
},
"event_description": {
"description": "The description of the event",
"title": "Event Description",
"type": "string"
},
"attendees": {
"description": "List of attendees' email addresses",
"items": {
"type": "string"
},
"title": "Attendees",
"type": "array"
}
},
"required": [
"event_title",
"start_time",
"end_time",
"event_description",
"attendees"
],
"title": "GoogleCalendarCreateEventSchema",
"type": "object"
}

Output schema:

('dict', 'dict: Output of the tool')