Datasets:
Download tools.json from LiquidAI/phone-assistant-tools: direct link, hf CLI and curl.
- Browser
- Download file 44.7 kB
-
https://huggingface.co/datasets/LiquidAI/phone-assistant-tools/resolve/main/tools.json
- Command line
-
hf download hf://datasets/LiquidAI/phone-assistant-tools/tools.json
-
curl -L -o tools.json https://huggingface.co/datasets/LiquidAI/phone-assistant-tools/resolve/main/tools.json
44.7 kB
| [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "create_event", | |
| "description": "Add an event to the user's calendar.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string" | |
| }, | |
| "start": { | |
| "type": "string", | |
| "description": "Start time, YYYY-MM-DDTHH:MM:SS." | |
| }, | |
| "end": { | |
| "type": "string", | |
| "description": "End time, YYYY-MM-DDTHH:MM:SS." | |
| }, | |
| "location": { | |
| "type": "string" | |
| }, | |
| "attendees": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "description": "Contact names to invite." | |
| } | |
| }, | |
| "required": [ | |
| "title", | |
| "start" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "list_events", | |
| "description": "List calendar events on a day or over a range of days.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "date": { | |
| "type": "string", | |
| "description": "First (or only) day, YYYY-MM-DD." | |
| }, | |
| "end_date": { | |
| "type": "string", | |
| "description": "Last day of a multi-day range, YYYY-MM-DD." | |
| } | |
| }, | |
| "required": [ | |
| "date" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "move_event", | |
| "description": "Reschedule an existing calendar event to a new start time.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string", | |
| "description": "Title or keyword of the event." | |
| }, | |
| "new_start": { | |
| "type": "string", | |
| "description": "YYYY-MM-DDTHH:MM:SS." | |
| } | |
| }, | |
| "required": [ | |
| "title", | |
| "new_start" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "delete_event", | |
| "description": "Delete an event from the calendar.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string", | |
| "description": "Title or keyword of the event." | |
| }, | |
| "date": { | |
| "type": "string", | |
| "description": "Day of the event, YYYY-MM-DD." | |
| } | |
| }, | |
| "required": [ | |
| "title" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "create_reminder", | |
| "description": "Create a reminder that notifies the user at a set time, or an untimed reminder if no time is given.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "text": { | |
| "type": "string", | |
| "description": "What to be reminded about." | |
| }, | |
| "remind_at": { | |
| "type": "string", | |
| "description": "YYYY-MM-DDTHH:MM:SS." | |
| } | |
| }, | |
| "required": [ | |
| "text" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "list_reminders", | |
| "description": "List the user's pending reminders.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {}, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "delete_reminder", | |
| "description": "Delete a reminder.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "text": { | |
| "type": "string", | |
| "description": "Text or keyword of the reminder." | |
| } | |
| }, | |
| "required": [ | |
| "text" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_alarm", | |
| "description": "Set an alarm for a clock time; it rings at the next occurrence of that time unless repeat days are given.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "time": { | |
| "type": "string", | |
| "description": "24-hour HH:MM." | |
| }, | |
| "label": { | |
| "type": "string", | |
| "description": "Only if the user gives one." | |
| }, | |
| "repeat_days": { | |
| "type": "array", | |
| "items": { | |
| "type": "string", | |
| "enum": [ | |
| "monday", | |
| "tuesday", | |
| "wednesday", | |
| "thursday", | |
| "friday", | |
| "saturday", | |
| "sunday" | |
| ] | |
| } | |
| } | |
| }, | |
| "required": [ | |
| "time" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "delete_alarm", | |
| "description": "Delete the alarm set for a given time.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "time": { | |
| "type": "string", | |
| "description": "24-hour HH:MM." | |
| } | |
| }, | |
| "required": [ | |
| "time" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "list_alarms", | |
| "description": "List the user's alarms.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {}, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_timer", | |
| "description": "Start a countdown timer for a duration.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "duration_seconds": { | |
| "type": "integer" | |
| }, | |
| "label": { | |
| "type": "string", | |
| "description": "Only if the user gives one." | |
| } | |
| }, | |
| "required": [ | |
| "duration_seconds" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "cancel_timer", | |
| "description": "Cancel a running timer.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "label": { | |
| "type": "string", | |
| "description": "Label of the timer; omit to cancel the current timer." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "start_stopwatch", | |
| "description": "Start the stopwatch.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {}, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_contacts", | |
| "description": "Look up a saved contact's phone number, email, address or birthday.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "create_contact", | |
| "description": "Save a new contact.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type": "string" | |
| }, | |
| "phone": { | |
| "type": "string" | |
| }, | |
| "email": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "update_contact", | |
| "description": "Change or add details on an existing contact.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type": "string" | |
| }, | |
| "phone": { | |
| "type": "string" | |
| }, | |
| "email": { | |
| "type": "string" | |
| }, | |
| "address": { | |
| "type": "string" | |
| }, | |
| "birthday": { | |
| "type": "string", | |
| "description": "MM-DD." | |
| } | |
| }, | |
| "required": [ | |
| "name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "make_call", | |
| "description": "Start a voice call.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "recipient": { | |
| "type": "string", | |
| "description": "Contact name or phone number." | |
| }, | |
| "app": { | |
| "type": "string", | |
| "enum": [ | |
| "phone", | |
| "whatsapp", | |
| "telegram", | |
| "signal", | |
| "messenger" | |
| ], | |
| "default": "phone" | |
| }, | |
| "speakerphone": { | |
| "type": "boolean", | |
| "default": false | |
| } | |
| }, | |
| "required": [ | |
| "recipient" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "make_video_call", | |
| "description": "Start a video call.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "recipient": { | |
| "type": "string", | |
| "description": "Contact name or phone number." | |
| }, | |
| "app": { | |
| "type": "string", | |
| "enum": [ | |
| "phone", | |
| "facetime", | |
| "whatsapp", | |
| "telegram", | |
| "signal", | |
| "messenger" | |
| ], | |
| "default": "phone" | |
| } | |
| }, | |
| "required": [ | |
| "recipient" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "list_recent_calls", | |
| "description": "List recent calls from the call log.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "filter": { | |
| "type": "string", | |
| "enum": [ | |
| "all", | |
| "missed", | |
| "incoming", | |
| "outgoing" | |
| ], | |
| "default": "all" | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "block_number", | |
| "description": "Block calls and texts from a contact or phone number.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "contact": { | |
| "type": "string", | |
| "description": "Contact name or phone number." | |
| } | |
| }, | |
| "required": [ | |
| "contact" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "send_sms", | |
| "description": "Send an SMS text message.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "recipient": { | |
| "type": "string", | |
| "description": "Contact name or phone number." | |
| }, | |
| "message": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "recipient", | |
| "message" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "send_chat_message", | |
| "description": "Send a message through a chat app.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "app": { | |
| "type": "string", | |
| "enum": [ | |
| "whatsapp", | |
| "telegram", | |
| "signal", | |
| "messenger", | |
| "wechat", | |
| "line", | |
| "kakaotalk", | |
| "slack" | |
| ] | |
| }, | |
| "recipient": { | |
| "type": "string", | |
| "description": "Contact or group name." | |
| }, | |
| "message": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "app", | |
| "recipient", | |
| "message" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "read_messages", | |
| "description": "Read out recent received messages.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "app": { | |
| "type": "string", | |
| "enum": [ | |
| "sms", | |
| "whatsapp", | |
| "telegram", | |
| "signal", | |
| "messenger", | |
| "wechat", | |
| "line", | |
| "kakaotalk", | |
| "slack" | |
| ], | |
| "default": "sms" | |
| }, | |
| "sender": { | |
| "type": "string" | |
| }, | |
| "unread_only": { | |
| "type": "boolean", | |
| "default": false | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "send_email", | |
| "description": "Send an email.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "to": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "description": "Contact names or email addresses." | |
| }, | |
| "subject": { | |
| "type": "string", | |
| "description": "Only if the user gives one." | |
| }, | |
| "body": { | |
| "type": "string" | |
| }, | |
| "cc": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| } | |
| }, | |
| "required": [ | |
| "to", | |
| "body" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "draft_email", | |
| "description": "Save an email as a draft without sending it.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "to": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "description": "Contact names or email addresses." | |
| }, | |
| "subject": { | |
| "type": "string", | |
| "description": "Only if the user gives one." | |
| }, | |
| "body": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "to", | |
| "body" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_emails", | |
| "description": "Search the user's inbox.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string", | |
| "description": "Words to search for." | |
| }, | |
| "sender": { | |
| "type": "string" | |
| }, | |
| "unread_only": { | |
| "type": "boolean", | |
| "default": false | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "create_note", | |
| "description": "Create a new note.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "content": { | |
| "type": "string" | |
| }, | |
| "title": { | |
| "type": "string", | |
| "description": "Only if the user gives one." | |
| } | |
| }, | |
| "required": [ | |
| "content" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "append_to_note", | |
| "description": "Add text to the end of an existing note.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string" | |
| }, | |
| "content": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "title", | |
| "content" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_notes", | |
| "description": "Search the user's notes.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "delete_note", | |
| "description": "Delete a note.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "title" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "add_todo", | |
| "description": "Add a task to a to-do list.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "task": { | |
| "type": "string" | |
| }, | |
| "list_name": { | |
| "type": "string", | |
| "description": "Omit for the default list." | |
| }, | |
| "due_date": { | |
| "type": "string", | |
| "description": "YYYY-MM-DD." | |
| } | |
| }, | |
| "required": [ | |
| "task" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "list_todos", | |
| "description": "List open tasks on a to-do list.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "list_name": { | |
| "type": "string", | |
| "description": "Omit for the default list." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "complete_todo", | |
| "description": "Mark a to-do task as done.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "task": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "task" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "add_to_shopping_list", | |
| "description": "Add items to the shopping list.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "items": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| } | |
| }, | |
| "required": [ | |
| "items" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "remove_from_shopping_list", | |
| "description": "Remove items from the shopping list.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "items": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| } | |
| } | |
| }, | |
| "required": [ | |
| "items" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_shopping_list", | |
| "description": "Show the shopping list.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {}, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "start_navigation", | |
| "description": "Start turn-by-turn navigation to a destination.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "destination": { | |
| "type": "string" | |
| }, | |
| "mode": { | |
| "type": "string", | |
| "enum": [ | |
| "driving", | |
| "walking", | |
| "transit", | |
| "cycling" | |
| ], | |
| "default": "driving" | |
| } | |
| }, | |
| "required": [ | |
| "destination" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_travel_time", | |
| "description": "Estimate how long a trip takes, without starting navigation.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "destination": { | |
| "type": "string" | |
| }, | |
| "origin": { | |
| "type": "string", | |
| "description": "Omit to start from the current location." | |
| }, | |
| "mode": { | |
| "type": "string", | |
| "enum": [ | |
| "driving", | |
| "walking", | |
| "transit", | |
| "cycling" | |
| ], | |
| "default": "driving" | |
| } | |
| }, | |
| "required": [ | |
| "destination" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_places", | |
| "description": "Find places or businesses on the map.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string", | |
| "description": "What to look for." | |
| }, | |
| "near": { | |
| "type": "string", | |
| "description": "Area or landmark; omit to search near the user." | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "share_location", | |
| "description": "Share the user's location with a contact.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "recipient": { | |
| "type": "string" | |
| }, | |
| "duration_minutes": { | |
| "type": "integer", | |
| "description": "Share live location for this long; omit to send the current location once." | |
| } | |
| }, | |
| "required": [ | |
| "recipient" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "save_parking_location", | |
| "description": "Save where the user parked.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "note": { | |
| "type": "string", | |
| "description": "Extra detail such as level or spot." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "book_ride", | |
| "description": "Book a ride with a ride-hailing service.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "destination": { | |
| "type": "string" | |
| }, | |
| "pickup": { | |
| "type": "string", | |
| "description": "Omit to be picked up at the current location." | |
| }, | |
| "ride_type": { | |
| "type": "string", | |
| "enum": [ | |
| "standard", | |
| "premium", | |
| "xl", | |
| "shared" | |
| ], | |
| "default": "standard" | |
| } | |
| }, | |
| "required": [ | |
| "destination" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_ride_estimate", | |
| "description": "Get the price and wait time for a ride without booking it.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "destination": { | |
| "type": "string" | |
| }, | |
| "pickup": { | |
| "type": "string", | |
| "description": "Omit to be picked up at the current location." | |
| }, | |
| "ride_type": { | |
| "type": "string", | |
| "enum": [ | |
| "standard", | |
| "premium", | |
| "xl", | |
| "shared" | |
| ], | |
| "default": "standard" | |
| } | |
| }, | |
| "required": [ | |
| "destination" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_weather", | |
| "description": "Get the weather forecast for a day.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "date": { | |
| "type": "string", | |
| "description": "YYYY-MM-DD." | |
| }, | |
| "location": { | |
| "type": "string", | |
| "description": "Omit for the current location." | |
| } | |
| }, | |
| "required": [ | |
| "date" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_air_quality", | |
| "description": "Get the current air quality and pollen levels.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "location": { | |
| "type": "string", | |
| "description": "Omit for the current location." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "play_music", | |
| "description": "Start playing music; with no arguments, plays the user's usual mix.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "song": { | |
| "type": "string" | |
| }, | |
| "artist": { | |
| "type": "string" | |
| }, | |
| "album": { | |
| "type": "string" | |
| }, | |
| "playlist": { | |
| "type": "string" | |
| }, | |
| "genre": { | |
| "type": "string" | |
| }, | |
| "shuffle": { | |
| "type": "boolean", | |
| "default": false | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "play_podcast", | |
| "description": "Play a podcast episode.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "show": { | |
| "type": "string" | |
| }, | |
| "episode": { | |
| "type": "string", | |
| "description": "Episode title or number; omit for the latest." | |
| } | |
| }, | |
| "required": [ | |
| "show" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "play_audiobook", | |
| "description": "Play or resume an audiobook.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "title" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "play_radio", | |
| "description": "Play a live radio station.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "station": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "station" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "media_control", | |
| "description": "Control what is playing now (previous/next = track or episode; restart = current one from the top).", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "action": { | |
| "type": "string", | |
| "enum": [ | |
| "pause", | |
| "resume", | |
| "next", | |
| "previous", | |
| "restart" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "action" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "add_current_song_to_playlist", | |
| "description": "Add the song that is playing to a playlist.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "playlist": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "playlist" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_sleep_timer", | |
| "description": "Stop media playback after a number of minutes.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "duration_minutes": { | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "duration_minutes" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "take_photo", | |
| "description": "Take a photo with the camera.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "camera": { | |
| "type": "string", | |
| "enum": [ | |
| "back", | |
| "front" | |
| ], | |
| "default": "back" | |
| }, | |
| "timer_seconds": { | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "record_video", | |
| "description": "Start recording a video.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "camera": { | |
| "type": "string", | |
| "enum": [ | |
| "back", | |
| "front" | |
| ], | |
| "default": "back" | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "take_screenshot", | |
| "description": "Capture what is on the screen.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {}, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "scan_document", | |
| "description": "Scan a paper document with the camera into a PDF.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {}, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_photos", | |
| "description": "Search the photo gallery.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string", | |
| "description": "People, things or places in the photos." | |
| }, | |
| "date": { | |
| "type": "string", | |
| "description": "First (or only) day taken, YYYY-MM-DD." | |
| }, | |
| "end_date": { | |
| "type": "string", | |
| "description": "Last day of a multi-day range, YYYY-MM-DD." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_wifi", | |
| "description": "Turn Wi-Fi on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_bluetooth", | |
| "description": "Turn Bluetooth on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "connect_bluetooth_device", | |
| "description": "Connect to a paired Bluetooth device.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "device_name": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "device_name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_airplane_mode", | |
| "description": "Turn airplane mode on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_mobile_data", | |
| "description": "Turn mobile data on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_hotspot", | |
| "description": "Turn the personal hotspot on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_do_not_disturb", | |
| "description": "Turn Do Not Disturb on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| }, | |
| "until": { | |
| "type": "string", | |
| "description": "When to turn it off again, YYYY-MM-DDTHH:MM:SS." | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_ringer_mode", | |
| "description": "Switch the ringer between normal, vibrate and silent.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "mode": { | |
| "type": "string", | |
| "enum": [ | |
| "normal", | |
| "vibrate", | |
| "silent" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "mode" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_volume", | |
| "description": "Set the ringtone and notification volume.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "level": { | |
| "type": "integer", | |
| "minimum": 0, | |
| "maximum": 100, | |
| "description": "Percent." | |
| } | |
| }, | |
| "required": [ | |
| "level" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_media_volume", | |
| "description": "Set the volume of music, videos and podcasts.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "level": { | |
| "type": "integer", | |
| "minimum": 0, | |
| "maximum": 100, | |
| "description": "Percent." | |
| } | |
| }, | |
| "required": [ | |
| "level" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_brightness", | |
| "description": "Set the screen brightness.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "level": { | |
| "type": "integer", | |
| "minimum": 0, | |
| "maximum": 100, | |
| "description": "Percent." | |
| } | |
| }, | |
| "required": [ | |
| "level" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_flashlight", | |
| "description": "Turn the flashlight on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_dark_mode", | |
| "description": "Turn dark mode on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_battery_saver", | |
| "description": "Turn battery saver on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "enabled": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "enabled" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_battery_level", | |
| "description": "Get the phone's battery level.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": {}, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "control_lights", | |
| "description": "Turn smart lights or lamps on or off, dim them or change their color.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "on": { | |
| "type": "boolean" | |
| }, | |
| "room": { | |
| "type": "string", | |
| "description": "Omit for all lights." | |
| }, | |
| "brightness": { | |
| "type": "integer", | |
| "minimum": 1, | |
| "maximum": 100, | |
| "description": "Percent." | |
| }, | |
| "color": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "on" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_thermostat", | |
| "description": "Set the thermostat's target temperature.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "temperature": { | |
| "type": "number" | |
| }, | |
| "unit": { | |
| "type": "string", | |
| "enum": [ | |
| "celsius", | |
| "fahrenheit" | |
| ] | |
| }, | |
| "mode": { | |
| "type": "string", | |
| "enum": [ | |
| "heat", | |
| "cool", | |
| "auto" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "temperature", | |
| "unit" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "set_lock", | |
| "description": "Lock or unlock a smart door lock.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "door": { | |
| "type": "string" | |
| }, | |
| "locked": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "door", | |
| "locked" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "control_smart_plug", | |
| "description": "Turn an appliance plugged into a smart plug (fan, heater, kettle...) on or off.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "device_name": { | |
| "type": "string" | |
| }, | |
| "on": { | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "device_name", | |
| "on" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "activate_scene", | |
| "description": "Run a saved smart-home scene.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "scene_name": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "scene_name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "start_vacuum", | |
| "description": "Start the robot vacuum.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "room": { | |
| "type": "string", | |
| "description": "Omit to clean everywhere." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "send_money", | |
| "description": "Send money to a contact.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "recipient": { | |
| "type": "string" | |
| }, | |
| "amount": { | |
| "type": "number" | |
| }, | |
| "currency": { | |
| "type": "string", | |
| "description": "ISO 4217 code." | |
| }, | |
| "note": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "recipient", | |
| "amount", | |
| "currency" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "request_money", | |
| "description": "Ask a contact to pay the user.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "recipient": { | |
| "type": "string" | |
| }, | |
| "amount": { | |
| "type": "number" | |
| }, | |
| "currency": { | |
| "type": "string", | |
| "description": "ISO 4217 code." | |
| }, | |
| "note": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "recipient", | |
| "amount", | |
| "currency" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_account_balance", | |
| "description": "Get the balance of a bank account.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "account": { | |
| "type": "string", | |
| "enum": [ | |
| "checking", | |
| "savings", | |
| "credit_card" | |
| ], | |
| "default": "checking" | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_recent_transactions", | |
| "description": "List recent bank transactions.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "account": { | |
| "type": "string", | |
| "enum": [ | |
| "checking", | |
| "savings", | |
| "credit_card" | |
| ], | |
| "default": "checking" | |
| }, | |
| "count": { | |
| "type": "integer", | |
| "default": 10 | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_stock_price", | |
| "description": "Get the latest price of a stock.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "symbol": { | |
| "type": "string", | |
| "description": "Ticker symbol." | |
| } | |
| }, | |
| "required": [ | |
| "symbol" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "translate_text", | |
| "description": "Translate text into another language.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "text": { | |
| "type": "string" | |
| }, | |
| "target_language": { | |
| "type": "string", | |
| "description": "ISO 639-1 code." | |
| }, | |
| "source_language": { | |
| "type": "string", | |
| "description": "ISO 639-1 code, only if the user names it." | |
| } | |
| }, | |
| "required": [ | |
| "text", | |
| "target_language" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "convert_units", | |
| "description": "Convert a measurement between units.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "value": { | |
| "type": "number" | |
| }, | |
| "from_unit": { | |
| "type": "string", | |
| "enum": [ | |
| "mm", | |
| "cm", | |
| "m", | |
| "km", | |
| "in", | |
| "ft", | |
| "yd", | |
| "mi", | |
| "mg", | |
| "g", | |
| "kg", | |
| "oz", | |
| "lb", | |
| "ml", | |
| "l", | |
| "cup", | |
| "fl_oz", | |
| "gal", | |
| "c", | |
| "f", | |
| "kmh", | |
| "mph", | |
| "sqm", | |
| "sqft" | |
| ] | |
| }, | |
| "to_unit": { | |
| "type": "string", | |
| "enum": [ | |
| "mm", | |
| "cm", | |
| "m", | |
| "km", | |
| "in", | |
| "ft", | |
| "yd", | |
| "mi", | |
| "mg", | |
| "g", | |
| "kg", | |
| "oz", | |
| "lb", | |
| "ml", | |
| "l", | |
| "cup", | |
| "fl_oz", | |
| "gal", | |
| "c", | |
| "f", | |
| "kmh", | |
| "mph", | |
| "sqm", | |
| "sqft" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "value", | |
| "from_unit", | |
| "to_unit" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "convert_currency", | |
| "description": "Convert an amount between currencies at today's rate.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "amount": { | |
| "type": "number" | |
| }, | |
| "from_currency": { | |
| "type": "string", | |
| "description": "ISO 4217 code." | |
| }, | |
| "to_currency": { | |
| "type": "string", | |
| "description": "ISO 4217 code." | |
| } | |
| }, | |
| "required": [ | |
| "amount", | |
| "from_currency", | |
| "to_currency" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "calculate", | |
| "description": "Evaluate an arithmetic expression.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "expression": { | |
| "type": "string", | |
| "description": "Numbers with + - * / ** and parentheses." | |
| } | |
| }, | |
| "required": [ | |
| "expression" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_web", | |
| "description": "Search the web.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_news_headlines", | |
| "description": "Get the latest news headlines.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "topic": { | |
| "type": "string", | |
| "description": "Omit for top stories." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "open_app", | |
| "description": "Open an app on the phone.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "app_name": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "app_name" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_notifications", | |
| "description": "Read out recent notifications.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "app_name": { | |
| "type": "string", | |
| "description": "Omit for all apps." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "log_workout", | |
| "description": "Log a finished workout.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "activity": { | |
| "type": "string", | |
| "enum": [ | |
| "running", | |
| "walking", | |
| "cycling", | |
| "swimming", | |
| "hiking", | |
| "yoga", | |
| "strength", | |
| "rowing", | |
| "other" | |
| ] | |
| }, | |
| "duration_minutes": { | |
| "type": "integer" | |
| }, | |
| "distance": { | |
| "type": "number" | |
| }, | |
| "distance_unit": { | |
| "type": "string", | |
| "enum": [ | |
| "km", | |
| "mi" | |
| ], | |
| "default": "km" | |
| } | |
| }, | |
| "required": [ | |
| "activity", | |
| "duration_minutes" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "start_workout", | |
| "description": "Start tracking a workout now.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "activity": { | |
| "type": "string", | |
| "enum": [ | |
| "running", | |
| "walking", | |
| "cycling", | |
| "swimming", | |
| "hiking", | |
| "yoga", | |
| "strength", | |
| "rowing", | |
| "other" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "activity" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "log_water", | |
| "description": "Log water the user drank.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "amount": { | |
| "type": "number" | |
| }, | |
| "unit": { | |
| "type": "string", | |
| "enum": [ | |
| "ml", | |
| "l", | |
| "fl_oz", | |
| "cup", | |
| "glass" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "amount", | |
| "unit" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "log_meal", | |
| "description": "Log food the user ate.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "description": { | |
| "type": "string" | |
| }, | |
| "meal": { | |
| "type": "string", | |
| "enum": [ | |
| "breakfast", | |
| "lunch", | |
| "dinner", | |
| "snack" | |
| ], | |
| "description": "Only if the user names the meal." | |
| }, | |
| "calories": { | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "description" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "log_weight", | |
| "description": "Log the user's body weight.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "value": { | |
| "type": "number" | |
| }, | |
| "unit": { | |
| "type": "string", | |
| "enum": [ | |
| "kg", | |
| "lb" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "value", | |
| "unit" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_step_count", | |
| "description": "Get the number of steps walked on a day.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "date": { | |
| "type": "string", | |
| "description": "YYYY-MM-DD." | |
| } | |
| }, | |
| "required": [ | |
| "date" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_sleep_summary", | |
| "description": "Get sleep data for a night.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "date": { | |
| "type": "string", | |
| "description": "Day the user woke up, YYYY-MM-DD." | |
| } | |
| }, | |
| "required": [ | |
| "date" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_flights", | |
| "description": "Search for flights.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "origin": { | |
| "type": "string", | |
| "description": "City or airport." | |
| }, | |
| "destination": { | |
| "type": "string", | |
| "description": "City or airport." | |
| }, | |
| "date": { | |
| "type": "string", | |
| "description": "Departure day, YYYY-MM-DD." | |
| }, | |
| "return_date": { | |
| "type": "string", | |
| "description": "YYYY-MM-DD; omit for one-way." | |
| }, | |
| "passengers": { | |
| "type": "integer", | |
| "default": 1 | |
| }, | |
| "cabin": { | |
| "type": "string", | |
| "enum": [ | |
| "economy", | |
| "premium_economy", | |
| "business", | |
| "first" | |
| ], | |
| "default": "economy" | |
| } | |
| }, | |
| "required": [ | |
| "origin", | |
| "destination", | |
| "date" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_flight_status", | |
| "description": "Get the live status of a flight.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "flight_number": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "flight_number" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_hotels", | |
| "description": "Search for hotel rooms.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "location": { | |
| "type": "string" | |
| }, | |
| "check_in": { | |
| "type": "string", | |
| "description": "YYYY-MM-DD." | |
| }, | |
| "check_out": { | |
| "type": "string", | |
| "description": "YYYY-MM-DD." | |
| }, | |
| "guests": { | |
| "type": "integer", | |
| "default": 1 | |
| } | |
| }, | |
| "required": [ | |
| "location", | |
| "check_in", | |
| "check_out" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "book_restaurant", | |
| "description": "Reserve a table at a restaurant.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "restaurant": { | |
| "type": "string" | |
| }, | |
| "time": { | |
| "type": "string", | |
| "description": "YYYY-MM-DDTHH:MM:SS." | |
| }, | |
| "party_size": { | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "restaurant", | |
| "time", | |
| "party_size" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "get_world_time", | |
| "description": "Get the current local time in a city or country.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "location": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "location" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "track_package", | |
| "description": "Track a parcel delivery.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "tracking_number": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "tracking_number" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "search_files", | |
| "description": "Search files stored on the phone.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string" | |
| }, | |
| "file_type": { | |
| "type": "string", | |
| "enum": [ | |
| "any", | |
| "pdf", | |
| "document", | |
| "spreadsheet", | |
| "presentation", | |
| "image", | |
| "audio", | |
| "video" | |
| ], | |
| "default": "any" | |
| } | |
| }, | |
| "required": [ | |
| "query" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "share_file", | |
| "description": "Send a file from the phone to a contact.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "file_name": { | |
| "type": "string" | |
| }, | |
| "recipient": { | |
| "type": "string" | |
| }, | |
| "app": { | |
| "type": "string", | |
| "enum": [ | |
| "email", | |
| "sms", | |
| "whatsapp", | |
| "telegram", | |
| "signal", | |
| "messenger" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "file_name", | |
| "recipient", | |
| "app" | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "record_voice_memo", | |
| "description": "Start recording a voice memo.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "title": { | |
| "type": "string", | |
| "description": "Only if the user gives one." | |
| } | |
| }, | |
| "required": [] | |
| } | |
| } | |
| }, | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "find_device", | |
| "description": "Locate another of the user's devices and make it ring.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "device_name": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "device_name" | |
| ] | |
| } | |
| } | |
| } | |
| ] | |