Module core.base_engine
Classes
class ActionResult (instruction: str,
code: str,
success: bool,
output: Any,
total_estimated_tokens: int | None = 0,
total_estimated_cost: float | None = 0)-
Represent the result of executing an instruction
Class variables
var code : strvar instruction : strvar output : Anyvar success : boolvar total_estimated_cost : float | Nonevar total_estimated_tokens : int | None
class BaseEngine-
Helper class that provides a standard way to create an ABC using inheritance.
Ancestors
- abc.ABC
- lavague.core.logger.Loggable
- lavague.core.display.Display
Methods
def execute_instruction(self, instruction: str) ‑> ActionResult