fix: use direct agent api per request
This commit is contained in:
parent
7d270d3d31
commit
7d58dd1caf
14 changed files with 285 additions and 400 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue