APIs

API reference: pe.api package

pe.api.api.API is responsible for implementing the foundation model APIs. It has the following key methods:

Available APIs

Currently, the following APIs are implemented:

Adding Your Own APIs

To add your own APIs, you need to create a class that inherits from pe.api.api.API and implements the pe.api.api.API.random_api() and pe.api.api.API.variation_api() methods.