Module core.extractors

Classes

class BaseExtractor

Helper class that provides a standard way to create an ABC using inheritance.

Ancestors

  • abc.ABC

Subclasses

Methods

def extract(self, text: str) ‑> str
def extract_as_object(self, text: str) ‑> Any
class DynamicExtractor

Extractor for typed markdown blocks

Ancestors

Methods

def extract(self, text: str) ‑> str
def extract_as_object(self, text: str) ‑> Any
def get_type(self, text: str) ‑> str
class JsonFromMarkdownExtractor

Extractor for the prompts that end with (or similar to) the following:


Completion:

Ancestors

Methods

def extract(self, markdown_text: str) ‑> str
def extract_as_object(self, text: str)
class PythonFromMarkdownExtractor

Extractor for the prompts that end with (or similar to) the following:


Completion:

Ancestors

Methods

def extract(self, markdown_text: str) ‑> str
def extract_as_object(self, text: str)
class UntilEndOfMarkdownExtractor

Extractor for the prompts that end with (or similar to) the following:


Completion: ```python

Let's proceed step by step.


Ancestors

Methods

def extract(self, text: str) ‑> str
def extract_as_object(self, text: str) ‑> Any
class YamlFromMarkdownExtractor

Extractor for the prompts that end with (or similar to) the following:


Completion:

Ancestors

Methods

def extract(self, markdown_text: str) ‑> str
def extract_as_object(self, text: str)