omniai 3.2.2 → 3.2.3
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 +4 -4
- data/lib/omniai/chat/response.rb +10 -0
- data/lib/omniai/chat.rb +1 -1
- data/lib/omniai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3e745edbb32e4102309da753fb4ccdb4cec5b6ab69a4bebf7260a39d99b31b4
|
|
4
|
+
data.tar.gz: d8546d88f6c5cdc1c665d08bd7624f284c0e5baec04162f3a7ee29474f25beba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59798981414c5fb32fd3f59fcc2d159c21b37cc1b6ce979424b91e7154147d05ba36e6e048ef3ff002f70022be5b02af0c7e66eb1c2e6dab6a434cb1be9ee794
|
|
7
|
+
data.tar.gz: 45f18be41f25a010810901fc9fe001f31698549fdfff6c0a1b59d5eae612f53ad6cd4ff9a857cb11b2a77fe50a1e8f0d000a388f836604e7e26d1d8212635258
|
data/lib/omniai/chat/response.rb
CHANGED
|
@@ -96,6 +96,16 @@ module OmniAI
|
|
|
96
96
|
!tool_call_list.nil?
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
# Links this response chain to a parent response.
|
|
100
|
+
# Walks up to find the oldest response (no parent) and sets its parent.
|
|
101
|
+
#
|
|
102
|
+
# @param parent [Response]
|
|
103
|
+
def link_to(parent)
|
|
104
|
+
current = self
|
|
105
|
+
current = current.parent while current.parent
|
|
106
|
+
current.parent = parent
|
|
107
|
+
end
|
|
108
|
+
|
|
99
109
|
# Returns the chain of responses from oldest (first) to newest (self).
|
|
100
110
|
#
|
|
101
111
|
# @return [Array<Response>]
|
data/lib/omniai/chat.rb
CHANGED
data/lib/omniai/version.rb
CHANGED