Module core.extractors
Classes
class BaseExtractor-
Helper class that provides a standard way to create an ABC using inheritance.
Ancestors
- abc.ABC
Subclasses
- DynamicExtractor
- JsonFromMarkdownExtractor
- PythonFromMarkdownExtractor
- UntilEndOfMarkdownExtractor
- YamlFromMarkdownExtractor
Methods
def extract(self, text: str) ‑> strdef extract_as_object(self, text: str) ‑> Any
class DynamicExtractor-
Extractor for typed markdown blocks
Ancestors
- BaseExtractor
- abc.ABC
Methods
def extract(self, text: str) ‑> strdef extract_as_object(self, text: str) ‑> Anydef get_type(self, text: str) ‑> str
class JsonFromMarkdownExtractor-
Extractor for the prompts that end with (or similar to) the following:
Completion:
Ancestors
- BaseExtractor
- abc.ABC
Methods
def extract(self, markdown_text: str) ‑> strdef extract_as_object(self, text: str)
class PythonFromMarkdownExtractor-
Extractor for the prompts that end with (or similar to) the following:
Completion:
Ancestors
- BaseExtractor
- abc.ABC
Methods
def extract(self, markdown_text: str) ‑> strdef 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
- BaseExtractor
- abc.ABC
Methods
def extract(self, text: str) ‑> strdef extract_as_object(self, text: str) ‑> Any
class YamlFromMarkdownExtractor-
Extractor for the prompts that end with (or similar to) the following:
Completion:
Ancestors
- BaseExtractor
- abc.ABC
Methods
def extract(self, markdown_text: str) ‑> strdef extract_as_object(self, text: str)