baml-cc 0.208.5 → 0.209.0.1

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: '03252379da1ea189a52782459ad23fa7ab7c90497788cfd81f13022510f9681f'
4
- data.tar.gz: 4aeec84a0a78c3b15b60251e1b90bbafd5502284d900a779c4607677303f5b38
3
+ metadata.gz: c22637100ed62a3949f4ec9ff0dcd0c780c6a2637128ab707e95e29c5d8deb39
4
+ data.tar.gz: 34c1016959be67fe035f80b92c7c9555c5023ad3e5897aa5e7665b218540aaa1
5
5
  SHA512:
6
- metadata.gz: b53db0c22a6f99c5733247b0f3e36a90d1e13333a3d51333cd1f577f156852e6483078062e396d0d3698779b713a4b377103f8cebfdcac9138d0b9804fc7ffbe
7
- data.tar.gz: aa15eedabb9dbc1454c490665edc7b6912c92af824063e94b28d267094f24a3c0534a8211ebf66e184b386879d66bcd5927c67a14617b124b24b9c0e896bd4f1
6
+ metadata.gz: 35ef081d3c886d2d18ee3bc4e5a2874a88a2f9e2c65c34d388cf975c5f205a9c3fd32643654a6ff5ab0208b568cc3334636161984849598f3c5b806146f1d26c
7
+ data.tar.gz: c86bd5c3f47a88a1495c41fc2d8639aacfb1e02d85a727ecf5f6f177f91b682dac7144cb96bb77b34dcc257ee9b141c6f1e552dcfc052323d25fe20f25c06151
@@ -140,6 +140,7 @@ impl BamlRuntimeFfi {
140
140
  type_registry.map(|t| &t.inner),
141
141
  client_registry.map(|c| c.inner.borrow_mut()).as_deref(),
142
142
  Some(collectors),
143
+ None,
143
144
  env_vars,
144
145
  TripWire::new(None),
145
146
  )) {
@@ -192,6 +193,7 @@ impl BamlRuntimeFfi {
192
193
  client_registry.map(|c| c.inner.borrow_mut()).as_deref(),
193
194
  Some(collectors),
194
195
  env_vars,
196
+ None,
195
197
  TripWire::new(None),
196
198
  ) {
197
199
  Ok(res) => Ok(FunctionResultStream::new(res, rb_self.t.clone())),
@@ -270,6 +270,21 @@ impl FunctionLog {
270
270
  self.inner.lock().unwrap().raw_llm_response()
271
271
  }
272
272
 
273
+ pub fn tags(&self) -> std::collections::HashMap<String, String> {
274
+ let mut guard = self.inner.lock().unwrap();
275
+ guard
276
+ .tags()
277
+ .into_iter()
278
+ .map(|(k, v)| {
279
+ let string_value = match v {
280
+ serde_json::Value::String(s) => s,
281
+ _ => v.to_string(),
282
+ };
283
+ (k, string_value)
284
+ })
285
+ .collect()
286
+ }
287
+
273
288
  pub fn selected_call(ruby: &Ruby, rb_self: &Self) -> Option<Value> {
274
289
  let calls = rb_self.inner.lock().unwrap().calls();
275
290
  calls.into_iter().find_map(|call| match call {
@@ -314,6 +329,7 @@ impl FunctionLog {
314
329
  method!(FunctionLog::raw_llm_response, 0),
315
330
  )?;
316
331
  cls.define_method("selected_call", method!(FunctionLog::selected_call, 0))?;
332
+ cls.define_method("tags", method!(FunctionLog::tags, 0))?;
317
333
 
318
334
  Ok(())
319
335
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baml-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.208.5
4
+ version: 0.209.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BoundaryML
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-28 00:00:00.000000000 Z
11
+ date: 2025-09-30 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.
@@ -45,7 +45,7 @@ files:
45
45
  - lib/struct.rb
46
46
  homepage: https://github.com/BoundaryML/baml
47
47
  licenses:
48
- - MIT
48
+ - Apache-2.0
49
49
  metadata: {}
50
50
  post_install_message:
51
51
  rdoc_options: []
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  requirements: []
65
- rubygems_version: 3.3.3
65
+ rubygems_version: 3.3.26
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: Unified BoundaryML LLM client