server-personification/lib/openai/functs.py

35 lines
1019 B
Python

function_description = [
{
"name": "run_bash",
"description": "Send a string to the Bash interpreter. Sudo commands are not valid.",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The string to execute in Bash"
}
},
"required": ["command"]
}
},
{
"name": "talk",
"description": "Send a message to the user",
"parameters": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "The message to send"
}
},
"required": ["message"]
}
},
{
"name": "end_chat",
"description": "Close the chat connection with the user. The assistant is allowed to close the connection at any point if it desires to.",
}
]