omniai 3.2.0 → 3.2.1
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/tool_call.rb +7 -1
- data/lib/omniai/chat/tool_call_result.rb +7 -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: 329e024c0319179ac8ff6757755d8c3d4275f68a759ec864200b88d1930e8e52
|
|
4
|
+
data.tar.gz: beac9879c26d58b6ff6cc5dd71e32cd29a2e32f511971d8982e78c9ece33d654
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f57c9c5daa85d4cb77c8569abc79cb01203c531fbe9e0849a38884229c45b555df3c286cf7646c071ec000356ff748f7b53a0c0a0c26da5feba402fdf4a0cfe0
|
|
7
|
+
data.tar.gz: c9abb1aa60e64e663428f42c66bbc78b639dbbaabdfb0510f3ced5ba25ecddbe9497a3d0389a632816748c54b209142c1d4ccc15271a0f313fb32e7a3d8c87b3
|
|
@@ -12,11 +12,17 @@ module OmniAI
|
|
|
12
12
|
# @return [Function]
|
|
13
13
|
attr_accessor :function
|
|
14
14
|
|
|
15
|
+
# @!attribute [r] options
|
|
16
|
+
# @return [Hash] provider-specific options
|
|
17
|
+
attr_reader :options
|
|
18
|
+
|
|
15
19
|
# @param id [String]
|
|
16
20
|
# @param function [Function]
|
|
17
|
-
|
|
21
|
+
# @param options [Hash] optional - used for provider-specific options
|
|
22
|
+
def initialize(id:, function:, **options)
|
|
18
23
|
@id = id
|
|
19
24
|
@function = function
|
|
25
|
+
@options = options
|
|
20
26
|
end
|
|
21
27
|
|
|
22
28
|
# @return [String]
|
|
@@ -12,11 +12,17 @@ module OmniAI
|
|
|
12
12
|
# @return [ToolCall]
|
|
13
13
|
attr_accessor :tool_call_id
|
|
14
14
|
|
|
15
|
+
# @!attribute [r] options
|
|
16
|
+
# @return [Hash] provider-specific options
|
|
17
|
+
attr_reader :options
|
|
18
|
+
|
|
15
19
|
# @param content [Object] e.g. a string, hash, array, boolean, numeric, etc.
|
|
16
20
|
# @param tool_call_id [String]
|
|
17
|
-
|
|
21
|
+
# @param options [Hash] optional - used for provider-specific options
|
|
22
|
+
def initialize(content:, tool_call_id:, **options)
|
|
18
23
|
@content = content
|
|
19
24
|
@tool_call_id = tool_call_id
|
|
25
|
+
@options = options
|
|
20
26
|
end
|
|
21
27
|
|
|
22
28
|
# @return [String]
|
data/lib/omniai/version.rb
CHANGED