Toolkits
Todoist
TodoistTools enables an Agent to interact with Todoist.
Prerequisites
The following example requires the todoist-api-python
library. and a Todoist API token which can be obtained from the Todoist Developer Portal.
Example
The following agent will create a new task in Todoist.
cookbook/tools/todoist.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
api_token | str | None | If you want to manually supply the TODOIST_API_TOKEN. |
Toolkit Functions
Function | Description |
---|---|
create_task | Creates a new task in Todoist with optional project assignment, due date, priority, and labels. |
get_task | Fetches a specific task. |
update_task | Updates an existing task with new properties such as content, due date, priority, etc. |
close_task | Marks a task as completed. |
delete_task | Deletes a specific task from Todoist. |
get_active_tasks | Retrieves all active (non-completed) tasks. |
get_projects | Retrieves all projects in Todoist. |