Files
Anton 052591281d Initial clean version - Agent Maxim
- 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
2026-04-09 18:07:43 +03:00

26 lines
638 B
Python

"""Stub adapter — always available, no external dependencies.
Returns a deterministic echo response. Useful for testing the
orchestration pipeline without any real execution.
"""
from __future__ import annotations
from adapters.base import AdapterResult
MODE = "stub"
def execute(prompt: str) -> AdapterResult:
print("=== THIS ADAPTER IS USED: stub_adapter ===")
preview = prompt[:120] + ("..." if len(prompt) > 120 else "")
return AdapterResult(
response=f"[stub] received {len(prompt)} chars | {preview}",
error=None,
exit_code=0,
mode=MODE,
)
def mode() -> str:
return MODE