omniai-google 2.8.0 → 2.9.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: ac208f0c96be284230e3403c456690dc64c03a41a550f6b5cec88831345c6381
4
- data.tar.gz: 0dd2e7d86822f4a1938feb7585aaacb56a897f26e07264ec7cf734cafa3c5954
3
+ metadata.gz: 53befa3f90375ed759432fee4b25e344bfc290b1a1be0246eff6ae701ab25808
4
+ data.tar.gz: 4cc45ed2310062ec564e41261e1fa580ce5fedbdd450484ae738d19f62843a78
5
5
  SHA512:
6
- metadata.gz: ef37b56056ca5b34f3013b8e13a2813b946530a703c0bd88b231169fbf219d6e3c3b8929a801bc206173ba9e0c29fd39e301663dabde6e4de3818b862647dfa7
7
- data.tar.gz: b512a57b75ca7fa2abb4ba63430040077ab27fd6769517b06c96fadbffaea2332799f8558ce3743a26a22530fa96d9c4d3f4525a88281c67507b0ecbaaa83dc1
6
+ metadata.gz: 3b4727d30e9233707c79bd1b1c3ab5ffeb32141f3f91494579db7a92556bc94a616ab485cd74f0fb22313f5b0ca64b0f2d0f0dd7183610016803f8e1ad13a267
7
+ data.tar.gz: 88adba9304718f862571db9f46d0173c6c7e2cb68231132cb9e1339a6b0225f85d7b90088d2632dd7ce68ba54f6876587ae83742229e6c6871d431bb0fb47197
@@ -98,8 +98,18 @@ module OmniAI
98
98
  return unless @tools&.any?
99
99
 
100
100
  [
101
- function_declarations: @tools.map { |tool| tool.serialize(context:) },
102
- ]
101
+ function_declarations: custom_tools.map { |tool| tool.serialize(context:) },
102
+ ].concat(internal_tools.map { |name| { name => {} } })
103
+ end
104
+
105
+ # @return [Array<OmniAI::Tool>]
106
+ def custom_tools
107
+ @tools.filter { |tool| tool.is_a?(OmniAI::Tool) }
108
+ end
109
+
110
+ # @return [Array<Symbol, String>]
111
+ def internal_tools
112
+ @tools.filter { |tool| tool.is_a?(Symbol) || tool.is_a?(String) }
103
113
  end
104
114
 
105
115
  # @return [Hash]
@@ -10,6 +10,7 @@ module OmniAI
10
10
  # transcribe.process!(audio_file)
11
11
  class Transcribe < OmniAI::Transcribe
12
12
  include TranscribeHelpers
13
+
13
14
  module Model
14
15
  CHIRP_2 = "chirp_2"
15
16
  CHIRP = "chirp"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Google
5
- VERSION = "2.8.0"
5
+ VERSION = "2.9.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre