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

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) ‑> 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

Methods

def extract(self, markdown_text: str, shape_validator=None) ‑> 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)