carbon_ruby_sdk 0.1.2 → 0.1.4
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/Gemfile.lock +1 -1
- data/README.md +29 -6
- data/lib/carbon_ruby_sdk/api/files_api.rb +6 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +58 -10
- data/lib/carbon_ruby_sdk/models/delete_files_query_input.rb +15 -4
- data/lib/carbon_ruby_sdk/models/file_formats.rb +1 -2
- data/lib/carbon_ruby_sdk/models/file_formats_nullable.rb +1 -2
- data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +17 -5
- data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +97 -4
- data/lib/carbon_ruby_sdk/models/ids_property.rb +226 -0
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/sync_files_ids.rb +234 -0
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +2 -4
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +2 -0
- data/spec/api/integrations_api_spec.rb +1 -0
- data/spec/models/delete_files_query_input_spec.rb +6 -0
- data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
- data/spec/models/gitbook_connect_request_spec.rb +48 -0
- data/spec/models/ids_property_spec.rb +22 -0
- data/spec/models/sync_files_ids_spec.rb +34 -0
- metadata +8 -2
@@ -19,6 +19,12 @@ describe Carbon::GitbookConnectRequest do
|
|
19
19
|
expect(instance).to be_instance_of(Carbon::GitbookConnectRequest)
|
20
20
|
end
|
21
21
|
end
|
22
|
+
describe 'test attribute "tags"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
22
28
|
describe 'test attribute "organization"' do
|
23
29
|
it 'should work' do
|
24
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -31,4 +37,46 @@ describe Carbon::GitbookConnectRequest do
|
|
31
37
|
end
|
32
38
|
end
|
33
39
|
|
40
|
+
describe 'test attribute "chunk_size"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "chunk_overlap"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "skip_embedding_generation"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "embedding_model"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "generate_sparse_vectors"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "prepend_filename_to_chunks"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "sync_files_on_connection"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
34
82
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
=begin
|
2
|
+
#Carbon
|
3
|
+
|
4
|
+
#Connect external data to LLMs, no matter the source.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Carbon::IdsProperty
|
14
|
+
describe Carbon::IdsProperty do
|
15
|
+
let(:instance) { Carbon::IdsProperty.new }
|
16
|
+
|
17
|
+
describe 'test an instance of IdsProperty' do
|
18
|
+
it 'should create an instance of IdsProperty' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::IdsProperty)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#Carbon
|
3
|
+
|
4
|
+
#Connect external data to LLMs, no matter the source.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Carbon::SyncFilesIds
|
14
|
+
describe Carbon::SyncFilesIds do
|
15
|
+
let(:instance) { Carbon::SyncFilesIds.new }
|
16
|
+
|
17
|
+
describe 'test an instance of SyncFilesIds' do
|
18
|
+
it 'should create an instance of SyncFilesIds' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::SyncFilesIds)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "id"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test attribute "root_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
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.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konfig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- lib/carbon_ruby_sdk/models/http_validation_error.rb
|
140
140
|
- lib/carbon_ruby_sdk/models/hybrid_search_tuning_params.rb
|
141
141
|
- lib/carbon_ruby_sdk/models/hybrid_search_tuning_params_nullable.rb
|
142
|
+
- lib/carbon_ruby_sdk/models/ids_property.rb
|
142
143
|
- lib/carbon_ruby_sdk/models/list_data_source_items_request.rb
|
143
144
|
- lib/carbon_ruby_sdk/models/list_data_source_items_response.rb
|
144
145
|
- lib/carbon_ruby_sdk/models/list_request.rb
|
@@ -174,6 +175,7 @@ files:
|
|
174
175
|
- lib/carbon_ruby_sdk/models/sitemap_scrape_request.rb
|
175
176
|
- lib/carbon_ruby_sdk/models/source_property.rb
|
176
177
|
- lib/carbon_ruby_sdk/models/sync_directory_request.rb
|
178
|
+
- lib/carbon_ruby_sdk/models/sync_files_ids.rb
|
177
179
|
- lib/carbon_ruby_sdk/models/sync_files_request.rb
|
178
180
|
- lib/carbon_ruby_sdk/models/tags.rb
|
179
181
|
- lib/carbon_ruby_sdk/models/tags1.rb
|
@@ -249,6 +251,7 @@ files:
|
|
249
251
|
- spec/models/http_validation_error_spec.rb
|
250
252
|
- spec/models/hybrid_search_tuning_params_nullable_spec.rb
|
251
253
|
- spec/models/hybrid_search_tuning_params_spec.rb
|
254
|
+
- spec/models/ids_property_spec.rb
|
252
255
|
- spec/models/list_data_source_items_request_spec.rb
|
253
256
|
- spec/models/list_data_source_items_response_spec.rb
|
254
257
|
- spec/models/list_request_spec.rb
|
@@ -284,6 +287,7 @@ files:
|
|
284
287
|
- spec/models/sitemap_scrape_request_spec.rb
|
285
288
|
- spec/models/source_property_spec.rb
|
286
289
|
- spec/models/sync_directory_request_spec.rb
|
290
|
+
- spec/models/sync_files_ids_spec.rb
|
287
291
|
- spec/models/sync_files_request_spec.rb
|
288
292
|
- spec/models/tags1_spec.rb
|
289
293
|
- spec/models/tags_spec.rb
|
@@ -393,10 +397,12 @@ test_files:
|
|
393
397
|
- spec/models/external_file_sync_statuses_spec.rb
|
394
398
|
- spec/models/list_request_spec.rb
|
395
399
|
- spec/models/webhook_filters_spec.rb
|
400
|
+
- spec/models/ids_property_spec.rb
|
396
401
|
- spec/models/body_create_upload_file_uploadfile_post_spec.rb
|
397
402
|
- spec/models/location_property_inner_spec.rb
|
398
403
|
- spec/models/source_property_spec.rb
|
399
404
|
- spec/models/chunks_and_embeddings_spec.rb
|
405
|
+
- spec/models/sync_files_ids_spec.rb
|
400
406
|
- spec/models/s3_get_file_input_spec.rb
|
401
407
|
- spec/models/upload_file_from_url_input_spec.rb
|
402
408
|
- spec/models/gitbook_sync_request_spec.rb
|