langchain.js
    Preparing search index...

    Function convertOpenAPISpecToOpenAIFunctions

    • Converts an OpenAPI specification to OpenAI functions.

      Parameters

      • spec: OpenAPISpec

        The OpenAPI specification to convert.

      Returns { defaultExecutionMethod?: OpenAPIExecutionMethod; openAIFunctions: Function[] }

      An object containing the OpenAI functions derived from the OpenAPI specification and a default execution method.