feat: auto-inject Odoo workflow context into every agent execution
BaseAgent._lookup_odoo_context() calls odoo_doc_agent via PeerBus before _plan() runs on every directive. The RAG answer is stored in self._gathered['odoo_context'] and injected into every _loop() LLM call so agents reason with correct Odoo 18 workflow steps automatically. No changes required to individual agents. odoo_doc_agent opts out via auto_rag=False to prevent self-referential calls. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ class OdooDocAgent(BaseAgent):
|
||||
required_odoo_module = 'base'
|
||||
system_prompt_file = ''
|
||||
tools = []
|
||||
auto_rag = False # prevent self-referential PeerBus calls
|
||||
|
||||
async def _plan(self) -> dict:
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user