liter_llm 2.6.1 → 2.7.3

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: 1593a85282db742d8d647dd0be4e67dd17c1f47e0c33e757f83877c025ba79a1
4
- data.tar.gz: e9771eaeb5ba9c53451bfc8293ca84a9871e76a2ab236c4753a5adc4f1bf5842
3
+ metadata.gz: 7502790c5dd5259e32d522758926a5e90b183126f0f2776578121bee40bae739
4
+ data.tar.gz: 6d55daed55f68deca90ef3968df93e2250ebc7c953b39f1a4729bc5bde29ddc8
5
5
  SHA512:
6
- metadata.gz: 4e1763fae6f1eb0a4acf6d61591547a1d6374cf5acdd69febd9ff5e863d4b252d4030539402ef4070a0921239f7584af71869b32b5d150e3e2dd67e6723db6d9
7
- data.tar.gz: 80dcf8bdb73b9a501946d457353ca0f5c96bcc7714496189718fb264ca542c75417b0224b703348c761233106ffabe01f2596571bd4b2809e1200597268f7a30
6
+ metadata.gz: 914dc16aa06926f1ce88aad34082d3f9671f3fcabefbc78c01d2aa7a1cfb93c76e6105fb498d690ec464c0fe5e1299c0af92f3cd4a5bac5a8771a2e4c794a1a6
7
+ data.tar.gz: ccb28f1c3ff2cfb7d3129a173eab50d640d2a67644522a73baa8be1467c3d1a66490bcedc566da0f931a5f65ab88976ee61631a28dbf1219023413f252f59766
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <!-- This file is auto-generated by alef — DO NOT EDIT. -->
2
- <!-- alef:hash:6dfa5945023846fe75ff8b67a1894c01e82f69cd0ad4a986a9b0a6b75bbd82a2 -->
2
+ <!-- alef:hash:678aba23f283544fe5a43ffe1808f9101d040921b940b3fc1f7eb18dcfb31723 -->
3
3
  <!-- To regenerate: alef readme -->
4
4
  <!-- To verify freshness: alef verify -->
5
5
 
@@ -271,7 +271,7 @@ To use the MCP server inside a coding agent, install the **liter-llm plugin** fr
271
271
  ## Part of Xberg.io
272
272
 
