Skip to content

Commit 5fc937c

Browse files
committed
Fix attachment handling in AnalyzeTool: wrap chart_path in an array for proper content attachment
1 parent d5929c5 commit 5fc937c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_core_features/tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class AnalyzeTool < RubyLLM::Tool
9898
# Return Content with text and attachments
9999
RubyLLM::Content.new(
100100
"Analysis complete for: #{query}",
101-
chart_path # Attach the generated chart
101+
[chart_path] # Attach the generated chart (array of paths/blobs)
102102
)
103103
end
104104

0 commit comments

Comments
 (0)