Skip to main content
This module holds shim backends used for smoke tests.

Classes

CLASS DummyBackend

A backend for smoke testing. Returns predetermined string responses in sequence, or "dummy" if no responses are provided. Intended for unit tests and integration smoke tests where real model inference is not needed. Args:
  • responses: Ordered list of strings to return on successive generate_from_context calls, or None to always return "dummy".
Attributes:
  • idx: Index of the next response to return from responses; starts at 0 and increments on each call.