
CrewAI + ODEI: Governed Multi-Agent Teams
CrewAI + ODEI: Governed Multi-Agent Teams CrewAI is great for orchestrating multi-agent workflows. ODEI adds constitutional governance: validation before every consequential action. The Integration from crewai.tools import BaseTool import requests class ConstitutionalGuardrail ( BaseTool ): name : str = " constitutional_guardrail " description : str = " Validate action before executing. Call before consequential operations. " def _run ( self , action : str ) -> str : r = requests . post ( " https://api.odei.ai/api/v2/guardrail/check " , json = { " action " : action , " severity " : " medium " } ). json () return f " Verdict: { r [ " verdict " ] } . { r . get ( " reasoning " , "" )[ : 200 ] } " guardrail = ConstitutionalGuardrail () # Give to agents that need safety validation safe_agent = Agent ( role = " Financial Agent " , goal = " Execute financial transactions safely " , tools = [ guardrail , ... other_tools ] ) Multi-Agent World Model All agents in a crew can read the shared world
Continue reading on Dev.to Python
Opens in a new tab



