merge: integrate ZSY customer service and profile capabilities
This commit is contained in:
@@ -36,8 +36,8 @@ async def test_http_accept_worker_commit_query_and_repeat(acceptance_registry, r
|
||||
async with httpx.AsyncClient(transport=httpx.ASGITransport(app=app),
|
||||
base_url="http://test") as client:
|
||||
try:
|
||||
# 消息必须命中显式记忆信号:P2 之后触发判定改为事件/事实驱动,
|
||||
# 无信号的普通消息不再产生 memory.extraction_requested,而下方断言依赖该事件。
|
||||
# 该消息故意带有偏好信号,验证客服仍不进入长期记忆抽取;客服当前仅允许
|
||||
# 使用经过脱敏的会话短期上下文,不能沉淀为画像或跨会话偏好。
|
||||
response = await client.post("/api/v1/agent-runs", json={
|
||||
"agent_type": "customer_service",
|
||||
"message": "hello runtime,我的风险偏好是稳健型",
|
||||
@@ -65,7 +65,7 @@ async def test_http_accept_worker_commit_query_and_repeat(acceptance_registry, r
|
||||
events = list(await session.scalars(select(DomainEventOutbox).where(
|
||||
DomainEventOutbox.aggregate_id == run_id,
|
||||
DomainEventOutbox.event_type == "memory.extraction_requested")))
|
||||
assert len(events) == (0 if revoked else 1)
|
||||
assert events == []
|
||||
finally:
|
||||
await cleanup(session_id, run_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user