carbon_ruby_sdk 0.2.31 → 0.2.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/carbon_ruby_sdk/models/organization_response.rb +15 -1
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/organization_response_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6780976b809dc2379eab91bcc29d6e61c68bf5b241aab6c073ba8181da54be59
|
4
|
+
data.tar.gz: e4875b2af1887a27a3289693558cef3fa7f01655bf4c9e0e7d831205f7dbe98c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd55af26a42d03355def8a93410efce994415488cc6df1bacc2a6a526da2d6f4be7e7575f7972b6d2bed6718d2c303254ae84528c17d0f18d13addde3b3e3dd
|
7
|
+
data.tar.gz: e331119254730ea6cfbad55ddc5ec571bdcd36c75fbdadb759f0a4fec6343675394487f6abeb22ef1b8a139c5c35271df62e0ab0c561c13efa6afafc53ad92ad
|
data/Gemfile.lock
CHANGED
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.2.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v0.2.32-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.32)
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
@@ -94,7 +94,7 @@ Connect external data to LLMs, no matter the source.
|
|
94
94
|
Add to Gemfile:
|
95
95
|
|
96
96
|
```ruby
|
97
|
-
gem 'carbon_ruby_sdk', '~> 0.2.
|
97
|
+
gem 'carbon_ruby_sdk', '~> 0.2.32'
|
98
98
|
```
|
99
99
|
|
100
100
|
## Getting Started<a id="getting-started"></a>
|
@@ -47,6 +47,8 @@ module Carbon
|
|
47
47
|
|
48
48
|
attr_accessor :file_sync_usage
|
49
49
|
|
50
|
+
attr_accessor :logging_settings
|
51
|
+
|
50
52
|
attr_accessor :created_at
|
51
53
|
|
52
54
|
attr_accessor :updated_at
|
@@ -72,6 +74,7 @@ module Carbon
|
|
72
74
|
:'connector_settings' => :'connector_settings',
|
73
75
|
:'global_user_config' => :'global_user_config',
|
74
76
|
:'file_sync_usage' => :'file_sync_usage',
|
77
|
+
:'logging_settings' => :'logging_settings',
|
75
78
|
:'created_at' => :'created_at',
|
76
79
|
:'updated_at' => :'updated_at'
|
77
80
|
}
|
@@ -103,6 +106,7 @@ module Carbon
|
|
103
106
|
:'connector_settings' => :'Object',
|
104
107
|
:'global_user_config' => :'Object',
|
105
108
|
:'file_sync_usage' => :'Object',
|
109
|
+
:'logging_settings' => :'Object',
|
106
110
|
:'created_at' => :'Time',
|
107
111
|
:'updated_at' => :'Time'
|
108
112
|
}
|
@@ -207,6 +211,10 @@ module Carbon
|
|
207
211
|
self.file_sync_usage = attributes[:'file_sync_usage']
|
208
212
|
end
|
209
213
|
|
214
|
+
if attributes.key?(:'logging_settings')
|
215
|
+
self.logging_settings = attributes[:'logging_settings']
|
216
|
+
end
|
217
|
+
|
210
218
|
if attributes.key?(:'created_at')
|
211
219
|
self.created_at = attributes[:'created_at']
|
212
220
|
end
|
@@ -268,6 +276,10 @@ module Carbon
|
|
268
276
|
invalid_properties.push('invalid value for "file_sync_usage", file_sync_usage cannot be nil.')
|
269
277
|
end
|
270
278
|
|
279
|
+
if @logging_settings.nil?
|
280
|
+
invalid_properties.push('invalid value for "logging_settings", logging_settings cannot be nil.')
|
281
|
+
end
|
282
|
+
|
271
283
|
if @created_at.nil?
|
272
284
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
273
285
|
end
|
@@ -294,6 +306,7 @@ module Carbon
|
|
294
306
|
return false if @connector_settings.nil?
|
295
307
|
return false if @global_user_config.nil?
|
296
308
|
return false if @file_sync_usage.nil?
|
309
|
+
return false if @logging_settings.nil?
|
297
310
|
return false if @created_at.nil?
|
298
311
|
return false if @updated_at.nil?
|
299
312
|
true
|
@@ -322,6 +335,7 @@ module Carbon
|
|
322
335
|
connector_settings == o.connector_settings &&
|
323
336
|
global_user_config == o.global_user_config &&
|
324
337
|
file_sync_usage == o.file_sync_usage &&
|
338
|
+
logging_settings == o.logging_settings &&
|
325
339
|
created_at == o.created_at &&
|
326
340
|
updated_at == o.updated_at
|
327
341
|
end
|
@@ -335,7 +349,7 @@ module Carbon
|
|
335
349
|
# Calculates hash code according to all attributes.
|
336
350
|
# @return [Integer] Hash code
|
337
351
|
def hash
|
338
|
-
[id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, aggregate_num_files_by_source, aggregate_num_files_by_file_format, file_statistics_aggregated_at, period_ends_at, cancel_at_period_end, connector_settings, global_user_config, file_sync_usage, created_at, updated_at].hash
|
352
|
+
[id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, aggregate_num_files_by_source, aggregate_num_files_by_file_format, file_statistics_aggregated_at, period_ends_at, cancel_at_period_end, connector_settings, global_user_config, file_sync_usage, logging_settings, created_at, updated_at].hash
|
339
353
|
end
|
340
354
|
|
341
355
|
# Builds the object from hash
|
@@ -127,6 +127,12 @@ describe Carbon::OrganizationResponse do
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
+
describe 'test attribute "logging_settings"' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
130
136
|
describe 'test attribute "created_at"' do
|
131
137
|
it 'should work' do
|
132
138
|
# 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.2.
|
4
|
+
version: 0.2.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konfig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|