Spaces:
Running
Running
{ | |
"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." | |
} | |
] | |
} | |
] | |
} |