273
273
  - [Xberg](https://github.com/xberg-io/xberg) — document intelligence: text, tables, metadata from 101 formats with optional OCR.
274
- - [Xberg Enterprise](https://github.com/xberg-io/xberg-enterprise) — managed extraction API with SDKs, dashboards, and observability.
274
+ - [Xberg Enterprise](https://pro.xberg.io) — managed extraction API with SDKs, dashboards, and observability.
275
275
  - [crawlberg](https://github.com/xberg-io/crawlberg) — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
276
276
  - [html-to-markdown](https://github.com/xberg-io/html-to-markdown) — fast, lossless HTML→Markdown engine.
277
277
  - [liter-llm](https://github.com/xberg-io/liter-llm) — universal LLM API client with native bindings for 14 languages and 174 providers.
@@ -67,18 +67,6 @@ version = "0.7.8"
67
67
  source = "registry+https://github.com/rust-lang/crates.io-index"
68
68
  checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
69
69
 
70
- [[package]]
71
- name = "async-compression"
72
- version = "0.4.51"
73
- source = "registry+https://github.com/rust-lang/crates.io-index"
74
- checksum = "9d5755640120b24961f8231e05892e4a4f7e0d04e8aeca161508c9c397946970"
75
- dependencies = [
76
- "compression-codecs",
77
- "compression-core",
78
- "pin-project-lite",
79
- "tokio",
80
- ]
81
-
82
70
  [[package]]
83
71
  name = "async-lock"
84
72
  version = "3.4.2"
@@ -98,7 +86,7 @@ checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
98
86
  dependencies = [
99
87
  "proc-macro2",
100
88
  "quote",
101
- "syn 3.0.9",
89
+ "syn 3.0.10",
102
90
  ]
103
91
 
104
92
  [[package]]
@@ -343,7 +331,7 @@ dependencies = [
343
331
  "proc-macro-crate",
344
332
  "proc-macro2",
345
333
  "quote",
346
- "syn 3.0.9",
334
+ "syn 3.0.10",
347
335
  ]
348
336
 
349
337
  [[package]]
@@ -385,9 +373,9 @@ dependencies = [
385
373
 
386
374
  [[package]]
387
375
  name = "cc"
388
- version = "1.10.0"
376
+ version = "1.11.2"
389
377
  source = "registry+https://github.com/rust-lang/crates.io-index"
390
- checksum = "86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0"
378
+ checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45"
391
379
  dependencies = [
392
380
  "find-msvc-tools",
393
381
  "shlex 2.0.1",
@@ -485,23 +473,6 @@ dependencies = [
485
473
  "static_assertions",
486
474
  ]
487
475
 
488
- [[package]]
489
- name = "compression-codecs"
490
- version = "0.4.46"
491
- source = "registry+https://github.com/rust-lang/crates.io-index"
492
- checksum = "cae36683101b2899f48bd31f8db9839437356188e3b1ff23096e73dab09ba8fe"
493
- dependencies = [
494
- "compression-core",
495
- "flate2",
496
- "memchr",
497
- ]
498
-
499
- [[package]]
500
- name = "compression-core"
501
- version = "0.4.34"
502
- source = "registry+https://github.com/rust-lang/crates.io-index"
503
- checksum = "2ebdda89edc534bf8d5dd2857562633b6495557e5846552ade994b99ed13c36a"
504
-
505
476
  [[package]]
506
477
  name = "console"
507
478
  version = "0.15.11"
@@ -517,9 +488,9 @@ dependencies = [
517
488
 
518
489
  [[package]]
519
490
  name = "const-oid"
520
- version = "0.10.2"
491
+ version = "0.10.3"
521
492
  source = "registry+https://github.com/rust-lang/crates.io-index"
522
- checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
493
+ checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a"
523
494
 
524
495
  [[package]]
525
496
  name = "const-random"
@@ -584,9 +555,9 @@ checksum = "338089f42c427b86394a5ee60ff321da23a5c89c9d89514c829687b26359fcff"
584
555
 
585
556
  [[package]]
586
557
  name = "crc32fast"
587
- version = "1.5.3"
558
+ version = "1.5.5"
588
559
  source = "registry+https://github.com/rust-lang/crates.io-index"
589
- checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055"
560
+ checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64"
590
561
  dependencies = [
591
562
  "cfg-if",
592
563
  ]
@@ -643,9 +614,9 @@ dependencies = [
643
614
 
644
615
  [[package]]
645
616
  name = "ctutils"
646
- version = "0.4.7"
617
+ version = "0.4.8"
647
618
  source = "registry+https://github.com/rust-lang/crates.io-index"
648
- checksum = "a2376ffd6f96d8a9db59875b4b6b0237d6900b5baf64279714e05493ce64828a"
619
+ checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f"
649
620
  dependencies = [
650
621
  "cmov",
651
622
  ]
@@ -733,7 +704,7 @@ dependencies = [
733
704
  "defmt-parser",
734
705
  "proc-macro2",
735
706
  "quote",
736
- "syn 3.0.9",
707
+ "syn 3.0.10",
737
708
  ]
738
709
 
739
710
  [[package]]
@@ -832,7 +803,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
832
803
  dependencies = [
833
804
  "proc-macro2",
834
805
  "quote",
835
- "syn 3.0.9",
806
+ "syn 3.0.10",
836
807
  ]
837
808
 
838
809
  [[package]]
@@ -864,9 +835,9 @@ checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
864
835
 
865
836
  [[package]]
866
837
  name = "errno"
867
- version = "0.3.14"
838
+ version = "0.3.15"
868
839
  source = "registry+https://github.com/rust-lang/crates.io-index"
869
- checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
840
+ checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776"
870
841
  dependencies = [
871
842
  "libc",
872
843
  "windows-sys 0.61.2",
@@ -923,9 +894,9 @@ checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
923
894
 
924
895
  [[package]]
925
896
  name = "flate2"
926
- version = "1.1.10"
897
+ version = "1.1.11"
927
898
  source = "registry+https://github.com/rust-lang/crates.io-index"
928
- checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
899
+ checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4"
929
900
  dependencies = [
930
901
  "crc32fast",
931
902
  "miniz_oxide",
@@ -1018,7 +989,7 @@ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
1018
989
  dependencies = [
1019
990
  "proc-macro2",
1020
991
  "quote",
1021
- "syn 3.0.9",
992
+ "syn 3.0.10",
1022
993
  ]
1023
994
 
1024
995
  [[package]]
@@ -1523,9 +1494,9 @@ dependencies = [
1523
1494
 
1524
1495
  [[package]]
1525
1496
  name = "itoa"
1526
- version = "1.0.18"
1497
+ version = "1.0.19"
1527
1498
  source = "registry+https://github.com/rust-lang/crates.io-index"
1528
- checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
1499
+ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
1529
1500
 
1530
1501
  [[package]]
1531
1502
  name = "jiff"
@@ -1645,12 +1616,12 @@ dependencies = [
1645
1616
 
1646
1617
  [[package]]
1647
1618
  name = "jsonwebtoken"
1648
- version = "11.1.0"
1619
+ version = "12.0.0"
1649
1620
  source = "registry+https://github.com/rust-lang/crates.io-index"
1650
- checksum = "e75fe14a82d81e5f5af639997db37d8b96045938a7ac6ab18cdbe1c7467e05e1"
1621
+ checksum = "f347a975eb5fa8f5c4eadce6c1152c11c326cf32cf839fb64ff12d5cb8f4ce8b"
1651
1622
  dependencies = [
1652
- "base64 0.22.1",
1653
- "getrandom 0.2.17",
1623
+ "base64 0.23.1",
1624
+ "getrandom 0.4.3",
1654
1625
  "js-sys",
1655
1626
  "pem",
1656
1627
  "serde",
@@ -1668,9 +1639,9 @@ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
1668
1639
 
1669
1640
  [[package]]
1670
1641
  name = "libc"
1671
- version = "0.2.189"
1642
+ version = "0.2.191"
1672
1643
  source = "registry+https://github.com/rust-lang/crates.io-index"
1673
- checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
1644
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
1674
1645
 
1675
1646
  [[package]]
1676
1647
  name = "libloading"
@@ -1705,9 +1676,9 @@ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
1705
1676
 
1706
1677
  [[package]]
1707
1678
  name = "liter-llm"
1708
- version = "2.6.1"
1679
+ version = "2.7.3"
1709
1680
  source = "registry+https://github.com/rust-lang/crates.io-index"
1710
- checksum = "7aaef3befdc6be329b5ac7d9fcd528488ce756064dc917b5616d71fc2e4ac186"
1681
+ checksum = "0029864be61135745569276d1a3efab49cd92072436896283584c85aeb29ff5c"
1711
1682
  dependencies = [
1712
1683
  "ahash",
1713
1684
  "arc-swap",
@@ -1748,7 +1719,6 @@ dependencies = [
1748
1719
  "tokio-util",
1749
1720
  "toml",
1750
1721
  "tower",
1751
- "tower-http 0.7.1",
1752
1722
  "tracing",
1753
1723
  "tracing-opentelemetry",
1754
1724
  "url",
@@ -1757,7 +1727,7 @@ dependencies = [
1757
1727
 
1758
1728
  [[package]]
1759
1729
  name = "liter-llm-rb"
1760
- version = "2.6.1"
1730
+ version = "2.7.3"
1761
1731
  dependencies = [
1762
1732
  "futures",
1763
1733
  "liter-llm",
@@ -1801,9 +1771,9 @@ checksum = "fc04a4c58212d57930a24bf47d3fa87485264a3a054e9c10e042eb373573ad3c"
1801
1771
 
1802
1772
  [[package]]
1803
1773
  name = "magnus"
1804
- version = "0.9.3"
1774
+ version = "0.9.4"
1805
1775
  source = "registry+https://github.com/rust-lang/crates.io-index"
1806
- checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
1776
+ checksum = "3c5f2dd2017d172e2fde9969a35f10f1374a4dd79b37a17f1847f83201883de7"
1807
1777
  dependencies = [
1808
1778
  "magnus-macros",
1809
1779
  "rb-sys",
@@ -1840,9 +1810,9 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
1840
1810
 
1841
1811
  [[package]]
1842
1812
  name = "mime"
1843
- version = "0.3.17"
1813
+ version = "0.3.18"
1844
1814
  source = "registry+https://github.com/rust-lang/crates.io-index"
1845
- checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
1815
+ checksum = "d5848f5a9e8117cf94f2f90faac24a87ff81600ff8628c1e3deaab572e76bfa1"
1846
1816
 
1847
1817
  [[package]]
1848
1818
  name = "mime_guess"
@@ -2090,9 +2060,9 @@ dependencies = [
2090
2060
 
2091
2061
  [[package]]
2092
2062
  name = "openssl"
2093
- version = "0.10.81"
2063
+ version = "0.10.82"
2094
2064
  source = "registry+https://github.com/rust-lang/crates.io-index"
2095
- checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"
2065
+ checksum = "4de8111e94a56adca7ebfe6c365b6d42f99deb69b74b6becacd4204e2f193aa2"
2096
2066
  dependencies = [
2097
2067
  "bitflags 2.13.2",
2098
2068
  "cfg-if",
@@ -2121,9 +2091,9 @@ checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1"
2121
2091
 
2122
2092
  [[package]]
2123
2093
  name = "openssl-sys"
2124
- version = "0.9.117"
2094
+ version = "0.9.118"
2125
2095
  source = "registry+https://github.com/rust-lang/crates.io-index"
2126
- checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"
2096
+ checksum = "19c413d6ec9ebaf5e1c829d355cb3e9f783778d700f135be0921d52fce3c60ae"
2127
2097
  dependencies = [
2128
2098
  "cc",
2129
2099
  "libc",
@@ -2210,11 +2180,11 @@ checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
2210
2180
 
2211
2181
  [[package]]
2212
2182
  name = "pem"
2213
- version = "3.0.6"
2183
+ version = "4.0.0"
2214
2184
  source = "registry+https://github.com/rust-lang/crates.io-index"
2215
- checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be"
2185
+ checksum = "d354a98a3d1251555de99e8fdd8afda05573c31b82f59063a7b0a29b5527f120"
2216
2186
  dependencies = [
2217
- "base64 0.22.1",
2187
+ "base64 0.23.1",
2218
2188
  "serde_core",
2219
2189
  ]
2220
2190
 
@@ -2667,7 +2637,7 @@ dependencies = [
2667
2637
  "tokio-rustls",
2668
2638
  "tokio-util",
2669
2639
  "tower",
2670
- "tower-http 0.6.11",
2640
+ "tower-http",
2671
2641
  "tower-service",
2672
2642
  "url",
2673
2643
  "wasm-bindgen",
@@ -2774,9 +2744,9 @@ dependencies = [
2774
2744
 
2775
2745
  [[package]]
2776
2746
  name = "rustls-pki-types"
2777
- version = "1.15.1"
2747
+ version = "1.16.0"
2778
2748
  source = "registry+https://github.com/rust-lang/crates.io-index"
2779
- checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
2749
+ checksum = "102f35f7de7b06d8c61f1cff6592f5253e0dea431c74867aad5dfd70f44663fb"
2780
2750
  dependencies = [
2781
2751
  "zeroize",
2782
2752
  ]
@@ -2810,9 +2780,9 @@ checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f"
2810
2780
 
2811
2781
  [[package]]
2812
2782
  name = "rustls-webpki"
2813
- version = "0.103.16"
2783
+ version = "0.103.17"
2814
2784
  source = "registry+https://github.com/rust-lang/crates.io-index"
2815
- checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
2785
+ checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5"
2816
2786
  dependencies = [
2817
2787
  "ring",
2818
2788
  "rustls-pki-types",
@@ -2927,7 +2897,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
2927
2897
  dependencies = [
2928
2898
  "proc-macro2",
2929
2899
  "quote",
2930
- "syn 3.0.9",
2900
+ "syn 3.0.10",
2931
2901
  ]
2932
2902
 
2933
2903
  [[package]]
@@ -2945,9 +2915,9 @@ dependencies = [
2945
2915
 
2946
2916
  [[package]]
2947
2917
  name = "serde_spanned"
2948
- version = "1.1.2"
2918
+ version = "1.1.3"
2949
2919
  source = "registry+https://github.com/rust-lang/crates.io-index"
2950
- checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c"
2920
+ checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782"
2951
2921
  dependencies = [
2952
2922
  "serde_core",
2953
2923
  ]
@@ -3031,11 +3001,11 @@ dependencies = [
3031
3001
 
3032
3002
  [[package]]
3033
3003
  name = "signature"
3034
- version = "2.2.0"
3004
+ version = "3.0.0"
3035
3005
  source = "registry+https://github.com/rust-lang/crates.io-index"
3036
- checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
3006
+ checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5"
3037
3007
  dependencies = [
3038
- "rand_core 0.6.4",
3008
+ "rand_core 0.10.1",
3039
3009
  ]
3040
3010
 
3041
3011
  [[package]]
@@ -3080,9 +3050,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
3080
3050
 
3081
3051
  [[package]]
3082
3052
  name = "smallvec"
3083
- version = "1.16.4"
3053
+ version = "1.16.5"
3084
3054
  source = "registry+https://github.com/rust-lang/crates.io-index"
3085
- checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
3055
+ checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46"
3086
3056
 
3087
3057
  [[package]]
3088
3058
  name = "socket2"
@@ -3160,9 +3130,9 @@ dependencies = [
3160
3130
 
3161
3131
  [[package]]
3162
3132
  name = "syn"
3163
- version = "3.0.9"
3133
+ version = "3.0.10"
3164
3134
  source = "registry+https://github.com/rust-lang/crates.io-index"
3165
- checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
3135
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
3166
3136
  dependencies = [
3167
3137
  "proc-macro2",
3168
3138
  "quote",
@@ -3186,7 +3156,7 @@ checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
3186
3156
  dependencies = [
3187
3157
  "proc-macro2",
3188
3158
  "quote",
3189
- "syn 3.0.9",
3159
+ "syn 3.0.10",
3190
3160
  ]
3191
3161
 
3192
3162
  [[package]]
@@ -3219,7 +3189,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
3219
3189
  dependencies = [
3220
3190
  "proc-macro2",
3221
3191
  "quote",
3222
- "syn 3.0.9",
3192
+ "syn 3.0.10",
3223
3193
  ]
3224
3194
 
3225
3195
  [[package]]
@@ -3339,7 +3309,7 @@ checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"
3339
3309
  dependencies = [
3340
3310
  "proc-macro2",
3341
3311
  "quote",
3342
- "syn 3.0.9",
3312
+ "syn 3.0.10",
3343
3313
  ]
3344
3314
 
3345
3315
  [[package]]
@@ -3379,9 +3349,9 @@ dependencies = [
3379
3349
 
3380
3350
  [[package]]
3381
3351
  name = "toml"
3382
- version = "1.1.8+spec-1.1.0"
3352
+ version = "1.2.1+spec-1.1.0"
3383
3353
  source = "registry+https://github.com/rust-lang/crates.io-index"
3384
- checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d"
3354
+ checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7"
3385
3355
  dependencies = [
3386
3356
  "indexmap",
3387
3357
  "serde_core",
@@ -3394,9 +3364,9 @@ dependencies = [
3394
3364
 
3395
3365
  [[package]]
3396
3366
  name = "toml_datetime"
3397
- version = "1.1.2+spec-1.1.0"
3367
+ version = "1.1.3+spec-1.1.0"
3398
3368
  source = "registry+https://github.com/rust-lang/crates.io-index"
3399
- checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053"
3369
+ checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49"
3400
3370
  dependencies = [
3401
3371
  "serde_core",
3402
3372
  ]
@@ -3424,9 +3394,9 @@ dependencies = [
3424
3394
 
3425
3395
  [[package]]
3426
3396
  name = "toml_writer"
3427
- version = "1.1.3+spec-1.1.0"
3397
+ version = "1.2.0+spec-1.1.0"
3428
3398
  source = "registry+https://github.com/rust-lang/crates.io-index"
3429
- checksum = "06bdbd8cfc056b8d2e2e85f29b56a3bdbecb527cef81eb39e3e7b98af4652770"
3399
+ checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"
3430
3400
 
3431
3401
  [[package]]
3432
3402
  name = "tower"
@@ -3464,32 +3434,6 @@ dependencies = [
3464
3434
  "url",
3465
3435
  ]
3466
3436
 
3467
- [[package]]
3468
- name = "tower-http"
3469
- version = "0.7.1"
3470
- source = "registry+https://github.com/rust-lang/crates.io-index"
3471
- checksum = "08a05a66a4fdd61cbbe0a1d755ffe0ca6aba159dd4820936a0ff8a8278245b9c"
3472
- dependencies = [
3473
- "async-compression",
3474
- "bitflags 2.13.2",
3475
- "bytes",
3476
- "futures-core",
3477
- "futures-util",
3478
- "http",
3479
- "http-body",
3480
- "http-body-util",
3481
- "percent-encoding",
3482
- "pin-project-lite",
3483
- "tokio",
3484
- "tokio-util",
3485
- "tower",
3486
- "tower-layer",
3487
- "tower-service",
3488
- "tracing",
3489
- "url",
3490
- "uuid",
3491
- ]
3492
-
3493
3437
  [[package]]
3494
3438
  name = "tower-layer"
3495
3439
  version = "0.3.3"
@@ -3687,9 +3631,9 @@ checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
3687
3631
 
3688
3632
  [[package]]
3689
3633
  name = "uuid"
3690
- version = "1.29.0"
3634
+ version = "1.29.2"
3691
3635
  source = "registry+https://github.com/rust-lang/crates.io-index"
3692
- checksum = "4a0e2d11620c50695fe12bbbfde96b3477fe606e7284c22d505c12ce51214514"
3636
+ checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c"
3693
3637
  dependencies = [
3694
3638
  "getrandom 0.4.3",
3695
3639
  "js-sys",
@@ -3798,7 +3742,7 @@ dependencies = [
3798
3742
  "bumpalo",
3799
3743
  "proc-macro2",
3800
3744
  "quote",
3801
- "syn 3.0.9",
3745
+ "syn 3.0.10",
3802
3746
  "wasm-bindgen-shared",
3803
3747
  ]
3804
3748
 
@@ -3846,9 +3790,9 @@ dependencies = [
3846
3790
 
3847
3791
  [[package]]
3848
3792
  name = "webpki-root-certs"
3849
- version = "1.0.11"
3793
+ version = "1.0.12"
3850
3794
  source = "registry+https://github.com/rust-lang/crates.io-index"
3851
- checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a"
3795
+ checksum = "293198dcebfb821155b5092ab94b5a82ff180eddd7241df3bd6e66a4ffd1a585"
3852
3796
  dependencies = [
3853
3797
  "rustls-pki-types",
3854
3798
  ]
@@ -4128,9 +4072,9 @@ checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
4128
4072
 
4129
4073
  [[package]]
4130
4074
  name = "winnow"
4131
- version = "1.0.4"
4075
+ version = "1.0.5"
4132
4076
  source = "registry+https://github.com/rust-lang/crates.io-index"
4133
- checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
4077
+ checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef"
4134
4078
  dependencies = [
4135
4079
  "memchr",
4136
4080
  ]
@@ -4182,7 +4126,7 @@ checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
4182
4126
  dependencies = [
4183
4127
  "proc-macro2",
4184
4128
  "quote",
4185
- "syn 3.0.9",
4129
+ "syn 3.0.10",
4186
4130
  "synstructure",
4187
4131
  ]
4188
4132
 
@@ -4223,7 +4167,7 @@ checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
4223
4167
  dependencies = [
4224
4168
  "proc-macro2",
4225
4169
  "quote",
4226
- "syn 3.0.9",
4170
+ "syn 3.0.10",
4227
4171
  "synstructure",
4228
4172
  ]
4229
4173
 
@@ -4277,7 +4221,7 @@ checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
4277
4221
  dependencies = [
4278
4222
  "proc-macro2",
4279
4223
  "quote",
4280
- "syn 3.0.9",
4224
+ "syn 3.0.10",
4281
4225
  ]
4282
4226
 
4283
4227
  [[package]]
@@ -1,11 +1,11 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:24c779c7594062511f091fd2bfaa5c449ff07c7f38f2d06ca50189a27411b1c5
2
+ # alef:hash:67b6ea846873b7c0ffcd78e1a3cf242f2a7a73d0500888564254319ea056a4a5
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
6
6
  [package]
7
7
  name = "liter-llm-rb"
8
- version = "2.6.1"
8
+ version = "2.7.3"
9
9
  edition = "2024"
10
10
  authors = ["Na'aman Hirschfeld <naaman@xberg.io>", "Tobias Perlstein <tobias@xberg.io>"]
11
11
  license = "MIT"
@@ -32,7 +32,7 @@ wasm-http = ["liter-llm/wasm-http"]
32
32
 
33
33
  [dependencies]
34
34
  futures = "0.3"
35
- liter-llm = { version = "2.6.1", features = ["native-http", "full"] }
35
+ liter-llm = { version = "2.7.3", features = ["native-http", "full"] }
36
36
  magnus = "0.9"
37
37
  rb-sys = ">=0.9.130, <0.10"
38
38
  serde = { version = "1", features = ["derive"] }
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:593cc450620e3a9a4e195d7ae3e47723d099d60a13e3630eeebd467900ff606a
2
+ // alef:hash:ecf3885dce7ee71a7d2bdea3537ebd28727a086f0f3e807dc80a3c23eaaf0ad2
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -120,6 +120,7 @@ pub struct AssistantMessage {
120
120
  refusal: Option<String>,
121
121
  function_call: Option<FunctionCall>,
122
122
  reasoning_content: Option<String>,
123
+ thinking_blocks: Option<Vec<ThinkingBlock>>,
123
124
  }
124
125
 
125
126
  unsafe impl IntoValueFromNative for AssistantMessage {}
@@ -225,6 +226,15 @@ impl AssistantMessage {
225
226
  })?),
226
227
  None => None,
227
228
  },
229
+ thinking_blocks: match kwargs.get(ruby.to_symbol("thinking_blocks")).filter(|v| !v.is_nil()) {
230
+ Some(v) => Some(<Vec<ThinkingBlock>>::try_convert(v).map_err(|e| {
231
+ magnus::Error::new(
232
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
233
+ format!("invalid value for `thinking_blocks`: {}", e),
234
+ )
235
+ })?),
236
+ None => None,
237
+ },
228
238
  })
229
239
  }
230
240
 
@@ -252,6 +262,10 @@ impl AssistantMessage {
252
262
  self.reasoning_content.clone()
253
263
  }
254
264
 
265
+ fn thinking_blocks(&self) -> Option<Vec<ThinkingBlock>> {
266
+ self.thinking_blocks.clone()
267
+ }
268
+
255
269
  fn text(&self) -> Option<String> {
256
270
  #[allow(clippy::needless_update)]
257
271
  let core_self = liter_llm::types::AssistantMessage {
@@ -267,6 +281,11 @@ impl AssistantMessage {
267
281
 
268
282
  reasoning_content: self.reasoning_content.clone(),
269
283
 
284
+ thinking_blocks: self
285
+ .thinking_blocks
286
+ .clone()
287
+ .map(|v| v.into_iter().map(Into::into).collect()),
288
+
270
289
  ..Default::default()
271
290
  };
272
291
  core_self.text()
@@ -287,6 +306,11 @@ impl AssistantMessage {
287
306
 
288
307
  reasoning_content: self.reasoning_content.clone(),
289
308
 
309
+ thinking_blocks: self
310
+ .thinking_blocks
311
+ .clone()
312
+ .map(|v| v.into_iter().map(Into::into).collect()),
313
+
290
314
  ..Default::default()
291
315
  };
292
316
  core_self.refusal_text().map(|v| v.to_owned())
@@ -307,6 +331,11 @@ impl AssistantMessage {
307
331
 
308
332
  reasoning_content: self.reasoning_content.clone(),
309
333
 
334
+ thinking_blocks: self
335
+ .thinking_blocks
336
+ .clone()
337
+ .map(|v| v.into_iter().map(Into::into).collect()),
338
+
310
339
  ..Default::default()
311
340
  };
312
341
  core_self.reasoning_text().map(|v| v.to_owned())
@@ -327,6 +356,11 @@ impl AssistantMessage {
327
356
 
328
357
  reasoning_content: self.reasoning_content.clone(),
329
358
 
359
+ thinking_blocks: self
360
+ .thinking_blocks
361
+ .clone()
362
+ .map(|v| v.into_iter().map(Into::into).collect()),
363
+
330
364
  ..Default::default()
331
365
  };
332
366
  core_self.output_images().into_iter().map(Into::into).collect()
@@ -347,6 +381,11 @@ impl AssistantMessage {
347
381
 
348
382
  reasoning_content: self.reasoning_content.clone(),
349
383
 
384
+ thinking_blocks: self
385
+ .thinking_blocks
386
+ .clone()
387
+ .map(|v| v.into_iter().map(Into::into).collect()),
388
+
350
389
  ..Default::default()
351
390
  };
352
391
  core_self.output_audio().into_iter().map(Into::into).collect()
@@ -11374,6 +11413,7 @@ pub struct StreamDelta {
11374
11413
  function_call: Option<StreamFunctionCall>,
11375
11414
  refusal: Option<String>,
11376
11415
  reasoning_content: Option<String>,
11416
+ thinking_blocks: Option<Vec<ThinkingBlock>>,
11377
11417
  }
11378
11418
 
11379
11419
  unsafe impl IntoValueFromNative for StreamDelta {}
@@ -11479,6 +11519,15 @@ impl StreamDelta {
11479
11519
  })?),
11480
11520
  None => None,
11481
11521
  },
11522
+ thinking_blocks: match kwargs.get(ruby.to_symbol("thinking_blocks")).filter(|v| !v.is_nil()) {
11523
+ Some(v) => Some(<Vec<ThinkingBlock>>::try_convert(v).map_err(|e| {
11524
+ magnus::Error::new(
11525
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
11526
+ format!("invalid value for `thinking_blocks`: {}", e),
11527
+ )
11528
+ })?),
11529
+ None => None,
11530
+ },
11482
11531
  })
11483
11532
  }
11484
11533
 
@@ -11506,6 +11555,10 @@ impl StreamDelta {
11506
11555
  self.reasoning_content.clone()
11507
11556
  }
11508
11557
 
11558
+ fn thinking_blocks(&self) -> Option<Vec<ThinkingBlock>> {
11559
+ self.thinking_blocks.clone()
11560
+ }
11561
+
11509
11562
  #[allow(clippy::should_implement_trait)]
11510
11563
  fn to_s(&self) -> String {
11511
11564
  self.content.clone().unwrap_or_default()
@@ -11880,6 +11933,164 @@ impl SystemMessage {
11880
11933
  }
11881
11934
  }
11882
11935
 
11936
+ #[derive(Clone, Debug, serde::Serialize)]
11937
+ #[serde(default)]
11938
+ #[magnus::wrap(class = "LiterLlm::ThinkingBlock")]
11939
+ pub struct ThinkingBlock {
11940
+ #[serde(rename = "type")]
11941
+ block_type: Option<String>,
11942
+ thinking: Option<String>,
11943
+ signature: Option<String>,
11944
+ data: Option<String>,
11945
+ index: Option<u32>,
11946
+ text_offset: Option<u32>,
11947
+ tool_call_offset: Option<u32>,
11948
+ }
11949
+
11950
+ unsafe impl IntoValueFromNative for ThinkingBlock {}
11951
+
11952
+ impl magnus::TryConvert for ThinkingBlock {
11953
+ fn try_convert(val: magnus::Value) -> Result<Self, magnus::Error> {
11954
+ if let Ok(r) = <&ThinkingBlock as magnus::TryConvert>::try_convert(val) {
11955
+ return Ok(r.clone());
11956
+ }
11957
+ let json_str: String = if let Ok(s) = <String as magnus::TryConvert>::try_convert(val) {
11958
+ s
11959
+ } else {
11960
+ val.funcall::<_, _, String>("to_json", ()).map_err(|e| {
11961
+ magnus::Error::new(
11962
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
11963
+ format!("no implicit conversion into ThinkingBlock: {}", e),
11964
+ )
11965
+ })?
11966
+ };
11967
+ serde_json::from_str::<ThinkingBlock>(&json_str).map_err(|e| {
11968
+ magnus::Error::new(
11969
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
11970
+ format!("failed to deserialize ThinkingBlock: {}", e),
11971
+ )
11972
+ })
11973
+ }
11974
+ }
11975
+
11976
+ unsafe impl TryConvertOwned for ThinkingBlock {}
11977
+ impl<'de> serde::Deserialize<'de> for ThinkingBlock {
11978
+ fn deserialize<D>(deserializer: D) -> ::core::result::Result<Self, D::Error>
11979
+ where
11980
+ D: serde::Deserializer<'de>,
11981
+ {
11982
+ <liter_llm::types::ThinkingBlock as serde::Deserialize>::deserialize(deserializer).map(Into::into)
11983
+ }
11984
+ }
11985
+
11986
+ impl Default for ThinkingBlock {
11987
+ fn default() -> Self {
11988
+ liter_llm::types::ThinkingBlock::default().into()
11989
+ }
11990
+ }
11991
+
11992
+ impl ThinkingBlock {
11993
+ fn new(args: &[magnus::Value]) -> Result<Self, magnus::Error> {
11994
+ let ruby = unsafe { magnus::Ruby::get_unchecked() };
11995
+ let args = magnus::scan_args::scan_args::<(), (Option<magnus::RHash>,), (), (), (), ()>(args)?;
11996
+ let (kwargs_opt,) = args.optional;
11997
+ let kwargs = kwargs_opt.unwrap_or_else(|| ruby.hash_new());
11998
+ Ok(Self {
11999
+ block_type: match kwargs.get(ruby.to_symbol("block_type")).filter(|v| !v.is_nil()) {
12000
+ Some(v) => Some(String::try_convert(v).map_err(|e| {
12001
+ magnus::Error::new(
12002
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
12003
+ format!("invalid value for `block_type`: {}", e),
12004
+ )
12005
+ })?),
12006
+ None => None,
12007
+ },
12008
+ thinking: match kwargs.get(ruby.to_symbol("thinking")).filter(|v| !v.is_nil()) {
12009
+ Some(v) => Some(String::try_convert(v).map_err(|e| {
12010
+ magnus::Error::new(
12011
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
12012
+ format!("invalid value for `thinking`: {}", e),
12013
+ )
12014
+ })?),
12015
+ None => None,
12016
+ },
12017
+ signature: match kwargs.get(ruby.to_symbol("signature")).filter(|v| !v.is_nil()) {
12018
+ Some(v) => Some(String::try_convert(v).map_err(|e| {
12019
+ magnus::Error::new(
12020
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
12021
+ format!("invalid value for `signature`: {}", e),
12022
+ )
12023
+ })?),
12024
+ None => None,
12025
+ },
12026
+ data: match kwargs.get(ruby.to_symbol("data")).filter(|v| !v.is_nil()) {
12027
+ Some(v) => Some(String::try_convert(v).map_err(|e| {
12028
+ magnus::Error::new(
12029
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
12030
+ format!("invalid value for `data`: {}", e),
12031
+ )
12032
+ })?),
12033
+ None => None,
12034
+ },
12035
+ index: match kwargs.get(ruby.to_symbol("index")).filter(|v| !v.is_nil()) {
12036
+ Some(v) => Some(u32::try_convert(v).map_err(|e| {
12037
+ magnus::Error::new(
12038
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
12039
+ format!("invalid value for `index`: {}", e),
12040
+ )
12041
+ })?),
12042
+ None => None,
12043
+ },
12044
+ text_offset: match kwargs.get(ruby.to_symbol("text_offset")).filter(|v| !v.is_nil()) {
12045
+ Some(v) => Some(u32::try_convert(v).map_err(|e| {
12046
+ magnus::Error::new(
12047
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
12048
+ format!("invalid value for `text_offset`: {}", e),
12049
+ )
12050
+ })?),
12051
+ None => None,
12052
+ },
12053
+ tool_call_offset: match kwargs.get(ruby.to_symbol("tool_call_offset")).filter(|v| !v.is_nil()) {
12054
+ Some(v) => Some(u32::try_convert(v).map_err(|e| {
12055
+ magnus::Error::new(
12056
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
12057
+ format!("invalid value for `tool_call_offset`: {}", e),
12058
+ )
12059
+ })?),
12060
+ None => None,
12061
+ },
12062
+ })
12063
+ }
12064
+
12065
+ fn block_type(&self) -> Option<String> {
12066
+ self.block_type.clone()
12067
+ }
12068
+
12069
+ fn thinking(&self) -> Option<String> {
12070
+ self.thinking.clone()
12071
+ }
12072
+
12073
+ fn signature(&self) -> Option<String> {
12074
+ self.signature.clone()
12075
+ }
12076
+
12077
+ fn data(&self) -> Option<String> {
12078
+ self.data.clone()
12079
+ }
12080
+
12081
+ fn index(&self) -> Option<u32> {
12082
+ self.index
12083
+ }
12084
+
12085
+ fn text_offset(&self) -> Option<u32> {
12086
+ self.text_offset
12087
+ }
12088
+
12089
+ fn tool_call_offset(&self) -> Option<u32> {
12090
+ self.tool_call_offset
12091
+ }
12092
+ }
12093
+
11883
12094
  #[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
11884
12095
  #[magnus::wrap(class = "LiterLlm::ToolCall")]
11885
12096
  pub struct ToolCall {
@@ -14758,6 +14969,7 @@ impl From<AssistantMessage> for liter_llm::types::AssistantMessage {
14758
14969
  refusal: val.refusal,
14759
14970
  function_call: val.function_call.map(Into::into),
14760
14971
  reasoning_content: val.reasoning_content,
14972
+ thinking_blocks: val.thinking_blocks.map(|v| v.into_iter().map(Into::into).collect()),
14761
14973
  ..Default::default()
14762
14974
  }
14763
14975
  }
@@ -14773,6 +14985,7 @@ impl From<liter_llm::types::AssistantMessage> for AssistantMessage {
14773
14985
  refusal: val.refusal.map(|v| v.to_string()),
14774
14986
  function_call: val.function_call.map(Into::into),
14775
14987
  reasoning_content: val.reasoning_content.map(|v| v.to_string()),
14988
+ thinking_blocks: val.thinking_blocks.map(|v| v.into_iter().map(Into::into).collect()),
14776
14989
  }
14777
14990
  }
14778
14991
  }
@@ -16968,6 +17181,7 @@ impl From<StreamDelta> for liter_llm::types::StreamDelta {
16968
17181
  function_call: val.function_call.map(Into::into),
16969
17182
  refusal: val.refusal,
16970
17183
  reasoning_content: val.reasoning_content,
17184
+ thinking_blocks: val.thinking_blocks.map(|v| v.into_iter().map(Into::into).collect()),
16971
17185
  ..Default::default()
16972
17186
  }
16973
17187
  }
@@ -16983,6 +17197,7 @@ impl From<liter_llm::types::StreamDelta> for StreamDelta {
16983
17197
  function_call: val.function_call.map(Into::into),
16984
17198
  refusal: val.refusal.map(|v| v.to_string()),
16985
17199
  reasoning_content: val.reasoning_content.map(|v| v.to_string()),
17200
+ thinking_blocks: val.thinking_blocks.map(|v| v.into_iter().map(Into::into).collect()),
16986
17201
  }
16987
17202
  }
16988
17203
  }
@@ -17074,6 +17289,37 @@ impl From<liter_llm::types::SystemMessage> for SystemMessage {
17074
17289
  }
17075
17290
  }
17076
17291
 
17292
+ #[allow(clippy::needless_update)]
17293
+ impl From<ThinkingBlock> for liter_llm::types::ThinkingBlock {
17294
+ fn from(val: ThinkingBlock) -> Self {
17295
+ Self {
17296
+ block_type: val.block_type,
17297
+ thinking: val.thinking,
17298
+ signature: val.signature,
17299
+ data: val.data,
17300
+ index: val.index,
17301
+ text_offset: val.text_offset,
17302
+ tool_call_offset: val.tool_call_offset,
17303
+ ..Default::default()
17304
+ }
17305
+ }
17306
+ }
17307
+
17308
+ #[allow(clippy::redundant_closure)]
17309
+ impl From<liter_llm::types::ThinkingBlock> for ThinkingBlock {
17310
+ fn from(val: liter_llm::types::ThinkingBlock) -> Self {
17311
+ Self {
17312
+ block_type: val.block_type.map(|v| v.to_string()),
17313
+ thinking: val.thinking.map(|v| v.to_string()),
17314
+ signature: val.signature.map(|v| v.to_string()),
17315
+ data: val.data.map(|v| v.to_string()),
17316
+ index: val.index,
17317
+ text_offset: val.text_offset,
17318
+ tool_call_offset: val.tool_call_offset,
17319
+ }
17320
+ }
17321
+ }
17322
+
17077
17323
  #[allow(clippy::useless_conversion)]
17078
17324
  impl From<ToolCall> for liter_llm::types::ToolCall {
17079
17325
  fn from(val: ToolCall) -> Self {
@@ -18127,6 +18373,8 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
18127
18373
 
18128
18374
  class.define_method("reasoning_content", method!(AssistantMessage::reasoning_content, 0))?;
18129
18375
 
18376
+ class.define_method("thinking_blocks", method!(AssistantMessage::thinking_blocks, 0))?;
18377
+
18130
18378
  class.define_method("text", method!(AssistantMessage::text, 0))?;
18131
18379
 
18132
18380
  class.define_method("refusal_text", method!(AssistantMessage::refusal_text, 0))?;
@@ -19521,6 +19769,8 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
19521
19769
 
19522
19770
  class.define_method("reasoning_content", method!(StreamDelta::reasoning_content, 0))?;
19523
19771
 
19772
+ class.define_method("thinking_blocks", method!(StreamDelta::thinking_blocks, 0))?;
19773
+
19524
19774
  class.define_method("to_s", method!(StreamDelta::to_s, 0))?;
19525
19775
 
19526
19776
  let class = module.define_class("StreamFunctionCall", ruby.class_object())?;
@@ -19557,6 +19807,24 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
19557
19807
 
19558
19808
  class.define_method("name", method!(SystemMessage::name, 0))?;
19559
19809
 
19810
+ let class = module.define_class("ThinkingBlock", ruby.class_object())?;
19811
+
19812
+ class.define_singleton_method("new", function!(ThinkingBlock::new, -1))?;
19813
+
19814
+ class.define_method("block_type", method!(ThinkingBlock::block_type, 0))?;
19815
+
19816
+ class.define_method("thinking", method!(ThinkingBlock::thinking, 0))?;
19817
+
19818
+ class.define_method("signature", method!(ThinkingBlock::signature, 0))?;
19819
+
19820
+ class.define_method("data", method!(ThinkingBlock::data, 0))?;
19821
+
19822
+ class.define_method("index", method!(ThinkingBlock::index, 0))?;
19823
+
19824
+ class.define_method("text_offset", method!(ThinkingBlock::text_offset, 0))?;
19825
+
19826
+ class.define_method("tool_call_offset", method!(ThinkingBlock::tool_call_offset, 0))?;
19827
+
19560
19828
  let class = module.define_class("ToolCall", ruby.class_object())?;
19561
19829
 
19562
19830
  class.define_singleton_method("new", function!(ToolCall::new, -1))?;
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:15ad2a1af846b104f69f1066fbf9be185bfc654000100672d45af03e81abfb14
2
+ # alef:hash:de07a1493f7e7aef81cd20dc1826e6bc315b957e5ca9ce4c172366f2e82df1f7
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
  # frozen_string_literal: true
6
6
 
7
7
  module LiterLlm
8
8
  ## The version string for this package.
9
- VERSION = "2.6.1"
9
+ VERSION = "2.7.3"
10
10
  end
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:ec12acde3d7da8e46dbc708275fdd0c0426522f23cfdd002f34e11502f573ab8
2
+ # alef:hash:ed81ffec42d8fad4ad8077f3272931745cc8bf4541c0eff0e23a57605e16b011
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
@@ -16,8 +16,9 @@ module LiterLlm
16
16
  attr_reader refusal: String?
17
17
  attr_reader function_call: FunctionCall?
18
18
  attr_reader reasoning_content: String?
19
+ attr_reader thinking_blocks: Array[ThinkingBlock]?
19
20
 
20
- def initialize: (?content: AssistantContent, ?name: String, ?tool_calls: Array[ToolCall], ?refusal: String, ?function_call: FunctionCall, ?reasoning_content: String) -> void
21
+ def initialize: (?content: AssistantContent, ?name: String, ?tool_calls: Array[ToolCall], ?refusal: String, ?function_call: FunctionCall, ?reasoning_content: String, ?thinking_blocks: Array[ThinkingBlock]) -> void
21
22
  def text: () -> String?
22
23
  def refusal_text: () -> String?
23
24
  def reasoning_text: () -> String?
@@ -886,8 +887,9 @@ module LiterLlm
886
887
  attr_reader function_call: StreamFunctionCall?
887
888
  attr_reader refusal: String?
888
889
  attr_reader reasoning_content: String?
890
+ attr_reader thinking_blocks: Array[ThinkingBlock]?
889
891
 
890
- def initialize: (?role: String, ?content: String, ?tool_calls: Array[StreamToolCall], ?function_call: StreamFunctionCall, ?refusal: String, ?reasoning_content: String) -> void
892
+ def initialize: (?role: String, ?content: String, ?tool_calls: Array[StreamToolCall], ?function_call: StreamFunctionCall, ?refusal: String, ?reasoning_content: String, ?thinking_blocks: Array[ThinkingBlock]) -> void
891
893
  end
892
894
 
893
895
  class StreamFunctionCall
@@ -919,6 +921,18 @@ module LiterLlm
919
921
  def initialize: (?content: UserContent, ?name: String) -> void
920
922
  end
921
923
 
924
+ class ThinkingBlock
925
+ attr_reader block_type: String?
926
+ attr_reader thinking: String?
927
+ attr_reader signature: String?
928
+ attr_reader data: String?
929
+ attr_reader index: Integer?
930
+ attr_reader text_offset: Integer?
931
+ attr_reader tool_call_offset: Integer?
932
+
933
+ def initialize: (?block_type: String, ?thinking: String, ?signature: String, ?data: String, ?index: Integer, ?text_offset: Integer, ?tool_call_offset: Integer) -> void
934
+ end
935
+
922
936
  class ToolCall
923
937
  attr_reader id: String
924
938
  attr_reader call_type: enum_ToolType
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liter_llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Na'aman Hirschfeld
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-11-06 00:00:00.000000000 Z
12
+ date: 2026-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb_sys