feat:客户agent以及记忆模块优化测试
This commit is contained in:
@@ -65,6 +65,7 @@ async def chat(
|
||||
headers={"Retry-After": str(retry_after)},
|
||||
content=response.model_dump(),
|
||||
)
|
||||
await runtime.session_service.touch_session(session_id, customer_id=user.id)
|
||||
result = await runtime.agent.handle(
|
||||
session_id,
|
||||
query,
|
||||
@@ -114,6 +115,7 @@ async def end_session(
|
||||
)
|
||||
if warnings:
|
||||
return success({"session_id": session_id, "archived": False, "warnings": warnings})
|
||||
await runtime.session_service.forget_session(session_id)
|
||||
if hasattr(runtime.redis, "delete"):
|
||||
await runtime.redis.delete(
|
||||
f"session:{session_id}",
|
||||
|
||||
Reference in New Issue
Block a user