carbon_ruby_sdk 0.1.14 → 0.1.15

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: 0e7c6ef6b04b7ca939bc372bbe9bef6764c4e050a3df80e03c262582b597ee7b
4
- data.tar.gz: b5a104d83fa479ad58b9b3b4f68c244e7dd76a850acb821421cdfb3a7212b8bb
3
+ metadata.gz: 3fd28e7eb718e7a438c849d5d9820cb60fc73d8cdacfe0ef13f30fb6e97c67b3
4
+ data.tar.gz: a0b09df8026bb03a9e9549a01b09929a7c1b98be45579b399e54811ac21363f1
5
5
  SHA512:
6
- metadata.gz: e577bfd0bcd1d9cf1d8e42a7e25a7ea33de2cb713c8e24bff9b53431d4825178d747359be5dd88c387658c73fb7e93d71655827848bd6c3f61d0b58ebbc43910
7
- data.tar.gz: 1668d9d53d1ab1df1cf2f27d09c2c412e72799f8a049f79e8a4d91ed0db2e8e2695c1811e894536e0bf62403d541a25b55612d4cd3df45e243417d4a3d3b4666
6
+ metadata.gz: 8a75f3914ec5e430b9c1ea7fd75367b34ff96bc516c434146c36c049c275747f852d1c7a60d93dd32acb4321806ce80e5436f873b3fb21df43f8d7292da92ed0
7
+ data.tar.gz: 723037b41f5609aef0d2af2e410bf6cce42065ec5c5c8125e59bbc89d26a0bbd3b26af6c090ee4bfa41094c96aa563ad704fdea588e29c3110a3acdebe99c8d4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.1.13)
4
+ carbon_ruby_sdk (0.1.14)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect external data to LLMs, no matter the source.
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v0.1.14-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.14)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.15-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.1.15)
10
10
 
11
11
  </div>
12
12
 
@@ -80,7 +80,7 @@ Connect external data to LLMs, no matter the source.
80
80
  Add to Gemfile:
81
81
 
82
82
  ```ruby
83
- gem 'carbon_ruby_sdk', '~> 0.1.14'
83
+ gem 'carbon_ruby_sdk', '~> 0.1.15'
84
84
  ```
85
85
 
86
86
  ## Getting Started<a id="getting-started"></a>
@@ -45,6 +45,8 @@ module Carbon
45
45
 
46
46
  attr_accessor :chunk_properties
47
47
 
48
+ attr_accessor :ocr_properties
49
+
48
50
  attr_accessor :name
49
51
 
50
52
  attr_accessor :parent_id
@@ -89,6 +91,7 @@ module Carbon
89
91
  :'chunk_size' => :'chunk_size',
90
92
  :'chunk_overlap' => :'chunk_overlap',
91
93
  :'chunk_properties' => :'chunk_properties',
94
+ :'ocr_properties' => :'ocr_properties',
92
95
  :'name' => :'name',
93
96
  :'parent_id' => :'parent_id',
94
97
  :'enable_auto_sync' => :'enable_auto_sync',
@@ -129,6 +132,7 @@ module Carbon
129
132
  :'chunk_size' => :'Integer',
130
133
  :'chunk_overlap' => :'Integer',
131
134
  :'chunk_properties' => :'ChunkPropertiesNullable',
135
+ :'ocr_properties' => :'Object',
132
136
  :'name' => :'String',
133
137
  :'parent_id' => :'Integer',
134
138
  :'enable_auto_sync' => :'Boolean',
@@ -255,6 +259,10 @@ module Carbon
255
259
  self.chunk_properties = attributes[:'chunk_properties']
256
260
  end
257
261
 
262
+ if attributes.key?(:'ocr_properties')
263
+ self.ocr_properties = attributes[:'ocr_properties']
264
+ end
265
+
258
266
  if attributes.key?(:'name')
259
267
  self.name = attributes[:'name']
260
268
  end
@@ -332,6 +340,10 @@ module Carbon
332
340
  invalid_properties.push('invalid value for "sync_status", sync_status cannot be nil.')
333
341
  end
334
342
 
343
+ if @ocr_properties.nil?
344
+ invalid_properties.push('invalid value for "ocr_properties", ocr_properties cannot be nil.')
345
+ end
346
+
335
347
  if @skip_embedding_generation.nil?
336
348
  invalid_properties.push('invalid value for "skip_embedding_generation", skip_embedding_generation cannot be nil.')
337
349
  end
@@ -356,6 +368,7 @@ module Carbon
356
368
  return false if @organization_supplied_user_id.nil?
357
369
  return false if @external_file_id.nil?
358
370
  return false if @sync_status.nil?
371
+ return false if @ocr_properties.nil?
359
372
  return false if @skip_embedding_generation.nil?
360
373
  return false if @created_at.nil?
361
374
  return false if @updated_at.nil?
@@ -384,6 +397,7 @@ module Carbon
384
397
  chunk_size == o.chunk_size &&
385
398
  chunk_overlap == o.chunk_overlap &&
386
399
  chunk_properties == o.chunk_properties &&
400
+ ocr_properties == o.ocr_properties &&
387
401
  name == o.name &&
388
402
  parent_id == o.parent_id &&
389
403
  enable_auto_sync == o.enable_auto_sync &&
@@ -407,7 +421,7 @@ module Carbon
407
421
  # Calculates hash code according to all attributes.
408
422
  # @return [Integer] Hash code
409
423
  def hash
410
- [tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, created_at, updated_at].hash
424
+ [tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, created_at, updated_at].hash
411
425
  end
412
426
 
413
427
  # Builds the object from hash
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Carbon
10
- VERSION = '0.1.14'
10
+ VERSION = '0.1.15'
11
11
  end
@@ -121,6 +121,12 @@ describe Carbon::UserFile do
121
121
  end
122
122
  end
123
123
 
124
+ describe 'test attribute "ocr_properties"' do
125
+ it 'should work' do
126
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
127
+ end
128
+ end
129
+
124
130
  describe 'test attribute "name"' do
125
131
  it 'should work' do
126
132
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carbon_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-04 00:00:00.000000000 Z
11
+ date: 2024-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday