Spaces:
Runtime error
Runtime error
File size: 3,681 Bytes
a3aa6c1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
_OPENAI_TOOLS = [
{
"type": "function",
"name": "get_relevant_information",
"description": "Get relevant information(Context) to better respond to user queries",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The user query to get relevant information for",
},
},
"required": ["query"],
},
},
{
"type": "function",
"name": "get_available_salesperson_meetings",
"description": "Get all the salespersons ids that can be used to check available slots and to schedule meetings",
},
{
"type": "function",
"name": "get_available_slots",
"description": "Get available slots for a salesperson meeting",
"parameters": {
"type": "object",
"properties": {
"salesperson_meeting_id": {
"type": "string",
"description": "The ID of the salesperson meeting",
},
"timezone": {
"type": "string",
"description": "The timezone for the available slots. It must be a tz identifier like America/New_York, Asia/Kolkata, Cuba, etc.Note: We have regional calenders for APAC, EMEA, and North America. Please use the timezone accordingly. The region must be asked explicitly from the user and hence confirmed too.",
},
},
"required": ["salesperson_meeting_id", "timezone"],
},
},
{
"type": "function",
"name": "schedule_meeting",
"description": "Schedule a meeting",
"parameters": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "The ID of the user, default: DEFAULT_USER, Do not explicitly ask for this",
"default": "DEFAULT_USER",
},
"salesperson_meeting_id": {
"type": "string",
"description": "The ID of the salesperson meeting, this can be obtained from get_available_salesperson_meetings",
},
"preferred_start_time": {
"type": "string",
"format": "date-time",
"description": "The preferred start time for the meeting. format: YYYY-MM-DD HH:MM:SS, this can be obtained from get_available_slots",
"example": "2022-12-17 12:00:00",
},
"duration": {
"type": "integer",
"description": "The duration of the meeting in minutes",
},
"timezone": {
"type": "string",
"description": "The timezone for the available slots. It must be a tz identifier like America/New_York, Asia/Kolkata, Cuba, etc.Note: We have regional calenders for APAC, EMEA, and North America. Please use the timezone accordingly. The region must be asked explicitly from the user and hence confirmed too.",
},
"locale": {
"type": "string",
"description": "The locale for the meeting",
"default": "en-us",
},
},
"required": [
"user_id",
"salesperson_meeting_id",
"preferred_start_time",
"duration",
"timezone",
],
},
},
]
|