xberg 1.2.3 → 1.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 +4 -4
- data/ext/xberg_rb/native/Cargo.lock +128 -233
- data/ext/xberg_rb/native/Cargo.toml +6 -6
- data/ext/xberg_rb/src/lib.rs +1604 -325
- data/lib/xberg/native.rb +139 -277
- data/lib/xberg/version.rb +2 -2
- data/sig/types.rbs +238 -385
- metadata +2 -2
data/lib/xberg/native.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:ad1111808fdffa3c9fab07200ef47104e14b36ee18f21896c08af7bec50b6095
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -338,12 +338,10 @@ module Xberg
|
|
|
338
338
|
|
|
339
339
|
# Hyperlink target URL.
|
|
340
340
|
sig { returns(String) }
|
|
341
|
-
|
|
342
|
-
def url = super
|
|
341
|
+
def url = Data.instance_method(:to_h).bind_call(self).fetch(:url)
|
|
343
342
|
# Optional link title attribute.
|
|
344
343
|
sig { returns(T.nilable(String)) }
|
|
345
|
-
|
|
346
|
-
def title = super
|
|
344
|
+
def title = Data.instance_method(:to_h).bind_call(self).fetch(:title)
|
|
347
345
|
sig { returns(T::Boolean) }
|
|
348
346
|
def bold? = false
|
|
349
347
|
sig { returns(T::Boolean) }
|
|
@@ -418,8 +416,7 @@ module Xberg
|
|
|
418
416
|
|
|
419
417
|
# CSS-compatible color value (e.g. `"#ff0000"`, `"red"`).
|
|
420
418
|
sig { returns(String) }
|
|
421
|
-
|
|
422
|
-
def value = super
|
|
419
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
423
420
|
sig { returns(T::Boolean) }
|
|
424
421
|
def bold? = false
|
|
425
422
|
sig { returns(T::Boolean) }
|
|
@@ -458,8 +455,7 @@ module Xberg
|
|
|
458
455
|
|
|
459
456
|
# Font size including unit (e.g. `"12pt"`, `"1.2em"`, `"16px"`).
|
|
460
457
|
sig { returns(String) }
|
|
461
|
-
|
|
462
|
-
def value = super
|
|
458
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
463
459
|
sig { returns(T::Boolean) }
|
|
464
460
|
def bold? = false
|
|
465
461
|
sig { returns(T::Boolean) }
|
|
@@ -498,12 +494,10 @@ module Xberg
|
|
|
498
494
|
|
|
499
495
|
# Name of the custom annotation kind.
|
|
500
496
|
sig { returns(String) }
|
|
501
|
-
|
|
502
|
-
def name = super
|
|
497
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
503
498
|
# Optional value or parameter for the annotation.
|
|
504
499
|
sig { returns(T.nilable(String)) }
|
|
505
|
-
|
|
506
|
-
def value = super
|
|
500
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
507
501
|
sig { returns(T::Boolean) }
|
|
508
502
|
def bold? = false
|
|
509
503
|
sig { returns(T::Boolean) }
|
|
@@ -570,12 +564,10 @@ module Xberg
|
|
|
570
564
|
|
|
571
565
|
# Username sent in the `Authorization: Basic` header.
|
|
572
566
|
sig { returns(String) }
|
|
573
|
-
|
|
574
|
-
def username = super
|
|
567
|
+
def username = Data.instance_method(:to_h).bind_call(self).fetch(:username)
|
|
575
568
|
# Password sent in the `Authorization: Basic` header.
|
|
576
569
|
sig { returns(String) }
|
|
577
|
-
|
|
578
|
-
def password = super
|
|
570
|
+
def password = Data.instance_method(:to_h).bind_call(self).fetch(:password)
|
|
579
571
|
sig { returns(T::Boolean) }
|
|
580
572
|
def basic? = true
|
|
581
573
|
sig { returns(T::Boolean) }
|
|
@@ -596,8 +588,7 @@ module Xberg
|
|
|
596
588
|
|
|
597
589
|
# Token sent in the `Authorization: Bearer` header.
|
|
598
590
|
sig { returns(String) }
|
|
599
|
-
|
|
600
|
-
def token = super
|
|
591
|
+
def token = Data.instance_method(:to_h).bind_call(self).fetch(:token)
|
|
601
592
|
sig { returns(T::Boolean) }
|
|
602
593
|
def basic? = false
|
|
603
594
|
sig { returns(T::Boolean) }
|
|
@@ -618,12 +609,10 @@ module Xberg
|
|
|
618
609
|
|
|
619
610
|
# HTTP header name to set on each request.
|
|
620
611
|
sig { returns(String) }
|
|
621
|
-
|
|
622
|
-
def name = super
|
|
612
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
623
613
|
# HTTP header value to send.
|
|
624
614
|
sig { returns(String) }
|
|
625
|
-
|
|
626
|
-
def value = super
|
|
615
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
627
616
|
sig { returns(T::Boolean) }
|
|
628
617
|
def basic? = false
|
|
629
618
|
sig { returns(T::Boolean) }
|
|
@@ -699,14 +688,12 @@ module Xberg
|
|
|
699
688
|
# or a HuggingFace model ID, e.g. "Xenova/gpt-4o", "bert-base-uncased".
|
|
700
689
|
# A registered backend name takes precedence over a HuggingFace ID.
|
|
701
690
|
sig { returns(String) }
|
|
702
|
-
|
|
703
|
-
def model = super
|
|
691
|
+
def model = Data.instance_method(:to_h).bind_call(self).fetch(:model)
|
|
704
692
|
# Optional cache directory override for tokenizer files.
|
|
705
693
|
# Defaults to hf-hub's standard cache (`~/.cache/huggingface/`).
|
|
706
694
|
# Can also be set via `XBERG_TOKENIZER_CACHE_DIR` environment variable.
|
|
707
695
|
sig { returns(T.nilable(String)) }
|
|
708
|
-
|
|
709
|
-
def cache_dir = super
|
|
696
|
+
def cache_dir = Data.instance_method(:to_h).bind_call(self).fetch(:cache_dir)
|
|
710
697
|
sig { returns(T::Boolean) }
|
|
711
698
|
def characters? = false
|
|
712
699
|
sig { returns(T::Boolean) }
|
|
@@ -755,12 +742,10 @@ module Xberg
|
|
|
755
742
|
|
|
756
743
|
# Actual size in bytes.
|
|
757
744
|
sig { returns(Integer) }
|
|
758
|
-
|
|
759
|
-
def size_bytes = super
|
|
745
|
+
def size_bytes = Data.instance_method(:to_h).bind_call(self).fetch(:size_bytes)
|
|
760
746
|
# Threshold in bytes.
|
|
761
747
|
sig { returns(Integer) }
|
|
762
|
-
|
|
763
|
-
def threshold_bytes = super
|
|
748
|
+
def threshold_bytes = Data.instance_method(:to_h).bind_call(self).fetch(:threshold_bytes)
|
|
764
749
|
sig { returns(T::Boolean) }
|
|
765
750
|
def large_file? = true
|
|
766
751
|
sig { returns(T::Boolean) }
|
|
@@ -786,12 +771,10 @@ module Xberg
|
|
|
786
771
|
|
|
787
772
|
# Actual page count.
|
|
788
773
|
sig { returns(Integer) }
|
|
789
|
-
|
|
790
|
-
def page_count = super
|
|
774
|
+
def page_count = Data.instance_method(:to_h).bind_call(self).fetch(:page_count)
|
|
791
775
|
# Threshold page count.
|
|
792
776
|
sig { returns(Integer) }
|
|
793
|
-
|
|
794
|
-
def threshold = super
|
|
777
|
+
def threshold = Data.instance_method(:to_h).bind_call(self).fetch(:threshold)
|
|
795
778
|
sig { returns(T::Boolean) }
|
|
796
779
|
def large_file? = false
|
|
797
780
|
sig { returns(T::Boolean) }
|
|
@@ -814,12 +797,10 @@ module Xberg
|
|
|
814
797
|
|
|
815
798
|
# Page count.
|
|
816
799
|
sig { returns(Integer) }
|
|
817
|
-
|
|
818
|
-
def page_count = super
|
|
800
|
+
def page_count = Data.instance_method(:to_h).bind_call(self).fetch(:page_count)
|
|
819
801
|
# Whether OCR is forced.
|
|
820
802
|
sig { returns(T::Boolean) }
|
|
821
|
-
|
|
822
|
-
def force_ocr = super
|
|
803
|
+
def force_ocr = Data.instance_method(:to_h).bind_call(self).fetch(:force_ocr)
|
|
823
804
|
sig { returns(T::Boolean) }
|
|
824
805
|
def large_file? = false
|
|
825
806
|
sig { returns(T::Boolean) }
|
|
@@ -842,12 +823,10 @@ module Xberg
|
|
|
842
823
|
|
|
843
824
|
# Actual size in bytes.
|
|
844
825
|
sig { returns(Integer) }
|
|
845
|
-
|
|
846
|
-
def size_bytes = super
|
|
826
|
+
def size_bytes = Data.instance_method(:to_h).bind_call(self).fetch(:size_bytes)
|
|
847
827
|
# Actual page count.
|
|
848
828
|
sig { returns(Integer) }
|
|
849
|
-
|
|
850
|
-
def page_count = super
|
|
829
|
+
def page_count = Data.instance_method(:to_h).bind_call(self).fetch(:page_count)
|
|
851
830
|
sig { returns(T::Boolean) }
|
|
852
831
|
def large_file? = false
|
|
853
832
|
sig { returns(T::Boolean) }
|
|
@@ -907,21 +886,17 @@ module Xberg
|
|
|
907
886
|
|
|
908
887
|
# Azure AD tenant ID.
|
|
909
888
|
sig { returns(String) }
|
|
910
|
-
|
|
911
|
-
def tenant_id = super
|
|
889
|
+
def tenant_id = Data.instance_method(:to_h).bind_call(self).fetch(:tenant_id)
|
|
912
890
|
# Application (client) ID.
|
|
913
891
|
sig { returns(String) }
|
|
914
|
-
|
|
915
|
-
def client_id = super
|
|
892
|
+
def client_id = Data.instance_method(:to_h).bind_call(self).fetch(:client_id)
|
|
916
893
|
# Client secret value. Secret — never logged.
|
|
917
894
|
sig { returns(String) }
|
|
918
|
-
|
|
919
|
-
def client_secret = super
|
|
895
|
+
def client_secret = Data.instance_method(:to_h).bind_call(self).fetch(:client_secret)
|
|
920
896
|
# OAuth2 scope. Defaults to liter-llm's own
|
|
921
897
|
# `https://cognitiveservices.azure.com/.default` when unset.
|
|
922
898
|
sig { returns(T.nilable(String)) }
|
|
923
|
-
|
|
924
|
-
def scope = super
|
|
899
|
+
def scope = Data.instance_method(:to_h).bind_call(self).fetch(:scope)
|
|
925
900
|
sig { returns(T::Boolean) }
|
|
926
901
|
def azure_ad? = true
|
|
927
902
|
sig { returns(T::Boolean) }
|
|
@@ -955,12 +930,10 @@ module Xberg
|
|
|
955
930
|
# Path to a Google service-account JSON key file (the same file
|
|
956
931
|
# `GOOGLE_APPLICATION_CREDENTIALS` would point to).
|
|
957
932
|
sig { returns(String) }
|
|
958
|
-
|
|
959
|
-
def service_account_key_file = super
|
|
933
|
+
def service_account_key_file = Data.instance_method(:to_h).bind_call(self).fetch(:service_account_key_file)
|
|
960
934
|
# OAuth2 scope. Defaults to liter-llm's own Vertex AI scope when unset.
|
|
961
935
|
sig { returns(T.nilable(String)) }
|
|
962
|
-
|
|
963
|
-
def scope = super
|
|
936
|
+
def scope = Data.instance_method(:to_h).bind_call(self).fetch(:scope)
|
|
964
937
|
sig { returns(T::Boolean) }
|
|
965
938
|
def azure_ad? = false
|
|
966
939
|
sig { returns(T::Boolean) }
|
|
@@ -987,8 +960,7 @@ module Xberg
|
|
|
987
960
|
|
|
988
961
|
# OAuth2 scope. Defaults to liter-llm's own Vertex AI scope when unset.
|
|
989
962
|
sig { returns(T.nilable(String)) }
|
|
990
|
-
|
|
991
|
-
def scope = super
|
|
963
|
+
def scope = Data.instance_method(:to_h).bind_call(self).fetch(:scope)
|
|
992
964
|
sig { returns(T::Boolean) }
|
|
993
965
|
def azure_ad? = false
|
|
994
966
|
sig { returns(T::Boolean) }
|
|
@@ -1011,22 +983,18 @@ module Xberg
|
|
|
1011
983
|
|
|
1012
984
|
# ARN of the IAM role to assume.
|
|
1013
985
|
sig { returns(String) }
|
|
1014
|
-
|
|
1015
|
-
def role_arn = super
|
|
986
|
+
def role_arn = Data.instance_method(:to_h).bind_call(self).fetch(:role_arn)
|
|
1016
987
|
# Path to a file containing the OIDC JWT (the same file
|
|
1017
988
|
# `AWS_WEB_IDENTITY_TOKEN_FILE` would point to).
|
|
1018
989
|
sig { returns(String) }
|
|
1019
|
-
|
|
1020
|
-
def token_file = super
|
|
990
|
+
def token_file = Data.instance_method(:to_h).bind_call(self).fetch(:token_file)
|
|
1021
991
|
# STS session name. Defaults to liter-llm's own default (`"liter-llm-session"`) when
|
|
1022
992
|
# unset.
|
|
1023
993
|
sig { returns(T.nilable(String)) }
|
|
1024
|
-
|
|
1025
|
-
def session_name = super
|
|
994
|
+
def session_name = Data.instance_method(:to_h).bind_call(self).fetch(:session_name)
|
|
1026
995
|
# AWS region. Defaults to liter-llm's own default (`"us-east-1"`) when unset.
|
|
1027
996
|
sig { returns(T.nilable(String)) }
|
|
1028
|
-
|
|
1029
|
-
def region = super
|
|
997
|
+
def region = Data.instance_method(:to_h).bind_call(self).fetch(:region)
|
|
1030
998
|
sig { returns(T::Boolean) }
|
|
1031
999
|
def azure_ad? = false
|
|
1032
1000
|
sig { returns(T::Boolean) }
|
|
@@ -1086,8 +1054,7 @@ module Xberg
|
|
|
1086
1054
|
|
|
1087
1055
|
# @return [String]
|
|
1088
1056
|
sig { returns(String) }
|
|
1089
|
-
|
|
1090
|
-
def value = super
|
|
1057
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1091
1058
|
sig { returns(T::Boolean) }
|
|
1092
1059
|
def context? = true
|
|
1093
1060
|
sig { returns(T::Boolean) }
|
|
@@ -1108,8 +1075,7 @@ module Xberg
|
|
|
1108
1075
|
|
|
1109
1076
|
# @return [String]
|
|
1110
1077
|
sig { returns(String) }
|
|
1111
|
-
|
|
1112
|
-
def value = super
|
|
1078
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1113
1079
|
sig { returns(T::Boolean) }
|
|
1114
1080
|
def context? = false
|
|
1115
1081
|
sig { returns(T::Boolean) }
|
|
@@ -1130,8 +1096,7 @@ module Xberg
|
|
|
1130
1096
|
|
|
1131
1097
|
# @return [String]
|
|
1132
1098
|
sig { returns(String) }
|
|
1133
|
-
|
|
1134
|
-
def value = super
|
|
1099
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1135
1100
|
sig { returns(T::Boolean) }
|
|
1136
1101
|
def context? = false
|
|
1137
1102
|
sig { returns(T::Boolean) }
|
|
@@ -1182,8 +1147,7 @@ module Xberg
|
|
|
1182
1147
|
|
|
1183
1148
|
# Preset name (e.g. "balanced", "multilingual", "large").
|
|
1184
1149
|
sig { returns(String) }
|
|
1185
|
-
|
|
1186
|
-
def name = super
|
|
1150
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
1187
1151
|
sig { returns(T::Boolean) }
|
|
1188
1152
|
def preset? = true
|
|
1189
1153
|
sig { returns(T::Boolean) }
|
|
@@ -1206,12 +1170,10 @@ module Xberg
|
|
|
1206
1170
|
|
|
1207
1171
|
# HuggingFace model repository ID (e.g. "BAAI/bge-small-en-v1.5").
|
|
1208
1172
|
sig { returns(String) }
|
|
1209
|
-
|
|
1210
|
-
def model_id = super
|
|
1173
|
+
def model_id = Data.instance_method(:to_h).bind_call(self).fetch(:model_id)
|
|
1211
1174
|
# Number of dimensions in the model's output embedding vectors.
|
|
1212
1175
|
sig { returns(Integer) }
|
|
1213
|
-
|
|
1214
|
-
def dimensions = super
|
|
1176
|
+
def dimensions = Data.instance_method(:to_h).bind_call(self).fetch(:dimensions)
|
|
1215
1177
|
sig { returns(T::Boolean) }
|
|
1216
1178
|
def preset? = false
|
|
1217
1179
|
sig { returns(T::Boolean) }
|
|
@@ -1241,8 +1203,7 @@ module Xberg
|
|
|
1241
1203
|
# an order of magnitude larger than the other variants, which would otherwise make
|
|
1242
1204
|
# every `Preset`/`Custom` value pay for it.
|
|
1243
1205
|
sig { returns(LlmConfig) }
|
|
1244
|
-
|
|
1245
|
-
def llm = super
|
|
1206
|
+
def llm = Data.instance_method(:to_h).bind_call(self).fetch(:llm)
|
|
1246
1207
|
sig { returns(T::Boolean) }
|
|
1247
1208
|
def preset? = false
|
|
1248
1209
|
sig { returns(T::Boolean) }
|
|
@@ -1283,8 +1244,7 @@ module Xberg
|
|
|
1283
1244
|
|
|
1284
1245
|
# Name the backend was registered under via `register_embedding_backend`.
|
|
1285
1246
|
sig { returns(String) }
|
|
1286
|
-
|
|
1287
|
-
def name = super
|
|
1247
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
1288
1248
|
sig { returns(T::Boolean) }
|
|
1289
1249
|
def preset? = false
|
|
1290
1250
|
sig { returns(T::Boolean) }
|
|
@@ -1374,8 +1334,7 @@ module Xberg
|
|
|
1374
1334
|
|
|
1375
1335
|
# @return [PdfMetadata]
|
|
1376
1336
|
sig { returns(PdfMetadata) }
|
|
1377
|
-
|
|
1378
|
-
def value = super
|
|
1337
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1379
1338
|
sig { returns(T::Boolean) }
|
|
1380
1339
|
def pdf? = true
|
|
1381
1340
|
sig { returns(T::Boolean) }
|
|
@@ -1433,8 +1392,7 @@ module Xberg
|
|
|
1433
1392
|
|
|
1434
1393
|
# @return [DocxMetadata]
|
|
1435
1394
|
sig { returns(DocxMetadata) }
|
|
1436
|
-
|
|
1437
|
-
def value = super
|
|
1395
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1438
1396
|
sig { returns(T::Boolean) }
|
|
1439
1397
|
def pdf? = false
|
|
1440
1398
|
sig { returns(T::Boolean) }
|
|
@@ -1492,8 +1450,7 @@ module Xberg
|
|
|
1492
1450
|
|
|
1493
1451
|
# @return [ExcelMetadata]
|
|
1494
1452
|
sig { returns(ExcelMetadata) }
|
|
1495
|
-
|
|
1496
|
-
def value = super
|
|
1453
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1497
1454
|
sig { returns(T::Boolean) }
|
|
1498
1455
|
def pdf? = false
|
|
1499
1456
|
sig { returns(T::Boolean) }
|
|
@@ -1551,8 +1508,7 @@ module Xberg
|
|
|
1551
1508
|
|
|
1552
1509
|
# @return [EmailMetadata]
|
|
1553
1510
|
sig { returns(EmailMetadata) }
|
|
1554
|
-
|
|
1555
|
-
def value = super
|
|
1511
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1556
1512
|
sig { returns(T::Boolean) }
|
|
1557
1513
|
def pdf? = false
|
|
1558
1514
|
sig { returns(T::Boolean) }
|
|
@@ -1610,8 +1566,7 @@ module Xberg
|
|
|
1610
1566
|
|
|
1611
1567
|
# @return [PptxMetadata]
|
|
1612
1568
|
sig { returns(PptxMetadata) }
|
|
1613
|
-
|
|
1614
|
-
def value = super
|
|
1569
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1615
1570
|
sig { returns(T::Boolean) }
|
|
1616
1571
|
def pdf? = false
|
|
1617
1572
|
sig { returns(T::Boolean) }
|
|
@@ -1669,8 +1624,7 @@ module Xberg
|
|
|
1669
1624
|
|
|
1670
1625
|
# @return [ArchiveMetadata]
|
|
1671
1626
|
sig { returns(ArchiveMetadata) }
|
|
1672
|
-
|
|
1673
|
-
def value = super
|
|
1627
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1674
1628
|
sig { returns(T::Boolean) }
|
|
1675
1629
|
def pdf? = false
|
|
1676
1630
|
sig { returns(T::Boolean) }
|
|
@@ -1728,8 +1682,7 @@ module Xberg
|
|
|
1728
1682
|
|
|
1729
1683
|
# @return [ImageMetadata]
|
|
1730
1684
|
sig { returns(ImageMetadata) }
|
|
1731
|
-
|
|
1732
|
-
def value = super
|
|
1685
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1733
1686
|
sig { returns(T::Boolean) }
|
|
1734
1687
|
def pdf? = false
|
|
1735
1688
|
sig { returns(T::Boolean) }
|
|
@@ -1787,8 +1740,7 @@ module Xberg
|
|
|
1787
1740
|
|
|
1788
1741
|
# @return [XmlMetadata]
|
|
1789
1742
|
sig { returns(XmlMetadata) }
|
|
1790
|
-
|
|
1791
|
-
def value = super
|
|
1743
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1792
1744
|
sig { returns(T::Boolean) }
|
|
1793
1745
|
def pdf? = false
|
|
1794
1746
|
sig { returns(T::Boolean) }
|
|
@@ -1846,8 +1798,7 @@ module Xberg
|
|
|
1846
1798
|
|
|
1847
1799
|
# @return [TextMetadata]
|
|
1848
1800
|
sig { returns(TextMetadata) }
|
|
1849
|
-
|
|
1850
|
-
def value = super
|
|
1801
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1851
1802
|
sig { returns(T::Boolean) }
|
|
1852
1803
|
def pdf? = false
|
|
1853
1804
|
sig { returns(T::Boolean) }
|
|
@@ -1905,8 +1856,7 @@ module Xberg
|
|
|
1905
1856
|
|
|
1906
1857
|
# @return [HtmlMetadata]
|
|
1907
1858
|
sig { returns(HtmlMetadata) }
|
|
1908
|
-
|
|
1909
|
-
def value = super
|
|
1859
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1910
1860
|
sig { returns(T::Boolean) }
|
|
1911
1861
|
def pdf? = false
|
|
1912
1862
|
sig { returns(T::Boolean) }
|
|
@@ -1964,8 +1914,7 @@ module Xberg
|
|
|
1964
1914
|
|
|
1965
1915
|
# @return [OcrMetadata]
|
|
1966
1916
|
sig { returns(OcrMetadata) }
|
|
1967
|
-
|
|
1968
|
-
def value = super
|
|
1917
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
1969
1918
|
sig { returns(T::Boolean) }
|
|
1970
1919
|
def pdf? = false
|
|
1971
1920
|
sig { returns(T::Boolean) }
|
|
@@ -2023,8 +1972,7 @@ module Xberg
|
|
|
2023
1972
|
|
|
2024
1973
|
# @return [CsvMetadata]
|
|
2025
1974
|
sig { returns(CsvMetadata) }
|
|
2026
|
-
|
|
2027
|
-
def value = super
|
|
1975
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2028
1976
|
sig { returns(T::Boolean) }
|
|
2029
1977
|
def pdf? = false
|
|
2030
1978
|
sig { returns(T::Boolean) }
|
|
@@ -2082,8 +2030,7 @@ module Xberg
|
|
|
2082
2030
|
|
|
2083
2031
|
# @return [BibtexMetadata]
|
|
2084
2032
|
sig { returns(BibtexMetadata) }
|
|
2085
|
-
|
|
2086
|
-
def value = super
|
|
2033
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2087
2034
|
sig { returns(T::Boolean) }
|
|
2088
2035
|
def pdf? = false
|
|
2089
2036
|
sig { returns(T::Boolean) }
|
|
@@ -2141,8 +2088,7 @@ module Xberg
|
|
|
2141
2088
|
|
|
2142
2089
|
# @return [CitationMetadata]
|
|
2143
2090
|
sig { returns(CitationMetadata) }
|
|
2144
|
-
|
|
2145
|
-
def value = super
|
|
2091
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2146
2092
|
sig { returns(T::Boolean) }
|
|
2147
2093
|
def pdf? = false
|
|
2148
2094
|
sig { returns(T::Boolean) }
|
|
@@ -2200,8 +2146,7 @@ module Xberg
|
|
|
2200
2146
|
|
|
2201
2147
|
# @return [FictionBookMetadata]
|
|
2202
2148
|
sig { returns(FictionBookMetadata) }
|
|
2203
|
-
|
|
2204
|
-
def value = super
|
|
2149
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2205
2150
|
sig { returns(T::Boolean) }
|
|
2206
2151
|
def pdf? = false
|
|
2207
2152
|
sig { returns(T::Boolean) }
|
|
@@ -2259,8 +2204,7 @@ module Xberg
|
|
|
2259
2204
|
|
|
2260
2205
|
# @return [DbfMetadata]
|
|
2261
2206
|
sig { returns(DbfMetadata) }
|
|
2262
|
-
|
|
2263
|
-
def value = super
|
|
2207
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2264
2208
|
sig { returns(T::Boolean) }
|
|
2265
2209
|
def pdf? = false
|
|
2266
2210
|
sig { returns(T::Boolean) }
|
|
@@ -2318,8 +2262,7 @@ module Xberg
|
|
|
2318
2262
|
|
|
2319
2263
|
# @return [JatsMetadata]
|
|
2320
2264
|
sig { returns(JatsMetadata) }
|
|
2321
|
-
|
|
2322
|
-
def value = super
|
|
2265
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2323
2266
|
sig { returns(T::Boolean) }
|
|
2324
2267
|
def pdf? = false
|
|
2325
2268
|
sig { returns(T::Boolean) }
|
|
@@ -2377,8 +2320,7 @@ module Xberg
|
|
|
2377
2320
|
|
|
2378
2321
|
# @return [EpubMetadata]
|
|
2379
2322
|
sig { returns(EpubMetadata) }
|
|
2380
|
-
|
|
2381
|
-
def value = super
|
|
2323
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2382
2324
|
sig { returns(T::Boolean) }
|
|
2383
2325
|
def pdf? = false
|
|
2384
2326
|
sig { returns(T::Boolean) }
|
|
@@ -2436,8 +2378,7 @@ module Xberg
|
|
|
2436
2378
|
|
|
2437
2379
|
# @return [PstMetadata]
|
|
2438
2380
|
sig { returns(PstMetadata) }
|
|
2439
|
-
|
|
2440
|
-
def value = super
|
|
2381
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2441
2382
|
sig { returns(T::Boolean) }
|
|
2442
2383
|
def pdf? = false
|
|
2443
2384
|
sig { returns(T::Boolean) }
|
|
@@ -2495,8 +2436,7 @@ module Xberg
|
|
|
2495
2436
|
|
|
2496
2437
|
# @return [AudioMetadata]
|
|
2497
2438
|
sig { returns(AudioMetadata) }
|
|
2498
|
-
|
|
2499
|
-
def value = super
|
|
2439
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2500
2440
|
sig { returns(T::Boolean) }
|
|
2501
2441
|
def pdf? = false
|
|
2502
2442
|
sig { returns(T::Boolean) }
|
|
@@ -2564,8 +2504,7 @@ module Xberg
|
|
|
2564
2504
|
|
|
2565
2505
|
# @return [CodeMetadata]
|
|
2566
2506
|
sig { returns(CodeMetadata) }
|
|
2567
|
-
|
|
2568
|
-
def value = super
|
|
2507
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2569
2508
|
sig { returns(T::Boolean) }
|
|
2570
2509
|
def pdf? = false
|
|
2571
2510
|
sig { returns(T::Boolean) }
|
|
@@ -2665,8 +2604,7 @@ module Xberg
|
|
|
2665
2604
|
|
|
2666
2605
|
# The hostname to match.
|
|
2667
2606
|
sig { returns(String) }
|
|
2668
|
-
|
|
2669
|
-
def value = super
|
|
2607
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2670
2608
|
sig { returns(T::Boolean) }
|
|
2671
2609
|
def exact? = true
|
|
2672
2610
|
sig { returns(T::Boolean) }
|
|
@@ -2687,8 +2625,7 @@ module Xberg
|
|
|
2687
2625
|
|
|
2688
2626
|
# The dot-prefixed suffix to match. A leading dot is optional.
|
|
2689
2627
|
sig { returns(String) }
|
|
2690
|
-
|
|
2691
|
-
def value = super
|
|
2628
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2692
2629
|
sig { returns(T::Boolean) }
|
|
2693
2630
|
def exact? = false
|
|
2694
2631
|
sig { returns(T::Boolean) }
|
|
@@ -2710,8 +2647,7 @@ module Xberg
|
|
|
2710
2647
|
# The CIDR block. Validated when built through [`HostMatcher::cidr`] or
|
|
2711
2648
|
# deserialization.
|
|
2712
2649
|
sig { returns(String) }
|
|
2713
|
-
|
|
2714
|
-
def value = super
|
|
2650
|
+
def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
|
|
2715
2651
|
sig { returns(T::Boolean) }
|
|
2716
2652
|
def exact? = false
|
|
2717
2653
|
sig { returns(T::Boolean) }
|
|
@@ -2836,8 +2772,7 @@ module Xberg
|
|
|
2836
2772
|
|
|
2837
2773
|
# JPEG quality (1–100, default 85).
|
|
2838
2774
|
sig { returns(Integer) }
|
|
2839
|
-
|
|
2840
|
-
def quality = super
|
|
2775
|
+
def quality = Data.instance_method(:to_h).bind_call(self).fetch(:quality)
|
|
2841
2776
|
sig { returns(T::Boolean) }
|
|
2842
2777
|
def native? = false
|
|
2843
2778
|
sig { returns(T::Boolean) }
|
|
@@ -2867,8 +2802,7 @@ module Xberg
|
|
|
2867
2802
|
|
|
2868
2803
|
# WebP quality (1–100, default 80).
|
|
2869
2804
|
sig { returns(Integer) }
|
|
2870
|
-
|
|
2871
|
-
def quality = super
|
|
2805
|
+
def quality = Data.instance_method(:to_h).bind_call(self).fetch(:quality)
|
|
2872
2806
|
sig { returns(T::Boolean) }
|
|
2873
2807
|
def native? = false
|
|
2874
2808
|
sig { returns(T::Boolean) }
|
|
@@ -2901,8 +2835,7 @@ module Xberg
|
|
|
2901
2835
|
|
|
2902
2836
|
# HEIF quality (1–100, default 80).
|
|
2903
2837
|
sig { returns(Integer) }
|
|
2904
|
-
|
|
2905
|
-
def quality = super
|
|
2838
|
+
def quality = Data.instance_method(:to_h).bind_call(self).fetch(:quality)
|
|
2906
2839
|
sig { returns(T::Boolean) }
|
|
2907
2840
|
def native? = false
|
|
2908
2841
|
sig { returns(T::Boolean) }
|
|
@@ -2988,8 +2921,7 @@ module Xberg
|
|
|
2988
2921
|
|
|
2989
2922
|
# Preset name (e.g. "colbert").
|
|
2990
2923
|
sig { returns(String) }
|
|
2991
|
-
|
|
2992
|
-
def name = super
|
|
2924
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
2993
2925
|
sig { returns(T::Boolean) }
|
|
2994
2926
|
def preset? = true
|
|
2995
2927
|
sig { returns(T::Boolean) }
|
|
@@ -3010,21 +2942,17 @@ module Xberg
|
|
|
3010
2942
|
|
|
3011
2943
|
# HuggingFace model repository ID.
|
|
3012
2944
|
sig { returns(String) }
|
|
3013
|
-
|
|
3014
|
-
def model_id = super
|
|
2945
|
+
def model_id = Data.instance_method(:to_h).bind_call(self).fetch(:model_id)
|
|
3015
2946
|
# Path to the ONNX file within the repo. Defaults to `"onnx/model.onnx"`.
|
|
3016
2947
|
sig { returns(T.nilable(String)) }
|
|
3017
|
-
|
|
3018
|
-
def model_file = super
|
|
2948
|
+
def model_file = Data.instance_method(:to_h).bind_call(self).fetch(:model_file)
|
|
3019
2949
|
# Sibling files that must be downloaded alongside `model_file`.
|
|
3020
2950
|
sig { returns(T::Array[String]) }
|
|
3021
|
-
|
|
3022
|
-
def additional_files = super
|
|
2951
|
+
def additional_files = Data.instance_method(:to_h).bind_call(self).fetch(:additional_files)
|
|
3023
2952
|
# Maximum token sequence length. Stored as `i64` for FFI compatibility;
|
|
3024
2953
|
# negative values are clamped to the model default.
|
|
3025
2954
|
sig { returns(T.nilable(Integer)) }
|
|
3026
|
-
|
|
3027
|
-
def max_length = super
|
|
2955
|
+
def max_length = Data.instance_method(:to_h).bind_call(self).fetch(:max_length)
|
|
3028
2956
|
sig { returns(T::Boolean) }
|
|
3029
2957
|
def preset? = false
|
|
3030
2958
|
sig { returns(T::Boolean) }
|
|
@@ -3050,8 +2978,7 @@ module Xberg
|
|
|
3050
2978
|
|
|
3051
2979
|
# Name the backend was registered under.
|
|
3052
2980
|
sig { returns(String) }
|
|
3053
|
-
|
|
3054
|
-
def name = super
|
|
2981
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
3055
2982
|
sig { returns(T::Boolean) }
|
|
3056
2983
|
def preset? = false
|
|
3057
2984
|
sig { returns(T::Boolean) }
|
|
@@ -3106,12 +3033,10 @@ module Xberg
|
|
|
3106
3033
|
|
|
3107
3034
|
# Actual size in bytes.
|
|
3108
3035
|
sig { returns(Integer) }
|
|
3109
|
-
|
|
3110
|
-
def size_bytes = super
|
|
3036
|
+
def size_bytes = Data.instance_method(:to_h).bind_call(self).fetch(:size_bytes)
|
|
3111
3037
|
# Threshold in bytes.
|
|
3112
3038
|
sig { returns(Integer) }
|
|
3113
|
-
|
|
3114
|
-
def threshold_bytes = super
|
|
3039
|
+
def threshold_bytes = Data.instance_method(:to_h).bind_call(self).fetch(:threshold_bytes)
|
|
3115
3040
|
sig { returns(T::Boolean) }
|
|
3116
3041
|
def small_file? = true
|
|
3117
3042
|
sig { returns(T::Boolean) }
|
|
@@ -3141,12 +3066,10 @@ module Xberg
|
|
|
3141
3066
|
|
|
3142
3067
|
# Actual page count.
|
|
3143
3068
|
sig { returns(Integer) }
|
|
3144
|
-
|
|
3145
|
-
def page_count = super
|
|
3069
|
+
def page_count = Data.instance_method(:to_h).bind_call(self).fetch(:page_count)
|
|
3146
3070
|
# Threshold page count.
|
|
3147
3071
|
sig { returns(Integer) }
|
|
3148
|
-
|
|
3149
|
-
def threshold = super
|
|
3072
|
+
def threshold = Data.instance_method(:to_h).bind_call(self).fetch(:threshold)
|
|
3150
3073
|
sig { returns(T::Boolean) }
|
|
3151
3074
|
def small_file? = false
|
|
3152
3075
|
sig { returns(T::Boolean) }
|
|
@@ -3173,12 +3096,10 @@ module Xberg
|
|
|
3173
3096
|
|
|
3174
3097
|
# Percentage of pages with text (0.0 to 1.0).
|
|
3175
3098
|
sig { returns(Float) }
|
|
3176
|
-
|
|
3177
|
-
def text_coverage = super
|
|
3099
|
+
def text_coverage = Data.instance_method(:to_h).bind_call(self).fetch(:text_coverage)
|
|
3178
3100
|
# Average characters per page.
|
|
3179
3101
|
sig { returns(Integer) }
|
|
3180
|
-
|
|
3181
|
-
def avg_chars_per_page = super
|
|
3102
|
+
def avg_chars_per_page = Data.instance_method(:to_h).bind_call(self).fetch(:avg_chars_per_page)
|
|
3182
3103
|
sig { returns(T::Boolean) }
|
|
3183
3104
|
def small_file? = false
|
|
3184
3105
|
sig { returns(T::Boolean) }
|
|
@@ -3208,8 +3129,7 @@ module Xberg
|
|
|
3208
3129
|
|
|
3209
3130
|
# MIME type of the document.
|
|
3210
3131
|
sig { returns(String) }
|
|
3211
|
-
|
|
3212
|
-
def mime_type = super
|
|
3132
|
+
def mime_type = Data.instance_method(:to_h).bind_call(self).fetch(:mime_type)
|
|
3213
3133
|
sig { returns(T::Boolean) }
|
|
3214
3134
|
def small_file? = false
|
|
3215
3135
|
sig { returns(T::Boolean) }
|
|
@@ -3351,8 +3271,7 @@ module Xberg
|
|
|
3351
3271
|
|
|
3352
3272
|
# The title text content.
|
|
3353
3273
|
sig { returns(String) }
|
|
3354
|
-
|
|
3355
|
-
def text = super
|
|
3274
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
3356
3275
|
sig { returns(T::Boolean) }
|
|
3357
3276
|
def title? = true
|
|
3358
3277
|
sig { returns(T::Boolean) }
|
|
@@ -3409,12 +3328,10 @@ module Xberg
|
|
|
3409
3328
|
|
|
3410
3329
|
# Heading depth (1 = h1, 2 = h2, …, 6 = h6).
|
|
3411
3330
|
sig { returns(Integer) }
|
|
3412
|
-
|
|
3413
|
-
def level = super
|
|
3331
|
+
def level = Data.instance_method(:to_h).bind_call(self).fetch(:level)
|
|
3414
3332
|
# The heading text content.
|
|
3415
3333
|
sig { returns(String) }
|
|
3416
|
-
|
|
3417
|
-
def text = super
|
|
3334
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
3418
3335
|
sig { returns(T::Boolean) }
|
|
3419
3336
|
def title? = false
|
|
3420
3337
|
sig { returns(T::Boolean) }
|
|
@@ -3471,8 +3388,7 @@ module Xberg
|
|
|
3471
3388
|
|
|
3472
3389
|
# The paragraph text content.
|
|
3473
3390
|
sig { returns(String) }
|
|
3474
|
-
|
|
3475
|
-
def text = super
|
|
3391
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
3476
3392
|
sig { returns(T::Boolean) }
|
|
3477
3393
|
def title? = false
|
|
3478
3394
|
sig { returns(T::Boolean) }
|
|
@@ -3529,8 +3445,7 @@ module Xberg
|
|
|
3529
3445
|
|
|
3530
3446
|
# `true` for ordered (numbered) lists; `false` for unordered (bullet) lists.
|
|
3531
3447
|
sig { returns(T::Boolean) }
|
|
3532
|
-
|
|
3533
|
-
def ordered = super
|
|
3448
|
+
def ordered = Data.instance_method(:to_h).bind_call(self).fetch(:ordered)
|
|
3534
3449
|
sig { returns(T::Boolean) }
|
|
3535
3450
|
def title? = false
|
|
3536
3451
|
sig { returns(T::Boolean) }
|
|
@@ -3587,8 +3502,7 @@ module Xberg
|
|
|
3587
3502
|
|
|
3588
3503
|
# The list item text content.
|
|
3589
3504
|
sig { returns(String) }
|
|
3590
|
-
|
|
3591
|
-
def text = super
|
|
3505
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
3592
3506
|
sig { returns(T::Boolean) }
|
|
3593
3507
|
def title? = false
|
|
3594
3508
|
sig { returns(T::Boolean) }
|
|
@@ -3645,8 +3559,7 @@ module Xberg
|
|
|
3645
3559
|
|
|
3646
3560
|
# Structured grid of table cells.
|
|
3647
3561
|
sig { returns(TableGrid) }
|
|
3648
|
-
|
|
3649
|
-
def grid = super
|
|
3562
|
+
def grid = Data.instance_method(:to_h).bind_call(self).fetch(:grid)
|
|
3650
3563
|
sig { returns(T::Boolean) }
|
|
3651
3564
|
def title? = false
|
|
3652
3565
|
sig { returns(T::Boolean) }
|
|
@@ -3703,16 +3616,13 @@ module Xberg
|
|
|
3703
3616
|
|
|
3704
3617
|
# Optional alt text or caption describing the image.
|
|
3705
3618
|
sig { returns(T.nilable(String)) }
|
|
3706
|
-
|
|
3707
|
-
def description = super
|
|
3619
|
+
def description = Data.instance_method(:to_h).bind_call(self).fetch(:description)
|
|
3708
3620
|
# Index into the parent `ExtractedDocument::images` list.
|
|
3709
3621
|
sig { returns(T.nilable(Integer)) }
|
|
3710
|
-
|
|
3711
|
-
def image_index = super
|
|
3622
|
+
def image_index = Data.instance_method(:to_h).bind_call(self).fetch(:image_index)
|
|
3712
3623
|
# Source URL or path of the image (from `<img src="...">` or ``).
|
|
3713
3624
|
sig { returns(T.nilable(String)) }
|
|
3714
|
-
|
|
3715
|
-
def src = super
|
|
3625
|
+
def src = Data.instance_method(:to_h).bind_call(self).fetch(:src)
|
|
3716
3626
|
sig { returns(T::Boolean) }
|
|
3717
3627
|
def title? = false
|
|
3718
3628
|
sig { returns(T::Boolean) }
|
|
@@ -3773,12 +3683,10 @@ module Xberg
|
|
|
3773
3683
|
|
|
3774
3684
|
# The source code text content.
|
|
3775
3685
|
sig { returns(String) }
|
|
3776
|
-
|
|
3777
|
-
def text = super
|
|
3686
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
3778
3687
|
# Programming language identifier (e.g. `"rust"`, `"python"`).
|
|
3779
3688
|
sig { returns(T.nilable(String)) }
|
|
3780
|
-
|
|
3781
|
-
def language = super
|
|
3689
|
+
def language = Data.instance_method(:to_h).bind_call(self).fetch(:language)
|
|
3782
3690
|
sig { returns(T::Boolean) }
|
|
3783
3691
|
def title? = false
|
|
3784
3692
|
sig { returns(T::Boolean) }
|
|
@@ -3889,8 +3797,7 @@ module Xberg
|
|
|
3889
3797
|
|
|
3890
3798
|
# The formula source text (LaTeX or plain mathematical notation).
|
|
3891
3799
|
sig { returns(String) }
|
|
3892
|
-
|
|
3893
|
-
def text = super
|
|
3800
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
3894
3801
|
sig { returns(T::Boolean) }
|
|
3895
3802
|
def title? = false
|
|
3896
3803
|
sig { returns(T::Boolean) }
|
|
@@ -3947,8 +3854,7 @@ module Xberg
|
|
|
3947
3854
|
|
|
3948
3855
|
# The footnote body text.
|
|
3949
3856
|
sig { returns(String) }
|
|
3950
|
-
|
|
3951
|
-
def text = super
|
|
3857
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
3952
3858
|
sig { returns(T::Boolean) }
|
|
3953
3859
|
def title? = false
|
|
3954
3860
|
sig { returns(T::Boolean) }
|
|
@@ -4009,8 +3915,7 @@ module Xberg
|
|
|
4009
3915
|
|
|
4010
3916
|
# The comment body text.
|
|
4011
3917
|
sig { returns(String) }
|
|
4012
|
-
|
|
4013
|
-
def text = super
|
|
3918
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
4014
3919
|
sig { returns(T::Boolean) }
|
|
4015
3920
|
def title? = false
|
|
4016
3921
|
sig { returns(T::Boolean) }
|
|
@@ -4070,16 +3975,13 @@ module Xberg
|
|
|
4070
3975
|
|
|
4071
3976
|
# Optional display label for the group (e.g. section name).
|
|
4072
3977
|
sig { returns(T.nilable(String)) }
|
|
4073
|
-
|
|
4074
|
-
def label = super
|
|
3978
|
+
def label = Data.instance_method(:to_h).bind_call(self).fetch(:label)
|
|
4075
3979
|
# Heading level of the section heading that opened this group (1-6).
|
|
4076
3980
|
sig { returns(T.nilable(Integer)) }
|
|
4077
|
-
|
|
4078
|
-
def heading_level = super
|
|
3981
|
+
def heading_level = Data.instance_method(:to_h).bind_call(self).fetch(:heading_level)
|
|
4079
3982
|
# Text of the section heading that opened this group.
|
|
4080
3983
|
sig { returns(T.nilable(String)) }
|
|
4081
|
-
|
|
4082
|
-
def heading_text = super
|
|
3984
|
+
def heading_text = Data.instance_method(:to_h).bind_call(self).fetch(:heading_text)
|
|
4083
3985
|
sig { returns(T::Boolean) }
|
|
4084
3986
|
def title? = false
|
|
4085
3987
|
sig { returns(T::Boolean) }
|
|
@@ -4194,12 +4096,10 @@ module Xberg
|
|
|
4194
4096
|
|
|
4195
4097
|
# 1-indexed slide number.
|
|
4196
4098
|
sig { returns(Integer) }
|
|
4197
|
-
|
|
4198
|
-
def number = super
|
|
4099
|
+
def number = Data.instance_method(:to_h).bind_call(self).fetch(:number)
|
|
4199
4100
|
# Slide title text, if present.
|
|
4200
4101
|
sig { returns(T.nilable(String)) }
|
|
4201
|
-
|
|
4202
|
-
def title = super
|
|
4102
|
+
def title = Data.instance_method(:to_h).bind_call(self).fetch(:title)
|
|
4203
4103
|
sig { returns(T::Boolean) }
|
|
4204
4104
|
def title? = false
|
|
4205
4105
|
sig { returns(T::Boolean) }
|
|
@@ -4310,12 +4210,10 @@ module Xberg
|
|
|
4310
4210
|
|
|
4311
4211
|
# The term being defined.
|
|
4312
4212
|
sig { returns(String) }
|
|
4313
|
-
|
|
4314
|
-
def term = super
|
|
4213
|
+
def term = Data.instance_method(:to_h).bind_call(self).fetch(:term)
|
|
4315
4214
|
# The definition or description of the term.
|
|
4316
4215
|
sig { returns(String) }
|
|
4317
|
-
|
|
4318
|
-
def definition = super
|
|
4216
|
+
def definition = Data.instance_method(:to_h).bind_call(self).fetch(:definition)
|
|
4319
4217
|
sig { returns(T::Boolean) }
|
|
4320
4218
|
def title? = false
|
|
4321
4219
|
sig { returns(T::Boolean) }
|
|
@@ -4372,12 +4270,10 @@ module Xberg
|
|
|
4372
4270
|
|
|
4373
4271
|
# Citation key (e.g. BibTeX key or reference ID).
|
|
4374
4272
|
sig { returns(String) }
|
|
4375
|
-
|
|
4376
|
-
def key = super
|
|
4273
|
+
def key = Data.instance_method(:to_h).bind_call(self).fetch(:key)
|
|
4377
4274
|
# Formatted citation text as it appears in the document.
|
|
4378
4275
|
sig { returns(String) }
|
|
4379
|
-
|
|
4380
|
-
def text = super
|
|
4276
|
+
def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
|
|
4381
4277
|
sig { returns(T::Boolean) }
|
|
4382
4278
|
def title? = false
|
|
4383
4279
|
sig { returns(T::Boolean) }
|
|
@@ -4436,12 +4332,10 @@ module Xberg
|
|
|
4436
4332
|
|
|
4437
4333
|
# Kind of admonition (e.g. "note", "warning", "tip", "danger").
|
|
4438
4334
|
sig { returns(String) }
|
|
4439
|
-
|
|
4440
|
-
def kind = super
|
|
4335
|
+
def kind = Data.instance_method(:to_h).bind_call(self).fetch(:kind)
|
|
4441
4336
|
# Optional explicit title overriding the default kind label.
|
|
4442
4337
|
sig { returns(T.nilable(String)) }
|
|
4443
|
-
|
|
4444
|
-
def title = super
|
|
4338
|
+
def title = Data.instance_method(:to_h).bind_call(self).fetch(:title)
|
|
4445
4339
|
sig { returns(T::Boolean) }
|
|
4446
4340
|
def title? = false
|
|
4447
4341
|
sig { returns(T::Boolean) }
|
|
@@ -4501,12 +4395,10 @@ module Xberg
|
|
|
4501
4395
|
|
|
4502
4396
|
# Source format identifier (e.g. "html", "latex", "jsx").
|
|
4503
4397
|
sig { returns(String) }
|
|
4504
|
-
|
|
4505
|
-
def format = super
|
|
4398
|
+
def format = Data.instance_method(:to_h).bind_call(self).fetch(:format)
|
|
4506
4399
|
# Verbatim source content in the specified format.
|
|
4507
4400
|
sig { returns(String) }
|
|
4508
|
-
|
|
4509
|
-
def content = super
|
|
4401
|
+
def content = Data.instance_method(:to_h).bind_call(self).fetch(:content)
|
|
4510
4402
|
sig { returns(T::Boolean) }
|
|
4511
4403
|
def title? = false
|
|
4512
4404
|
sig { returns(T::Boolean) }
|
|
@@ -4563,8 +4455,7 @@ module Xberg
|
|
|
4563
4455
|
|
|
4564
4456
|
# Key-value pairs extracted from the metadata block.
|
|
4565
4457
|
sig { returns(T::Array[KeyValueAttribute]) }
|
|
4566
|
-
|
|
4567
|
-
def entries = super
|
|
4458
|
+
def entries = Data.instance_method(:to_h).bind_call(self).fetch(:entries)
|
|
4568
4459
|
sig { returns(T::Boolean) }
|
|
4569
4460
|
def title? = false
|
|
4570
4461
|
sig { returns(T::Boolean) }
|
|
@@ -4650,20 +4541,16 @@ module Xberg
|
|
|
4650
4541
|
|
|
4651
4542
|
# Left x-coordinate in pixels
|
|
4652
4543
|
sig { returns(Integer) }
|
|
4653
|
-
|
|
4654
|
-
def left = super
|
|
4544
|
+
def left = Data.instance_method(:to_h).bind_call(self).fetch(:left)
|
|
4655
4545
|
# Top y-coordinate in pixels
|
|
4656
4546
|
sig { returns(Integer) }
|
|
4657
|
-
|
|
4658
|
-
def top = super
|
|
4547
|
+
def top = Data.instance_method(:to_h).bind_call(self).fetch(:top)
|
|
4659
4548
|
# Width in pixels
|
|
4660
4549
|
sig { returns(Integer) }
|
|
4661
|
-
|
|
4662
|
-
def width = super
|
|
4550
|
+
def width = Data.instance_method(:to_h).bind_call(self).fetch(:width)
|
|
4663
4551
|
# Height in pixels
|
|
4664
4552
|
sig { returns(Integer) }
|
|
4665
|
-
|
|
4666
|
-
def height = super
|
|
4553
|
+
def height = Data.instance_method(:to_h).bind_call(self).fetch(:height)
|
|
4667
4554
|
sig { returns(T::Boolean) }
|
|
4668
4555
|
def rectangle? = true
|
|
4669
4556
|
sig { returns(T::Boolean) }
|
|
@@ -4690,8 +4577,7 @@ module Xberg
|
|
|
4690
4577
|
|
|
4691
4578
|
# Exactly four corner points in clockwise order.
|
|
4692
4579
|
sig { returns(T::Array[OcrPoint]) }
|
|
4693
|
-
|
|
4694
|
-
def points = super
|
|
4580
|
+
def points = Data.instance_method(:to_h).bind_call(self).fetch(:points)
|
|
4695
4581
|
sig { returns(T::Boolean) }
|
|
4696
4582
|
def rectangle? = false
|
|
4697
4583
|
sig { returns(T::Boolean) }
|
|
@@ -4766,8 +4652,7 @@ module Xberg
|
|
|
4766
4652
|
# non-finite or out-of-range values. See [`DEFAULT_SCANNED_MIN_CONFIDENCE`]
|
|
4767
4653
|
# for how to pick one.
|
|
4768
4654
|
sig { returns(Float) }
|
|
4769
|
-
|
|
4770
|
-
def min_confidence = super
|
|
4655
|
+
def min_confidence = Data.instance_method(:to_h).bind_call(self).fetch(:min_confidence)
|
|
4771
4656
|
sig { returns(T::Boolean) }
|
|
4772
4657
|
def auto? = false
|
|
4773
4658
|
sig { returns(T::Boolean) }
|
|
@@ -4816,8 +4701,7 @@ module Xberg
|
|
|
4816
4701
|
|
|
4817
4702
|
# Preset name (e.g. "balanced", "fast", "quality", "multilingual").
|
|
4818
4703
|
sig { returns(String) }
|
|
4819
|
-
|
|
4820
|
-
def name = super
|
|
4704
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
4821
4705
|
sig { returns(T::Boolean) }
|
|
4822
4706
|
def preset? = true
|
|
4823
4707
|
sig { returns(T::Boolean) }
|
|
@@ -4840,39 +4724,34 @@ module Xberg
|
|
|
4840
4724
|
|
|
4841
4725
|
# HuggingFace model repository ID (e.g. "cross-encoder/ms-marco-MiniLM-L6-v2").
|
|
4842
4726
|
sig { returns(String) }
|
|
4843
|
-
|
|
4844
|
-
def model_id = super
|
|
4727
|
+
def model_id = Data.instance_method(:to_h).bind_call(self).fetch(:model_id)
|
|
4845
4728
|
# Path to the ONNX file within the repo.
|
|
4846
4729
|
#
|
|
4847
4730
|
# Defaults to `"onnx/model.onnx"` when `None`. Override for repos that
|
|
4848
4731
|
# place the weight elsewhere (e.g. `"model.onnx"` for `rozgo/bge-reranker-v2-m3`,
|
|
4849
4732
|
# `"onnx/model_quantized.onnx"` for int8 variants).
|
|
4850
4733
|
sig { returns(T.nilable(String)) }
|
|
4851
|
-
|
|
4852
|
-
def model_file = super
|
|
4734
|
+
def model_file = Data.instance_method(:to_h).bind_call(self).fetch(:model_file)
|
|
4853
4735
|
# Sibling files that must be downloaded alongside `model_file`.
|
|
4854
4736
|
#
|
|
4855
4737
|
# Empty for most repos. Set to e.g. `vec!["model.onnx.data".into()]` for
|
|
4856
4738
|
# `rozgo/bge-reranker-v2-m3`, which ships the weights in a co-located
|
|
4857
4739
|
# `model.onnx.data` blob.
|
|
4858
4740
|
sig { returns(T::Array[String]) }
|
|
4859
|
-
|
|
4860
|
-
def additional_files = super
|
|
4741
|
+
def additional_files = Data.instance_method(:to_h).bind_call(self).fetch(:additional_files)
|
|
4861
4742
|
# Maximum token sequence length for the tokenizer.
|
|
4862
4743
|
#
|
|
4863
4744
|
# Stored as `i64` for FFI compatibility across language bindings.
|
|
4864
4745
|
# Must be positive; a non-positive value is rejected with a validation error.
|
|
4865
4746
|
sig { returns(T.nilable(Integer)) }
|
|
4866
|
-
|
|
4867
|
-
def max_length = super
|
|
4747
|
+
def max_length = Data.instance_method(:to_h).bind_call(self).fetch(:max_length)
|
|
4868
4748
|
# Scoring head for the ONNX model's output tensor.
|
|
4869
4749
|
#
|
|
4870
4750
|
# Defaults to [`RerankerHead::CrossEncoder`]. Set to
|
|
4871
4751
|
# [`RerankerHead::Qwen3Generative`] for Qwen3 generative-reranker
|
|
4872
4752
|
# checkpoints (e.g. `Qwen/Qwen3-Reranker-0.6B`).
|
|
4873
4753
|
sig { returns(RerankerHead) }
|
|
4874
|
-
|
|
4875
|
-
def head = super
|
|
4754
|
+
def head = Data.instance_method(:to_h).bind_call(self).fetch(:head)
|
|
4876
4755
|
sig { returns(T::Boolean) }
|
|
4877
4756
|
def preset? = false
|
|
4878
4757
|
sig { returns(T::Boolean) }
|
|
@@ -4907,8 +4786,7 @@ module Xberg
|
|
|
4907
4786
|
# Boxed for the same reason as `EmbeddingModelType::Llm` -- kept in step so the two
|
|
4908
4787
|
# parallel enums present one shape to the generated bindings.
|
|
4909
4788
|
sig { returns(LlmConfig) }
|
|
4910
|
-
|
|
4911
|
-
def llm = super
|
|
4789
|
+
def llm = Data.instance_method(:to_h).bind_call(self).fetch(:llm)
|
|
4912
4790
|
sig { returns(T::Boolean) }
|
|
4913
4791
|
def preset? = false
|
|
4914
4792
|
sig { returns(T::Boolean) }
|
|
@@ -4943,8 +4821,7 @@ module Xberg
|
|
|
4943
4821
|
|
|
4944
4822
|
# Name the backend was registered under via `register_reranker_backend`.
|
|
4945
4823
|
sig { returns(String) }
|
|
4946
|
-
|
|
4947
|
-
def name = super
|
|
4824
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
4948
4825
|
sig { returns(T::Boolean) }
|
|
4949
4826
|
def preset? = false
|
|
4950
4827
|
sig { returns(T::Boolean) }
|
|
@@ -4999,8 +4876,7 @@ module Xberg
|
|
|
4999
4876
|
|
|
5000
4877
|
# Zero-based index of the paragraph in document order.
|
|
5001
4878
|
sig { returns(Integer) }
|
|
5002
|
-
|
|
5003
|
-
def index = super
|
|
4879
|
+
def index = Data.instance_method(:to_h).bind_call(self).fetch(:index)
|
|
5004
4880
|
sig { returns(T::Boolean) }
|
|
5005
4881
|
def paragraph? = true
|
|
5006
4882
|
sig { returns(T::Boolean) }
|
|
@@ -5025,16 +4901,13 @@ module Xberg
|
|
|
5025
4901
|
|
|
5026
4902
|
# Zero-based row index within the table.
|
|
5027
4903
|
sig { returns(Integer) }
|
|
5028
|
-
|
|
5029
|
-
def row = super
|
|
4904
|
+
def row = Data.instance_method(:to_h).bind_call(self).fetch(:row)
|
|
5030
4905
|
# Zero-based column index within the table.
|
|
5031
4906
|
sig { returns(Integer) }
|
|
5032
|
-
|
|
5033
|
-
def col = super
|
|
4907
|
+
def col = Data.instance_method(:to_h).bind_call(self).fetch(:col)
|
|
5034
4908
|
# Zero-based index of the table in document order.
|
|
5035
4909
|
sig { returns(Integer) }
|
|
5036
|
-
|
|
5037
|
-
def table_index = super
|
|
4910
|
+
def table_index = Data.instance_method(:to_h).bind_call(self).fetch(:table_index)
|
|
5038
4911
|
sig { returns(T::Boolean) }
|
|
5039
4912
|
def paragraph? = false
|
|
5040
4913
|
sig { returns(T::Boolean) }
|
|
@@ -5063,8 +4936,7 @@ module Xberg
|
|
|
5063
4936
|
|
|
5064
4937
|
# Zero-based page index.
|
|
5065
4938
|
sig { returns(Integer) }
|
|
5066
|
-
|
|
5067
|
-
def index = super
|
|
4939
|
+
def index = Data.instance_method(:to_h).bind_call(self).fetch(:index)
|
|
5068
4940
|
sig { returns(T::Boolean) }
|
|
5069
4941
|
def paragraph? = false
|
|
5070
4942
|
sig { returns(T::Boolean) }
|
|
@@ -5089,8 +4961,7 @@ module Xberg
|
|
|
5089
4961
|
|
|
5090
4962
|
# Zero-based slide index.
|
|
5091
4963
|
sig { returns(Integer) }
|
|
5092
|
-
|
|
5093
|
-
def index = super
|
|
4964
|
+
def index = Data.instance_method(:to_h).bind_call(self).fetch(:index)
|
|
5094
4965
|
sig { returns(T::Boolean) }
|
|
5095
4966
|
def paragraph? = false
|
|
5096
4967
|
sig { returns(T::Boolean) }
|
|
@@ -5115,12 +4986,10 @@ module Xberg
|
|
|
5115
4986
|
|
|
5116
4987
|
# Zero-based sheet index.
|
|
5117
4988
|
sig { returns(Integer) }
|
|
5118
|
-
|
|
5119
|
-
def index = super
|
|
4989
|
+
def index = Data.instance_method(:to_h).bind_call(self).fetch(:index)
|
|
5120
4990
|
# Sheet display name when available.
|
|
5121
4991
|
sig { returns(T.nilable(String)) }
|
|
5122
|
-
|
|
5123
|
-
def name = super
|
|
4992
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
5124
4993
|
sig { returns(T::Boolean) }
|
|
5125
4994
|
def paragraph? = false
|
|
5126
4995
|
sig { returns(T::Boolean) }
|
|
@@ -5173,8 +5042,7 @@ module Xberg
|
|
|
5173
5042
|
|
|
5174
5043
|
# Preset name (e.g. "splade").
|
|
5175
5044
|
sig { returns(String) }
|
|
5176
|
-
|
|
5177
|
-
def name = super
|
|
5045
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
5178
5046
|
sig { returns(T::Boolean) }
|
|
5179
5047
|
def preset? = true
|
|
5180
5048
|
sig { returns(T::Boolean) }
|
|
@@ -5195,21 +5063,17 @@ module Xberg
|
|
|
5195
5063
|
|
|
5196
5064
|
# HuggingFace model repository ID.
|
|
5197
5065
|
sig { returns(String) }
|
|
5198
|
-
|
|
5199
|
-
def model_id = super
|
|
5066
|
+
def model_id = Data.instance_method(:to_h).bind_call(self).fetch(:model_id)
|
|
5200
5067
|
# Path to the ONNX file within the repo. Defaults to `"onnx/model.onnx"`.
|
|
5201
5068
|
sig { returns(T.nilable(String)) }
|
|
5202
|
-
|
|
5203
|
-
def model_file = super
|
|
5069
|
+
def model_file = Data.instance_method(:to_h).bind_call(self).fetch(:model_file)
|
|
5204
5070
|
# Sibling files that must be downloaded alongside `model_file`.
|
|
5205
5071
|
sig { returns(T::Array[String]) }
|
|
5206
|
-
|
|
5207
|
-
def additional_files = super
|
|
5072
|
+
def additional_files = Data.instance_method(:to_h).bind_call(self).fetch(:additional_files)
|
|
5208
5073
|
# Maximum token sequence length. Stored as `i64` for FFI compatibility;
|
|
5209
5074
|
# negative values are clamped to the model default.
|
|
5210
5075
|
sig { returns(T.nilable(Integer)) }
|
|
5211
|
-
|
|
5212
|
-
def max_length = super
|
|
5076
|
+
def max_length = Data.instance_method(:to_h).bind_call(self).fetch(:max_length)
|
|
5213
5077
|
sig { returns(T::Boolean) }
|
|
5214
5078
|
def preset? = false
|
|
5215
5079
|
sig { returns(T::Boolean) }
|
|
@@ -5235,8 +5099,7 @@ module Xberg
|
|
|
5235
5099
|
|
|
5236
5100
|
# Name the backend was registered under.
|
|
5237
5101
|
sig { returns(String) }
|
|
5238
|
-
|
|
5239
|
-
def name = super
|
|
5102
|
+
def name = Data.instance_method(:to_h).bind_call(self).fetch(:name)
|
|
5240
5103
|
sig { returns(T::Boolean) }
|
|
5241
5104
|
def preset? = false
|
|
5242
5105
|
sig { returns(T::Boolean) }
|
|
@@ -5334,8 +5197,7 @@ module Xberg
|
|
|
5334
5197
|
# this are retried with VLM -- see this variant's doc comment for what "scoring"
|
|
5335
5198
|
# means here.
|
|
5336
5199
|
sig { returns(Float) }
|
|
5337
|
-
|
|
5338
|
-
def quality_threshold = super
|
|
5200
|
+
def quality_threshold = Data.instance_method(:to_h).bind_call(self).fetch(:quality_threshold)
|
|
5339
5201
|
sig { returns(T::Boolean) }
|
|
5340
5202
|
def disabled? = false
|
|
5341
5203
|
sig { returns(T::Boolean) }
|