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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d7dc6f3dc47d5f0385f1f3cc26c509364c55c42bd6290a40a4616c16e69eb66
4
- data.tar.gz: 6b6bb6cddbcdcb699495d23137127e3f90fedd2ef179db0a504b2290ff09f1f8
3
+ metadata.gz: 329e024c0319179ac8ff6757755d8c3d4275f68a759ec864200b88d1930e8e52
4
+ data.tar.gz: beac9879c26d58b6ff6cc5dd71e32cd29a2e32f511971d8982e78c9ece33d654
5
5
  SHA512:
6
- metadata.gz: 3c0a4f6a44bb5d205cda589cb1c85be12921ba1ff8fa9ef0c056b9071af05555db2cd872116597197805a43ac731afeee50925d9643546b9f77150a3465f2d06
7
- data.tar.gz: ccb72e06a11d9eb6b2f4059b95130afea945aaddacd1f90bc357670a5f052ff93d4b3fbf48612caf5e6c228ad5b9802384913f888558b8a6df3167f0d08db6b1
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
- def initialize(id:, function:)
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
- def initialize(content:, tool_call_id:)
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmniAI
4
- VERSION = "3.2.0"
4
+ VERSION = "3.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre