fix: use direct agent api per request

This commit is contained in:
Mikhail Putilovskij 2026-04-22 15:31:28 +03:00
parent 7d270d3d31
commit 7d58dd1caf
14 changed files with 285 additions and 400 deletions

View file

@ -1,16 +1,10 @@
"""Compatibility tests after the Phase 4 migration."""
import sys
from pathlib import Path
_api_root = Path(__file__).resolve().parents[2] / "external" / "platform-agent_api"
if str(_api_root) not in sys.path:
sys.path.insert(0, str(_api_root))
def test_lambda_agent_api_module_is_importable():
from lambda_agent_api.agent_api import AgentApi
from sdk.upstream_agent_api import AgentApi
assert AgentApi is not None
@ -18,4 +12,4 @@ def test_lambda_agent_api_module_is_importable():
def test_agent_session_module_is_intentionally_stubbed():
contents = Path(__file__).resolve().parents[2] / "sdk" / "agent_session.py"
assert "replaced by AgentApiWrapper" in contents.read_text()
assert "replaced by direct AgentApi usage" in contents.read_text()