mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
fix: resolve message tool lint error (#13453) (thanks @liebertar)
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user