OpenAPIActionTool
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:22
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OpenAPIActionTool(
openapi_uri,domainHeaders):OpenAPIActionTool
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:64
Parameters
Section titled “Parameters”openapi_uri
Section titled “openapi_uri”string
domainHeaders
Section titled “domainHeaders”DomainHeaders = {}
Returns
Section titled “Returns”OpenAPIActionTool
Properties
Section titled “Properties”openapi_uri
Section titled “openapi_uri”openapi_uri:
string
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:65
domainHeaders
Section titled “domainHeaders”domainHeaders:
DomainHeaders={}
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:66
Methods
Section titled “Methods”loadOpenapiSpec()
Section titled “loadOpenapiSpec()”loadOpenapiSpec(
url):Promise<any>
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:70
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<any>
getRequest()
Section titled “getRequest()”getRequest(
input):Promise<JSONValue>
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:79
Parameters
Section titled “Parameters”Input
Returns
Section titled “Returns”Promise<JSONValue>
postRequest()
Section titled “postRequest()”postRequest(
input):Promise<JSONValue>
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:96
Parameters
Section titled “Parameters”Input
Returns
Section titled “Returns”Promise<JSONValue>
patchRequest()
Section titled “patchRequest()”patchRequest(
input):Promise<JSONValue>
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:111
Parameters
Section titled “Parameters”Input
Returns
Section titled “Returns”Promise<JSONValue>
toToolFunctions()
Section titled “toToolFunctions()”toToolFunctions():
Promise<FunctionTool<Input,JSONValue|Promise<JSONValue>,object>[]>
Defined in: .build/typescript/packages/tools/src/tools/openapi-action.ts:126
Returns
Section titled “Returns”Promise<FunctionTool<Input, JSONValue | Promise<JSONValue>, object>[]>