Skip to content

Create Tools from OpenAPI Spec

QType allows you to automatically convert openapi specs to tools. This lets you make arbitrary calls in your flows, or connect them to agents.

This tutorial will walk you through creating convertting an openapi spec into QType specification that can be used in your applications.

Prerequisites

Before following this tutorial, make sure you understand:

Overview

The qtype convert api command creates tools, AuthorizationProvider, and Custom types for each endpoint in the api.

Converting the API to QType Tools

Via the QType CLI:

qtype convert api spec.oas.yaml -o api_tools.qtype.yaml