langchain/tests/unit_tests/tools/openapi/test_specs/wolframalpha/apispec.json
Harrison Chase 26314d7004
Harrison/openapi parser (#2461)
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
2023-04-05 22:19:09 -07:00

94 lines
2.9 KiB
JSON

{
"openapi": "3.1.0",
"info": {
"title": "Wolfram",
"version": "v0.1"
},
"servers": [
{
"url": "https://www.wolframalpha.com",
"description": "Wolfram Server for ChatGPT"
}
],
"paths": {
"/api/v1/cloud-plugin": {
"get": {
"operationId": "getWolframCloudResults",
"externalDocs": "https://reference.wolfram.com/language/",
"summary": "Evaluate Wolfram Language code",
"responses": {
"200": {
"description": "The result of the Wolfram Language evaluation",
"content": {
"text/plain": {}
}
},
"500": {
"description": "Wolfram Cloud was unable to generate a result"
},
"400": {
"description": "The request is missing the 'input' parameter"
},
"403": {
"description": "Unauthorized"
},
"503": {
"description": "Service temporarily unavailable. This may be the result of too many requests."
}
},
"parameters": [
{
"name": "input",
"in": "query",
"description": "the input expression",
"required": true,
"schema": {
"type": "string"
}
}
]
}
},
"/api/v1/llm-api": {
"get": {
"operationId": "getWolframAlphaResults",
"externalDocs": "https://products.wolframalpha.com/api",
"summary": "Get Wolfram|Alpha results",
"responses": {
"200": {
"description": "The result of the Wolfram|Alpha query",
"content": {
"text/plain": {}
}
},
"400": {
"description": "The request is missing the 'input' parameter"
},
"403": {
"description": "Unauthorized"
},
"500": {
"description": "Wolfram|Alpha was unable to generate a result"
},
"501": {
"description": "Wolfram|Alpha was unable to generate a result"
},
"503": {
"description": "Service temporarily unavailable. This may be the result of too many requests."
}
},
"parameters": [
{
"name": "input",
"in": "query",
"description": "the input",
"required": true,
"schema": {
"type": "string"
}
}
]
}
}
}
}