Module genai_apis.abstract
Classes
class TextGenerationAPI
-
Abstract base class for text generation APIs.
Expand source code
class TextGenerationAPI: """Abstract base class for text generation APIs.""" async def generate_text(self, prompt): """Generate text based on the given prompt.""" raise NotImplementedError("This method should be overridden by subclasses.")
Subclasses
Methods
async def generate_text(self, prompt)
-
Generate text based on the given prompt.