052591281d
- Complete agent system with planning and execution - Bridge API with FastAPI server - WhatsApp-style mobile dashboard - Enhanced web search with query improvement - Security guards and policy checks - Comprehensive documentation
29 lines
631 B
Python
29 lines
631 B
Python
"""Adapter registry for Bridge V1.2."""
|
|
from __future__ import annotations
|
|
|
|
from adapters import (
|
|
agent_adapter,
|
|
cloudcode_adapter,
|
|
local_echo_adapter,
|
|
ollama_adapter,
|
|
openai_adapter,
|
|
stub_adapter,
|
|
)
|
|
|
|
REGISTRY: dict[str, object] = {
|
|
"stub": stub_adapter,
|
|
"local_echo": local_echo_adapter,
|
|
"ollama": ollama_adapter,
|
|
"openai": openai_adapter,
|
|
"cloudcode": cloudcode_adapter,
|
|
"agent": agent_adapter,
|
|
}
|
|
|
|
|
|
def get(name: str):
|
|
return REGISTRY.get(name)
|
|
|
|
|
|
def available() -> dict[str, str]:
|
|
return {name: mod.mode() for name, mod in REGISTRY.items()} # type: ignore[attr-defined]
|