fix: resolve message tool lint error (#13453) (thanks @liebertar)

This commit is contained in:
Gustavo Madeira Santana
2026-02-10 15:03:48 -05:00
parent 7afecce69d
commit 218f8fa3cc

View File

@@ -413,7 +413,7 @@ export function createMessageTool(options?: MessageToolOptions): AnyAgentTool {
// in tool arguments, and the messaging tool send path has no other tag filtering.
for (const field of ["text", "content", "message", "caption"]) {
if (typeof params[field] === "string") {
params[field] = stripReasoningTagsFromText(params[field] as string);
params[field] = stripReasoningTagsFromText(params[field]);
}
}