Skip to content

Commit

Permalink
Create gpt_action_json_schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rusiaaman authored Oct 25, 2024
1 parent dada079 commit 8ddc09d
Showing 1 changed file with 231 additions and 0 deletions.
231 changes: 231 additions & 0 deletions gpt_action_json_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@

{
"openapi": "3.1.0",
"info": {
"title": "FastAPI",
"version": "0.1.0"
},
"servers": [
{"url": "https://wcgw.arcfu.com"}
],
"paths": {
"/write_file": {
"post": {
"x-openai-isConsequential": false,
"summary": "Write File",
"operationId": "write_file_write_file__uuid__post",
"parameters": [
{
"name": "user_id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"format": "uuid",
"title": "User Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Writefile"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "string",
"title": "Response Write File Write File Uuid Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/execute_bash": {
"post": {
"x-openai-isConsequential": false,
"summary": "Execute Bash",
"operationId": "execute_bash_execute_bash__uuid__post",
"parameters": [
{
"name": "user_id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"format": "uuid",
"title": "User Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExecuteBash"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "string",
"title": "Response Execute Bash Execute Bash Uuid Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ExecuteBash": {
"properties": {
"execute_command": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Execute Command"
},
"send_ascii": {
"anyOf": [
{
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string",
"enum": [
"Key-up",
"Key-down",
"Key-left",
"Key-right",
"Enter",
"Ctrl-c"
]
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Send Ascii"
}
},
"type": "object",
"title": "ExecuteBash"
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"Writefile": {
"properties": {
"file_path": {
"type": "string",
"title": "File Path"
},
"file_content": {
"type": "string",
"title": "File Content"
}
},
"type": "object",
"required": [
"file_path",
"file_content"
],
"title": "Writefile"
}
}
}
}

0 comments on commit 8ddc09d

Please sign in to comment.