mirror of https://github.com/openclaw/openclaw.git
fix: resolve message tool lint error (#13453) (thanks @liebertar)
This commit is contained in:
parent
22458f57f2
commit
c4d3800c29
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue