mellea.backends.dummy
class mellea.backends.dummy.DummyBackend(responses: list[str] | None)
responses
: If None
, then the dummy backend always returns “dummy”. Otherwise, returns the next item from responses. The generate function will throw an exception if a generate call is made after the list is exhausted.mellea.backends.dummy.DummyBackend.generate_from_context(action: Component | CBlock, ctx: Context, format: type[BaseModelSubclass] | None = None, model_options: dict | None = None, generate_logs: list[GenerateLog] | None = None, tool_calls: bool = False)