-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctionConfig.js
114 lines (114 loc) · 3.24 KB
/
functionConfig.js
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
module.exports = [
{
name: "send_email",
description: "Please send an email.",
parameters: {
type: "object",
properties: {
to_address: {
type: "string",
description: "To address for email",
},
subject: {
type: "string",
description: "subject of the email",
},
body: {
type: "string",
description: "Body of the email",
},
},
required: ["to_address", "subject", "body"],
},
},
{
name: "book_travel",
description: "Book travel.",
parameters: {
type: "object",
properties: {
destination: {
type: "string",
description:
"Your travel destination.this is required value dont set ambigous value . Take input from user",
},
departure: {
type: "string",
description:
"From where are you traveling. this is required value dont set ambigous value . take input from user",
},
number_people: {
type: "integer",
description:
"How many people are traveling. this is required value dont set ambigous value . take input from user",
default: false,
},
travel_mode: {
type: "string",
description:
"What mode of travel will it be. this is required value dont set ambigous value . take input from user",
enum: ["Flight", "Train", "Bus"],
},
when: {
type: "string",
description:
"Please provide date or timestamp. this is required value don't set default or ambiguous value . take input from user e.g 2 july 2024 at 10AM",
// default: false,
},
},
required: [
"destination",
"departure",
"number_people",
"travel_mode",
"when",
],
},
},
{
name: "book_ride",
description:
"Book a ride to office. You should NEVER call this function before rides_available has been called in conversation.",
parameters: {
type: "object",
properties: {
pickup_location: {
type: "string",
description:
"Your pickup location.this is required value don't set ambiguous value . Take input from user",
},
office_location: {
type: "string",
description:
"Your office location. this is required value don't set ambiguous value . Take input from user.",
},
car_type: {
type: "string",
description:
"Which type of car you prefer e.g Standard Car, SUV, Luxury Car. this is required value don't set ambiguous value . take input from user",
enum: ["Standard Car", "SUV", "Luxury Car"],
},
selected_ride_id: {
type: "integer",
description: "Ask User to provide ID of selected ride.",
},
},
required: [
"pickup_location",
"office_location",
"car_type",
"selected_ride_id",
],
},
},
{
name: "rides_available",
description: "List of rides available in your area.",
parameters: {
type: "object",
properties: {
pickup_location: {},
},
},
},
];