diff --git a/agents/core-logic/agent.py b/agents/core-logic/agent.py index 76ccc4c..fbcb864 100644 --- a/agents/core-logic/agent.py +++ b/agents/core-logic/agent.py @@ -65,7 +65,7 @@ except ImportError as _e: # --------------------------------------------------------------------------- # OPAX MCP Client (inlina) # --------------------------------------------------------------------------- -_OPAX_MCP_URL = os.environ.get("MCP_SERVER_URL", "https://opax-mcp-357036551735.us-central1.run.app") +_OPAX_MCP_URL = os.environ.get("MCP_SERVER_URL", "https://opax-mcp-zjbqp3prqq-uc.a.run.app") _MCP_SECRET = os.environ.get("MCP_SECRET", "") @@ -260,6 +260,9 @@ def build_agent(mode: str = "light", message: str = "") -> tuple: description=f"Jason Vauger — OPAX enterprise agent [{mode}]", instruction=instruction, tools=OPAX_TOOLS, + vertexai=True, + project="propane-will-491900-m5", + location="us-central1", ) return agent, actual_model, instruction diff --git a/agents/core-logic/root_agent.py b/agents/core-logic/root_agent.py index a81b9f1..e3f6a2b 100644 --- a/agents/core-logic/root_agent.py +++ b/agents/core-logic/root_agent.py @@ -185,7 +185,16 @@ def build_agent(mode: str = "light", message: str = "") -> tuple: models = get_models_for_mode(mode) actual_model = route_model(message=message, mode=mode, flash_model=ORCHESTRATOR_MODEL, pro_model=models["orchestrator"]) instruction = _INSTRUCTION_TEMPLATE.format(mode=mode, model=actual_model) - agent = Agent(model=actual_model, name="jason_vauger", description=f"Jason Vauger — OPAX enterprise agent [{mode}]", instruction=instruction, tools=OPAX_TOOLS) + agent = Agent( + model=actual_model, + name="jason_vauger", + description=f"Jason Vauger — OPAX enterprise agent [{mode}]", + instruction=instruction, + tools=OPAX_TOOLS, + vertexai=True, + project="propane-will-491900-m5", + location="us-central1", + ) return agent, actual_model, instruction root_agent, _, _ = build_agent(mode="light")