⚠️ refactor: Use Error Content Part Instead Of Throwing Error for Agents (#6262)

This commit is contained in:
Danny Avila 2025-03-09 18:06:34 -04:00 committed by GitHub
parent 3e3dfe5bad
commit d6ab769b80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 2 deletions

View file

@ -211,6 +211,8 @@ const formatAgentMessages = (payload) => {
} else if (part.type === ContentTypes.THINK) {
hasReasoning = true;
continue;
} else if (part.type === ContentTypes.ERROR) {
continue;
} else {
currentContent.push(part);
}