feat: 完成第二版类型清理
This commit is contained in:
1 parent
4c0a655a1c
commit
d7a729ca68
604 files changed
+595
-953
No files matched your search
@@ -130,7 +130,8 @@ export function startAgentSummarization(
|
||||
)
|
||||
continue
|
||||
}
|
||||
const textBlock = msg.message.content.find(b => b.type === 'text')
|
||||
const contentArr = Array.isArray(msg.message.content) ? msg.message.content : []
|
||||
const textBlock = contentArr.find(b => b.type === 'text')
|
||||
if (textBlock?.type === 'text' && textBlock.text.trim()) {
|
||||
const summaryText = textBlock.text.trim()
|
||||
logForDebugging(
|
||||
|
||||
Reference in new issue
Block a user