ox-ai-workers 1.0.1 → 1.0.1.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: 4cc1b5f51a3913a73d305b2e70cccecf5a5f374b6f42e22e439f0be77964f65e
4
- data.tar.gz: 61d72d599c805c1273d64b5a02966ddce1d26ced4d3c50229f56683156da6760
3
+ metadata.gz: ba17fbce4bcdcc90ca498bd391a129f3348ce02ab349ada1f1f5bc5599a6bf53
4
+ data.tar.gz: 38c3b111273b1eb7e607f0e0ca31f836a50298b43ad2c6eb4ca0b25711244127
5
5
  SHA512:
6
- metadata.gz: bfc51fb5e8f09aabbafdf030d8403795bf16414eb913b772b3f2a3935d87644337e89308cbbedb2802c1edd99d30e3367f86bf2f1203c25db012a362f4e6943c
7
- data.tar.gz: 58f3ebac1dd77b856d5500220feeb3270320394543a26e7114750d01383dd8dace6242a4e6c182ec9ab707db41699e2a324a3b3e1590ba8ad70cc3f1eae3de8b
6
+ metadata.gz: f1de785b9917868c32544ff2620b932ae0827cd32080785be1f0bfd7f4136c8bc1eef2ac7a0af03c9a4af95cd8bdbc6a93bbcb6f00add080a8470beebbf37fb6
7
+ data.tar.gz: 2216bf33ad62ee0a731abca6d956b35a9c1c84927c900b39c2eb359120a67ba39cf6ca0630991cab6adf9a03ff39e68371115b68bf800e229ce7af019b45090c
data/README.md CHANGED
@@ -387,7 +387,8 @@ class MyTool
387
387
 
388
388
  def initialize
389
389
  define_function :hello_world, description: "Says hello to someone" do
390
- property :name, type: "string", description: "Name to greet", required: true
390
+ property :name, type: "string", description: "Name to greet" # Default required: true
391
+ property :age, type: ["integer", "null"], description: "Age of the person" # Default required: true
391
392
  end
392
393
  end
393
394
 
@@ -19,7 +19,7 @@ module OxAiWorkers
19
19
  property :prompt, type: 'string', description: I18n.t('oxaiworkers.tool.pixels.generate_image.prompt'),
20
20
  required: true
21
21
  if worker.sizes.length > 1
22
- property :size, type: 'string', description: I18n.t('oxaiworkers.tool.pixels.generate_image.size'),
22
+ property :size, type: %w[string null], description: I18n.t('oxaiworkers.tool.pixels.generate_image.size'),
23
23
  enum: worker.sizes
24
24
  end
25
25
  if current_dir.present?
@@ -28,7 +28,7 @@ module OxAiWorkers
28
28
  required: true
29
29
  end
30
30
  if worker.qualities.length > 1
31
- property :quality, type: 'string', description: I18n.t('oxaiworkers.tool.pixels.generate_image.quality'),
31
+ property :quality, type: %w[string null], description: I18n.t('oxaiworkers.tool.pixels.generate_image.quality'),
32
32
  enum: worker.qualities
33
33
  end
34
34
  end
@@ -19,7 +19,7 @@ module OxAiWorkers
19
19
  property :prompt, type: 'string', description: I18n.t('oxaiworkers.tool.wolfram_alpha.ask.prompt'),
20
20
  required: true
21
21
  if location.nil?
22
- property :location, type: 'string', description: I18n.t('oxaiworkers.tool.wolfram_alpha.ask.location'),
22
+ property :location, type: %w[string null], description: I18n.t('oxaiworkers.tool.wolfram_alpha.ask.location'),
23
23
  required: true
24
24
  end
25
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ox-ai-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Smolev