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 22458f57f2
commit c4d3800c29
1 changed files with 1 additions and 1 deletions

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]);
}
}