baml 0.63.0-aarch64-linux-musl → 0.65.0-aarch64-linux-musl
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/lib/baml/3.1/ruby_ffi.so +0 -0
- data/lib/baml/3.2/ruby_ffi.so +0 -0
- data/lib/baml/3.3/ruby_ffi.so +0 -0
- data/lib/baml.rb +6 -1
- data/lib/checked.rb +36 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd7d81d4521978b7a7282ccbd7596ae12fa0e62a281644c507a8a018be171e7a
|
4
|
+
data.tar.gz: 801fd3e463e425ff69c020d40403c46729370ef4ac1805b0bafd9c5e21aef5eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69ca20afd261b52117e824ceba247ffcb9484f72e09a52eb4069dc6541ef944159c6a38a0e8297b451fa0986571910a572df3871179fde5e4c665107b99be12d
|
7
|
+
data.tar.gz: 0c2a6f66700ae6792a0819a44f3c465d933d149faa20bd2876111e475553aad74e82f84814d6f56805833259ab16d1594c29d8ac9018ee3170e34a8330003861
|
data/lib/baml/3.1/ruby_ffi.so
CHANGED
Binary file
|
data/lib/baml/3.2/ruby_ffi.so
CHANGED
Binary file
|
data/lib/baml/3.3/ruby_ffi.so
CHANGED
Binary file
|
data/lib/baml.rb
CHANGED
@@ -7,12 +7,17 @@ end
|
|
7
7
|
# require_relative "baml/ruby_ffi"
|
8
8
|
require_relative "stream"
|
9
9
|
require_relative "struct"
|
10
|
+
require_relative "checked"
|
10
11
|
|
11
12
|
module Baml
|
12
13
|
ClientRegistry = Baml::Ffi::ClientRegistry
|
13
14
|
Image = Baml::Ffi::Image
|
14
15
|
Audio = Baml::Ffi::Audio
|
15
16
|
|
17
|
+
# Reexport Checked types.
|
18
|
+
Checked = Baml::Checks::Checked
|
19
|
+
Check = Baml::Checks::Check
|
20
|
+
|
16
21
|
# Dynamically + idempotently define Baml::TypeConverter
|
17
22
|
# NB: this does not respect raise_coercion_error = false
|
18
23
|
def self.convert_to(type)
|
@@ -53,4 +58,4 @@ module Baml
|
|
53
58
|
|
54
59
|
Baml.const_get(:TypeConverter).new(type)
|
55
60
|
end
|
56
|
-
end
|
61
|
+
end
|
data/lib/checked.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require "sorbet-runtime"
|
2
|
+
|
3
|
+
module Baml
|
4
|
+
module Checks
|
5
|
+
|
6
|
+
class Check < T::Struct
|
7
|
+
extend T::Sig
|
8
|
+
|
9
|
+
const :name, String
|
10
|
+
const :expr, String
|
11
|
+
const :status, String
|
12
|
+
|
13
|
+
|
14
|
+
def initialize(props)
|
15
|
+
super(name: props[:name], expr: props[:expr], status: props[:status])
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class Checked < T::Struct
|
20
|
+
extend T::Sig
|
21
|
+
|
22
|
+
extend T::Generic
|
23
|
+
|
24
|
+
Value = type_member
|
25
|
+
|
26
|
+
const :value, Value
|
27
|
+
const :checks, T::Hash[Symbol, Check]
|
28
|
+
|
29
|
+
def initialize(props)
|
30
|
+
super(value: props[:value], checks: props[:checks])
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: baml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.65.0
|
5
5
|
platform: aarch64-linux-musl
|
6
6
|
authors:
|
7
7
|
- BoundaryML
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A gem for users to interact with BoundaryML's Language Model clients
|
14
14
|
(LLM) in Ruby.
|
@@ -24,6 +24,7 @@ files:
|
|
24
24
|
- lib/baml/3.1/ruby_ffi.so
|
25
25
|
- lib/baml/3.2/ruby_ffi.so
|
26
26
|
- lib/baml/3.3/ruby_ffi.so
|
27
|
+
- lib/checked.rb
|
27
28
|
- lib/stream.rb
|
28
29
|
- lib/struct.rb
|
29
30
|
homepage: https://github.com/BoundaryML/baml
|