feat: 添加请求ID到意图代理逻辑中,以增强日志记录和请求跟踪
This commit is contained in:
parent
67f8285f05
commit
7540efaa3a
@ -65,6 +65,7 @@ const agent = async (ctx: Context): Promise<Intent> => {
|
||||
const {
|
||||
larkBody: { msgText },
|
||||
logger,
|
||||
requestId,
|
||||
} = ctx
|
||||
|
||||
let attempts = 0
|
||||
@ -76,8 +77,8 @@ const agent = async (ctx: Context): Promise<Intent> => {
|
||||
time: new Date().toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" }),
|
||||
jsonSchema,
|
||||
},
|
||||
"test",
|
||||
0,
|
||||
requestId,
|
||||
0.5,
|
||||
true
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user