File size: 3,043 Bytes
9d3162f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from csv_to_db import ImportCSV
importcsv = ImportCSV("CaesarAI")

print()



importcsv.db.caesarapis.insert_one({

    "caesarapis": [
        {
            "api_name": "Caesar Translate",
            "triggerwords": "translate",
            "example": "Translate hello world into Spanish",
            "url": "http://192.168.0.10:7860/caesarlangtranslate",
            "responseresult": {
                "caesaroutput": "Hola Mundo",
                "caesartranslation": {
                    "destination_language": "en",
                    "original": "hello world",
                    "original_language": "es",
                    "translation": "Hola Mundo"
                }
            },
            "method": "POST",
            "content_type": "application/json",
            "data": {
                "caesartranslate": "translate hello world into Spanish",
                "response": "true",
                "language": "fr",
                "triggerword": "translate"
            },
            "auth": "none",
            "token": "none"
        },
        {
            "api_name": "Caesar Send Email",
            "triggerwords": "email",
            "example": "Send email to Amari Saying hello world",
            "url": "https://revisionbank-email.onrender.com/raspsendemail",
            "responseresult": {
                "raspsendemail": "RaspSendEmail sent."
            },
            "method": "POST",
            "content_type": "application/json",
            "data": {
                "email": "[email protected]",
                "subject": "CaesarAI",
                "message": "hello world",
                "caesar": "true"
            },
            "auth": "none",
            "token": "none"
        },
        {
            "api_name": "Caesar Hotel Booking",
            "triggerwords": "hotel booking",
            "example": "find hotel booking for Alicante",
            "url": "http://192.168.0.10:7860/caesaraihotelbookings",
            "responseresult": {
                "caesaroutput": {
                    "caesarbookings": [
                        "list of bookings"
                    ]
                }
            },
            "method": "POST",
            "content_type": "application/json",
            "data": {
                "city": "Alicante",
                "checkin_date": "2023-8-15",
                "checkout_date": "2023-8-22",
                "purpose": "leisure",
                "num_of_adults": {
                    "$numberInt": "10"
                },
                "num_of_rooms": {
                    "$numberInt": "5"
                },
                "num_of_children": {
                    "$numberInt": "0"
                },
                "price_range": {
                    "$numberInt": "2000"
                },
                "num_of_pages": {
                    "$numberInt": "10"
                },
                "exclude_whole": "true"
            },
            "auth": "none",
            "token": "none"
        }
    ]
})