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 : str
var instruction : str
var output : Any
var success : bool
var total_estimated_cost : float | None
var 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