Module core.extractors
Functions
def extract_xpath_from_action(content)def extract_xpaths_from_html(html)
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) ‑> Tuple[str, str]
class ExtractionError (*args: object)-
Common base class for all non-exit exceptions.
Ancestors
- builtins.Exception
- builtins.BaseException
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, shape_validator=None) ‑> 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)