Define the LLM adapter interface in backend/engine/adapters/base.py with async methods complete(), list_models(), and test_connection(). The AdapterResponse dataclass holds response text, token counts, latency, model name, and raw metadata. Includes 11 tests covering instantiation guards, concrete subclass behavior, and dataclass semantics.
5 lines
138 B
Python
5 lines
138 B
Python
"""LLM endpoint adapters."""
|
|
|
|
from engine.adapters.base import AdapterResponse, BaseAdapter
|
|
|
|
__all__ = ["AdapterResponse", "BaseAdapter"]
|