server-personification/lib/openai/functs.py

40 lines
1.4 KiB
Python

function_description = [
{
"name": "run_bash",
"description": "Execute a Bash command on the local system.",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The string to execute in Bash"
},
"reasoning": {
"type": "string",
"description": "Why you chose to run this command"
}
},
"required": ["command", "reasoning"]
}
},
{
"name": "end_my_response",
"description": "Call this after you have sent at least one response to the user and are ready for the user to respond. This allows you to send multiple messages and then a single `end_my_response` when you are finished. An `end_my_response` should always be preceded by a 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.",
"parameters": {
"type": "object",
"properties": {
"reasoning": {
"type": "string",
"description": "Why you chose to run this function"
}
},
"required": ["reasoning"]
}
}
]