File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/ruby_llm/active_record Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ def acts_as_chat(message_class: 'Message', tool_call_class: 'ToolCall')
25
25
to : :to_llm
26
26
end
27
27
28
- def acts_as_message ( chat_class : 'Chat' , tool_call_class : 'ToolCall' ) # rubocop:disable Metrics/MethodLength
28
+ def acts_as_message ( chat_class : 'Chat' , tool_call_class : 'ToolCall' , touch_chat : false ) # rubocop:disable Metrics/MethodLength
29
29
include MessageMethods
30
30
31
31
@chat_class = chat_class . to_s
32
32
@tool_call_class = tool_call_class . to_s
33
33
34
- belongs_to :chat , class_name : @chat_class
34
+ belongs_to :chat , class_name : @chat_class , touch : touch_chat
35
35
has_many :tool_calls , class_name : @tool_call_class , dependent : :destroy
36
36
37
37
belongs_to :parent_tool_call ,
You can’t perform that action at this time.
0 commit comments