落地并存测服全端:智能体 Graph/路由、后台切 8180、主账与部署脚本齐备,便于线上重发与验收。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-09-13 21:15:58 +08:00
co-authored by Cursor
parent 0eb1adecc8
commit 8103b3b651
143 changed files with 8968 additions and 277 deletions
@@ -0,0 +1,33 @@
"""
Redis 短命协调包(对齐 prompt/14)。
用途:Stream 队列、短幂等、限流、token 缓存。
不用:六态、Graph checkpoint、Worker 全局单例、TMS 伪造开关。
命名说明:
- Redis URL 里的 /1 叫「逻辑库号 db1」,与现网 /0 隔离(Redis 本身没有 inquiry_robot 这种库名)。
- 键前缀 inquiry_robot: 才是可读业务名;二者一起用。
"""
from agent.redis_coord.client import RedisClient, create_redis_client
from agent.redis_coord.idempotency import try_acquire as try_acquire_idempotency
from agent.redis_coord.rate_limit import RateLimitResult, allow as rate_limit_allow
from agent.redis_coord.runtime import (
RedisRuntime,
get_redis_runtime,
shutdown_redis_runtime,
)
from agent.redis_coord.token_cache import get_wecom_token, set_wecom_token
__all__ = [
"RedisClient",
"RedisRuntime",
"RateLimitResult",
"create_redis_client",
"get_redis_runtime",
"shutdown_redis_runtime",
"try_acquire_idempotency",
"rate_limit_allow",
"get_wecom_token",
"set_wecom_token",
]