Module core.base_engine

Classes

class ActionResult (instruction: str, code: str, success: bool, output: Any, total_estimated_tokens: Optional[int] = 0, total_estimated_cost: Optional[float] = 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 : Optional[float]
var total_estimated_tokens : Optional[int]
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