lex-dataset 0.2.5 → 0.2.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0114e9e266c0a6f2d4d88fefcf535a91bae559db9784d03a775dbdc1c9b95bf9
|
|
4
|
+
data.tar.gz: 28b59c1e639d99123f54d1f5630fd02df62c9b6912da06679d917dede310e71b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9be421ed0c919084fd388f151e465f98e08b095e0bf1756358d2ec9bd813d88654a0dc0f60a5fbeb09cd3c1c9c058f10c056ae79011c5bae9a4cea42b862454
|
|
7
|
+
data.tar.gz: f0ed08bcc4d021ae90d489b3bce2fd1a47629bfe7ea8e55538945afc8ad6a8052f88316452d6d28fcafa69e952a018089b3ede1f42649e0e9216f4e4698afb4d
|
|
@@ -10,6 +10,10 @@ module Legion
|
|
|
10
10
|
module Dataset
|
|
11
11
|
extend self
|
|
12
12
|
|
|
13
|
+
def self.remote_invocable?
|
|
14
|
+
false
|
|
15
|
+
end
|
|
16
|
+
|
|
13
17
|
def create_dataset(name:, description: nil, rows: [], **)
|
|
14
18
|
ds_id = db[:datasets].insert(name: name, description: description, created_at: Time.now.utc)
|
|
15
19
|
create_version(ds_id, rows)
|
|
@@ -128,7 +132,8 @@ module Legion
|
|
|
128
132
|
if schema
|
|
129
133
|
lines << ''
|
|
130
134
|
lines << 'Schema guidance for inputs and outputs:'
|
|
131
|
-
lines <<
|
|
135
|
+
lines << ''
|
|
136
|
+
lines << ::JSON.generate(schema)
|
|
132
137
|
end
|
|
133
138
|
lines << ''
|
|
134
139
|
lines << 'Respond ONLY with a valid JSON array, no other text.'
|