File size: 2,248 Bytes
bb67179
 
 
 
 
 
 
 
 
79a7353
bb67179
 
 
 
9962bee
400b811
083bb97
 
 
 
 
bb67179
 
 
79a7353
 
 
 
 
 
 
 
 
 
f1315c3
 
 
79a7353
 
 
 
 
bb67179
 
 
 
 
 
 
 
f1315c3
bb67179
 
 
 
 
cb390bc
f1315c3
400b811
bb67179
 
 
cb390bc
437baf7
400b811
bb67179
 
 
 
 
 
 
f1315c3
 
 
 
 
 
 
 
 
 
 
 
 
bb67179
 
 
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
{
    "message": [
        {
            "type": "equals",
            "content": "ping",
            "response": "pong"
        },
        {
            "type": "startswith",
            "content": "hello",
            "response": "Hello!"
        },
        {
            "type": "equals",
            "content": "get kudos",
            "function": "get_kudos"
        },
        {
        	"type": "equals",
        	"content": "test fishspeech",
        	"function": "fishspeech.test"
        }
    ],
    "command": [
    	{
    		"name": "ping",
    		"response": "pong"
    	},
    	{
    		"name": "hello",
    		"function": "greet",
    		"parameters": [
    			{
    				"name": "name",
    				"type": "str",
    				"default": "this user",
                    "description": "The user to greet"
    			}
    		]
    	}
    ],
    "app_command": [
        {
            "name": "greet",
            "description": "Greets the specified user",
            "function": "greet",
            "parameters": [
                {
                    "name": "name",
                    "type": "str",
                    "default": "this user",
                    "description": "The user to greet"
                }
            ]
        },
        {
            "name": "get_kudos",
            "description": "Get the amount of Kudos this user has.",
            "function": "get_kudos",
            "parameters": []
        },
        {
            "name": "generate_status",
            "description": "Retrieve the status of an Asynchronous generation request.",
            "function": "generate_status",
            "parameters": [
                {
                    "name": "id",
                    "type": "str",
                    "description": "The ID of asyncronous generation request."
                }
            ]
        },
        {
        	"name": "help",
        	"description": "To query supported command(s) in this app.",
        	"function": "get_help",
        	"parameters": [
	        	{
	        		"name": "command_name",
	        		"type": "str",
	        		"default": "",
	        		"description": "The command name to query. Keep it empty to query all commands."
	        	}
        	]
        }
    ]
}