-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathFunctionModels.cs
More file actions
270 lines (259 loc) · 8.26 KB
/
FunctionModels.cs
File metadata and controls
270 lines (259 loc) · 8.26 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.AI.VoiceLive.Samples;
/// <summary>
/// Request models for customer service functions.
/// </summary>
public static class FunctionModels
{
/// <summary>
/// Parameters for checking order status.
/// </summary>
public class CheckOrderStatusArgs
{
/// <summary>
/// The order number to check status for.
/// </summary>
public string order_number { get; set; } = string.Empty;
/// <summary>
/// Customer email.
/// </summary>
public string? email { get; set; }
}
/// <summary>
/// Parameters for getting customer information.
/// </summary>
public class GetCustomerInfoArgs
{
/// <summary>
/// Customer ID to retrieve information for.
/// </summary>
public string customer_id { get; set; } = string.Empty;
/// <summary>
/// Whether to include order history in the response.
/// </summary>
public bool include_history { get; set; } = false;
}
/// <summary>
/// Parameters for scheduling support calls.
/// </summary>
public class ScheduleSupportCallArgs
{
/// <summary>
/// The customer ID to schedule the call for.
/// </summary>
public string customer_id { get; set; } = string.Empty;
/// <summary>
/// The preferred time for the support call.
/// </summary>
public string? preferred_time { get; set; }
/// <summary>
/// The category of the support issue.
/// </summary>
public string issue_category { get; set; } = string.Empty;
/// <summary>
/// The urgency level of the support issue.
/// </summary>
public string urgency { get; set; } = "medium";
/// <summary>
/// A brief description of the issue.
/// </summary>
public string description { get; set; } = string.Empty;
}
/// <summary>
/// Parameters for initiating return process.
/// </summary>
public class InitiateReturnProcessArgs
{
/// <summary>
/// The order number for which the return is requested.
/// </summary>
public string order_number { get; set; } = string.Empty;
/// <summary>
/// The product ID to be returned.
/// </summary>
public string product_id { get; set; } = string.Empty;
/// <summary>
/// The reason for the return.
/// </summary>
public string reason { get; set; } = string.Empty;
/// <summary>
/// The return method preferred by the customer.
/// </summary>
public string return_type { get; set; } = string.Empty;
}
/// <summary>
/// Address information for shipping updates.
/// </summary>
public class Address
{
/// <summary>
/// Street address for shipping.
/// </summary>
public string street { get; set; } = string.Empty;
/// <summary>
/// City for shipping address.
/// </summary>
public string city { get; set; } = string.Empty;
/// <summary>
/// state for shipping address.
/// </summary>
public string state { get; set; } = string.Empty;
/// <summary>
/// zip code for shipping address.
/// </summary>
public string zip_code { get; set; } = string.Empty;
/// <summary>
/// Country for shipping address.
/// </summary>
public string country { get; set; } = "US";
}
/// <summary>
/// Parameters for updating shipping address.
/// </summary>
public class UpdateShippingAddressArgs
{
/// <summary>
/// Order number for which the address needs to be updated.
/// </summary>
public string order_number { get; set; } = string.Empty;
/// <summary>
/// New shipping address.
/// </summary>
public Address new_address { get; set; } = new();
}
}
/// <summary>
/// Sample data models for demonstration purposes.
/// </summary>
public static class SampleData
{
/// <summary>
/// Sample order information.
/// </summary>
public class Order
{
/// <summary>
/// The unique identifier for the order.
/// </summary>
public string OrderNumber { get; set; } = string.Empty;
/// <summary>
/// Status of the order.
/// </summary>
public string Status { get; set; } = string.Empty;
/// <summary>
/// Total amount for the order.
/// </summary>
public decimal TotalAmount { get; set; }
/// <summary>
/// The items included in the order.
/// </summary>
public List<OrderItem> Items { get; set; } = new();
/// <summary>
/// Estimated delivery date for the order.
/// </summary>
public DateTime? EstimatedDelivery { get; set; }
/// <summary>
/// Shipping tracking number, if available.
/// </summary>
public string? TrackingNumber { get; set; }
/// <summary>
/// Theustomer ID associated with the order.
/// </summary>
public string CustomerId { get; set; } = string.Empty;
/// <summary>
/// When the order was created.
/// </summary>
public DateTime CreatedAt { get; set; }
}
/// <summary>
/// Sample order item information.
/// </summary>
public class OrderItem
{
/// <summary>
/// The unique identifier for the product.
/// </summary>
public string ProductId { get; set; } = string.Empty;
/// <summary>
/// Name of the product.
/// </summary>
public string ProductName { get; set; } = string.Empty;
/// <summary>
/// quantity of the product ordered.
/// </summary>
public int Quantity { get; set; }
/// <summary>
/// status of the order item.
/// </summary>
public string Status { get; set; } = string.Empty;
/// <summary>
/// price of the product.
/// </summary>
public decimal Price { get; set; }
}
/// <summary>
/// Sample customer information.
/// </summary>
public class Customer
{
/// <summary>
/// customer ID.
/// </summary>
public string CustomerId { get; set; } = string.Empty;
/// <summary>
/// preferred name of the customer.
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// customer's email address.
/// </summary>
public string Email { get; set; } = string.Empty;
/// <summary>
/// phone number of the customer.
/// </summary>
public string? Phone { get; set; }
/// <summary>
/// customer's pricing tier.
/// </summary>
public string Tier { get; set; } = "Standard";
/// <summary>
/// When the customer was created.
/// </summary>
public DateTime CreatedAt { get; set; }
}
/// <summary>
/// Sample support ticket information.
/// </summary>
public class SupportTicket
{
/// <summary>
/// ID of the support ticket.
/// </summary>
public string TicketId { get; set; } = string.Empty;
/// <summary>
/// customer ID associated with the ticket.
/// </summary>
public string CustomerId { get; set; } = string.Empty;
/// <summary>
/// category of the support issue.
/// </summary>
public string Category { get; set; } = string.Empty;
/// <summary>
/// urgency level of the support issue.
/// </summary>
public string Urgency { get; set; } = string.Empty;
/// <summary>
/// brief description of the issue.
/// </summary>
public string Description { get; set; } = string.Empty;
/// <summary>
/// time when the ticket was created.
/// </summary>
public DateTime ScheduledTime { get; set; }
/// <summary>
/// current status of the support ticket.
/// </summary>
public string Status { get; set; } = "Scheduled";
}
}