I made LLM function calling schema definitions for TypeScript, and converters from the OpenAPI documents

NPM package @samchon/openapi

I’ve made a TypeScript open source library which contains OpenAPI specifications for every versions, and converters to the LLM function calling schemas of most famous LLM providers like OpenAI.

flowchart
  subgraph "OpenAPI Specification"
    v20("Swagger v2.0") --upgrades--> emended[["OpenAPI v3.1 (emended)"]]
    v30("OpenAPI v3.0") --upgrades--> emended
    v31("OpenAPI v3.1") --emends--> emended
  end
  subgraph "OpenAPI Generator"
    emended --normalizes--> migration[["Migration Schema"]]
    migration --"Artificial Intelligence"--> lfc{{"LLM Function Calling"}}
    lfc --"OpenAI"--> chatgpt("ChatGPT")
    lfc --"Anthropic"--> claude("Claude")
    lfc --"Google"--> gemini("Gemini")
    lfc --"Meta"--> llama("Llama")
  end
1 Like

As I can’t attach any external link yet, please search @samchon/openapi and visit its Github repository by yourself please.

1 Like

I made OpenAPI and LLM schema definitions - DEV Community

Detailed article.