mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 11:07:41 +00: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.
|
// in tool arguments, and the messaging tool send path has no other tag filtering.
|
||||||
for (const field of ["text", "content", "message", "caption"]) {
|
for (const field of ["text", "content", "message", "caption"]) {
|
||||||
if (typeof params[field] === "string") {
|
if (typeof params[field] === "string") {
|
||||||
params[field] = stripReasoningTagsFromText(params[field] as string);
|
params[field] = stripReasoningTagsFromText(params[field]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user