ruby_llm 0.1.0.pre24 → 0.1.0.pre25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8bd50f20230190ef4d162a93d782718b77809cf08a69a5c937e04b1371dcb4c
4
- data.tar.gz: af2fd4748779981144cabb58ed8156804dbf95fc49fcaee29883e8473a3715d0
3
+ metadata.gz: 9985c28a42c2ba63f82067dd277e87ad85f5c270f0973bfe30f1a6f2f0cbd86f
4
+ data.tar.gz: d344c6f85776b8a11bbb59d89a29280bc4bcd7bcc30747b95a4f86b5a53c016e
5
5
  SHA512:
6
- metadata.gz: c51d06260e839452c179c79ff3e993b1aadaf57d61263b925735502f19221779c5310c2b80fdf82cdeb0bbc8cc1cedf0e69a9cce20aa5c5dced9229b4c4d5814
7
- data.tar.gz: 1d10277144d9168ced74e80e22664e95ba3df57dafc3a836588b49e58b6d31e46b46290bd64a16902ae32dd7f654911530d7e5b09f2f0963cb12130610725a14
6
+ metadata.gz: a409b992af493499ab7e55f5126f19e9968f445804cc0f5a8a56a3de9c8d99b0238079bfcab169d9633516dd7096124d0401ae6df31e1c254afc5e12acc82ff0
7
+ data.tar.gz: 4eb477e4941f5e229acf8870b6623e1942ff30932b226261dee9597e3cb0494ae828d5ce401932f396d8232be456f8c59e8c0ab302f71aba9814c630691f4b62
@@ -139,7 +139,7 @@ module RubyLLM
139
139
  def to_llm
140
140
  RubyLLM::Message.new(
141
141
  role: role.to_sym,
142
- content: content,
142
+ content: extract_content,
143
143
  tool_calls: extract_tool_calls,
144
144
  tool_call_id: extract_tool_call_id,
145
145
  input_tokens: input_tokens,
@@ -164,6 +164,10 @@ module RubyLLM
164
164
  def extract_tool_call_id
165
165
  parent_tool_call&.tool_call_id
166
166
  end
167
+
168
+ def extract_content
169
+ content
170
+ end
167
171
  end
168
172
  end
169
173
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyLLM
4
- VERSION = '0.1.0.pre24'
4
+ VERSION = '0.1.0.pre25'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre24
4
+ version: 0.1.0.pre25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carmine Paolino