feat: register OdooDocAgent as PeerBus specialist agent

Wraps odootrain RAG API (http://192.168.2.9:8000) as a BaseAgent so any
specialist agent can query Odoo 18 docs mid-execution via PeerBus
request_type=query_docs. Participates in sweep health checks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Carlos Garcia
2026-05-14 22:53:22 -04:00
parent 384b42ab03
commit e215a26c58
2 changed files with 135 additions and 0 deletions

View File

@@ -155,6 +155,13 @@ async def lifespan(app: FastAPI):
def _register_specialist_agents(agent_registry, peer_bus, odoo, llm_router) -> None:
try:
from .agents.odoo_doc_agent import OdooDocAgent
agent_registry.register('odoo_doc_agent', OdooDocAgent(odoo=odoo, llm=llm_router, peer_bus=peer_bus))
logger.info('odoo_doc_agent registered (RAG @ http://192.168.2.9:8000)')
except Exception as exc:
logger.warning('Could not register odoo_doc_agent: %s', exc)
try:
from .agents.finance_agent import FinanceAgent
agent_registry.register('finance_agent', FinanceAgent(odoo=odoo, llm=llm_router, peer_bus=peer_bus))