carbon_ruby_sdk 0.2.49 → 0.2.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +6 -2
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +2 -2
- data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +1 -0
- data/lib/carbon_ruby_sdk/models/s3_get_file_input.rb +15 -5
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/s3_get_file_input_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: 835371f6fb44f5dd9e26d7a74873c8d84fe16cfc43120194af7fb443fa76c6e7
|
4
|
+
data.tar.gz: 0b7fc9ab32ab52b1f56ac8e23b512182cb192d78593e93a3eadae6a5c609fa05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64f3998fd7940d7291f2415ffad5e3c8c369bb0e4dff87807956f6c2f3e5f48f51f23d6b9f244b1a8710242bf5c5bdbf6232cecc2682f93128ed941a9a54185f
|
7
|
+
data.tar.gz: 1c56c8a2712ed40ec34b251a95df7d113471a450d5e51e7b021ad22733a74182449d4dae117d9bab6a50f5199b3dde9d57c91af4084df129bdb36b866108ec40
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
carbon_ruby_sdk (0.2.
|
4
|
+
carbon_ruby_sdk (0.2.50)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
rubocop-ast (>= 1.2.0, < 2.0)
|
68
68
|
ruby-progressbar (~> 1.7)
|
69
69
|
unicode-display_width (>= 1.4.0, < 3.0)
|
70
|
-
rubocop-ast (1.
|
70
|
+
rubocop-ast (1.36.1)
|
71
71
|
parser (>= 3.3.1.0)
|
72
72
|
ruby-progressbar (1.13.0)
|
73
73
|
ruby2_keywords (0.0.5)
|
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.50-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.50)
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
@@ -120,7 +120,7 @@ Connect external data to LLMs, no matter the source.
|
|
120
120
|
Add to Gemfile:
|
121
121
|
|
122
122
|
```ruby
|
123
|
-
gem 'carbon_ruby_sdk', '~> 0.2.
|
123
|
+
gem 'carbon_ruby_sdk', '~> 0.2.50'
|
124
124
|
```
|
125
125
|
|
126
126
|
## Getting Started<a id="getting-started"></a>
|
@@ -3765,6 +3765,10 @@ p result
|
|
3765
3765
|
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
3766
3766
|
|
3767
3767
|
##### ids: Array<[`S3GetFileInput`](./lib/carbon_ruby_sdk/models/s3_get_file_input.rb)><a id="ids-array"></a>
|
3768
|
+
Each input should be one of the following: A bucket name, a bucket name and a
|
3769
|
+
prefix, or a bucket name and an object key. A prefix is the common path for all
|
3770
|
+
objects you want to sync. Paths should end with a forward slash.
|
3771
|
+
|
3768
3772
|
##### tags: `Object`<a id="tags-object"></a>
|
3769
3773
|
##### chunk_size: `Integer`<a id="chunk_size-integer"></a>
|
3770
3774
|
##### chunk_overlap: `Integer`<a id="chunk_overlap-integer"></a>
|
@@ -3668,7 +3668,7 @@ module Carbon
|
|
3668
3668
|
# and object key as the ID in this endpoint to sync them into Carbon. Additional parameters below can associate
|
3669
3669
|
# data with the selected items or modify the sync behavior
|
3670
3670
|
#
|
3671
|
-
# @param ids [Array<S3GetFileInput>]
|
3671
|
+
# @param ids [Array<S3GetFileInput>] Each input should be one of the following: A bucket name, a bucket name and a prefix, or a bucket name and an object key. A prefix is the common path for all objects you want to sync. Paths should end with a forward slash.
|
3672
3672
|
# @param tags [Object]
|
3673
3673
|
# @param chunk_size [Integer]
|
3674
3674
|
# @param chunk_overlap [Integer]
|
@@ -3713,7 +3713,7 @@ module Carbon
|
|
3713
3713
|
# and object key as the ID in this endpoint to sync them into Carbon. Additional parameters below can associate
|
3714
3714
|
# data with the selected items or modify the sync behavior
|
3715
3715
|
#
|
3716
|
-
# @param ids [Array<S3GetFileInput>]
|
3716
|
+
# @param ids [Array<S3GetFileInput>] Each input should be one of the following: A bucket name, a bucket name and a prefix, or a bucket name and an object key. A prefix is the common path for all objects you want to sync. Paths should end with a forward slash.
|
3717
3717
|
# @param tags [Object]
|
3718
3718
|
# @param chunk_size [Integer]
|
3719
3719
|
# @param chunk_overlap [Integer]
|
@@ -13,6 +13,7 @@ module Carbon
|
|
13
13
|
class S3FileSyncInput
|
14
14
|
attr_accessor :tags
|
15
15
|
|
16
|
+
# Each input should be one of the following: A bucket name, a bucket name and a prefix, or a bucket name and an object key. A prefix is the common path for all objects you want to sync. Paths should end with a forward slash.
|
16
17
|
attr_accessor :ids
|
17
18
|
|
18
19
|
attr_accessor :chunk_size
|
@@ -15,11 +15,14 @@ module Carbon
|
|
15
15
|
|
16
16
|
attr_accessor :bucket
|
17
17
|
|
18
|
+
attr_accessor :prefix
|
19
|
+
|
18
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
19
21
|
def self.attribute_map
|
20
22
|
{
|
21
23
|
:'id' => :'id',
|
22
|
-
:'bucket' => :'bucket'
|
24
|
+
:'bucket' => :'bucket',
|
25
|
+
:'prefix' => :'prefix'
|
23
26
|
}
|
24
27
|
end
|
25
28
|
|
@@ -32,7 +35,8 @@ module Carbon
|
|
32
35
|
def self.openapi_types
|
33
36
|
{
|
34
37
|
:'id' => :'String',
|
35
|
-
:'bucket' => :'String'
|
38
|
+
:'bucket' => :'String',
|
39
|
+
:'prefix' => :'String'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -40,7 +44,8 @@ module Carbon
|
|
40
44
|
def self.openapi_nullable
|
41
45
|
Set.new([
|
42
46
|
:'id',
|
43
|
-
:'bucket'
|
47
|
+
:'bucket',
|
48
|
+
:'prefix'
|
44
49
|
])
|
45
50
|
end
|
46
51
|
|
@@ -66,6 +71,10 @@ module Carbon
|
|
66
71
|
if attributes.key?(:'bucket')
|
67
72
|
self.bucket = attributes[:'bucket']
|
68
73
|
end
|
74
|
+
|
75
|
+
if attributes.key?(:'prefix')
|
76
|
+
self.prefix = attributes[:'prefix']
|
77
|
+
end
|
69
78
|
end
|
70
79
|
|
71
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -87,7 +96,8 @@ module Carbon
|
|
87
96
|
return true if self.equal?(o)
|
88
97
|
self.class == o.class &&
|
89
98
|
id == o.id &&
|
90
|
-
bucket == o.bucket
|
99
|
+
bucket == o.bucket &&
|
100
|
+
prefix == o.prefix
|
91
101
|
end
|
92
102
|
|
93
103
|
# @see the `==` method
|
@@ -99,7 +109,7 @@ module Carbon
|
|
99
109
|
# Calculates hash code according to all attributes.
|
100
110
|
# @return [Integer] Hash code
|
101
111
|
def hash
|
102
|
-
[id, bucket].hash
|
112
|
+
[id, bucket, prefix].hash
|
103
113
|
end
|
104
114
|
|
105
115
|
# Builds the object from hash
|
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.50
|
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-
|
11
|
+
date: 2024-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|