A platform for community discussion. Free, open, simple.
DEV: ToolResult#== returns nil instead of false for non-ToolResult comparisons (#37522)
Sam215fbe0e3121
diff --git a/plugins/discourse-ai/lib/completions/tool_result.rb b/plugins/discourse-ai/lib/completions/tool_result.rbindex 79f1e4c2d01..fed18c8f422 100644--- a/plugins/discourse-ai/lib/completions/tool_result.rb+++ b/plugins/discourse-ai/lib/completions/tool_result.rb@@ -15,7 +15,7 @@ module DiscourseAienddef ==(other)- return nil if !other.is_a?(ToolResult)+ return false if !other.is_a?(ToolResult)content == other.content && tool_call == other.tool_callendend