ebaml 0.2.2__tar.gz → 0.2.4__tar.gz

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.
Files changed (163) hide show
  1. {ebaml-0.2.2 → ebaml-0.2.4}/PKG-INFO +3 -3
  2. {ebaml-0.2.2 → ebaml-0.2.4}/README.md +2 -2
  3. {ebaml-0.2.2 → ebaml-0.2.4}/pyproject.toml +1 -2
  4. {ebaml-0.2.2 → ebaml-0.2.4}/pyproject.toml.orig +2 -5
  5. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/.baml-generator-output.json +5 -5
  6. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/__init__.py +85 -4
  7. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/__init__.pyi +78 -6
  8. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/_baml_sources.py +5 -4
  9. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/_inlinedbaml.py +1 -1
  10. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/_typemap.py +2 -0
  11. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/graphs/ebm_graph.py +12 -9
  12. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/llm/options.py +2 -2
  13. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/local/fact_text.py +4 -2
  14. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/local/facts.py +45 -4
  15. {ebaml-0.2.2 → ebaml-0.2.4}/LICENSE +0 -0
  16. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/.baml-generator-output-root +0 -0
  17. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/.gitignore +0 -0
  18. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/_function_registry.py +0 -0
  19. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/_invocation_types.py +0 -0
  20. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/_invocation_types.pyi +0 -0
  21. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/__init__.py +0 -0
  22. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/__init__.pyi +0 -0
  23. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/clients/__init__.py +0 -0
  24. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/clients/__init__.pyi +0 -0
  25. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/content/__init__.py +0 -0
  26. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/content/__init__.pyi +0 -0
  27. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/errors/__init__.py +0 -0
  28. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/errors/__init__.pyi +0 -0
  29. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/events/__init__.py +0 -0
  30. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/events/__init__.pyi +0 -0
  31. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/internal/__init__.py +0 -0
  32. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/internal/__init__.pyi +0 -0
  33. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/mcp/__init__.py +0 -0
  34. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/mcp/__init__.pyi +0 -0
  35. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/stream/__init__.py +0 -0
  36. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/stream/__init__.pyi +0 -0
  37. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/tools/__init__.py +0 -0
  38. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/tools/__init__.pyi +0 -0
  39. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/wire/__init__.py +0 -0
  40. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/ai/wire/__init__.pyi +0 -0
  41. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/__init__.py +0 -0
  42. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/__init__.pyi +0 -0
  43. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/crypto/__init__.py +0 -0
  44. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/crypto/__init__.pyi +0 -0
  45. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/csv/__init__.py +0 -0
  46. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/csv/__init__.pyi +0 -0
  47. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/env/__init__.py +0 -0
  48. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/env/__init__.pyi +0 -0
  49. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/errors/__init__.py +0 -0
  50. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/errors/__init__.pyi +0 -0
  51. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/fs/__init__.py +0 -0
  52. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/fs/__init__.pyi +0 -0
  53. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/future/__init__.py +0 -0
  54. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/future/__init__.pyi +0 -0
  55. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/glob/__init__.py +0 -0
  56. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/glob/__init__.pyi +0 -0
  57. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/hash/__init__.py +0 -0
  58. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/hash/__init__.pyi +0 -0
  59. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/host/__init__.py +0 -0
  60. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/host/__init__.pyi +0 -0
  61. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/http/__init__.py +0 -0
  62. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/http/__init__.pyi +0 -0
  63. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/io/__init__.py +0 -0
  64. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/io/__init__.pyi +0 -0
  65. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/iter/__init__.py +0 -0
  66. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/iter/__init__.pyi +0 -0
  67. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/json/__init__.py +0 -0
  68. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/json/__init__.pyi +0 -0
  69. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/media/__init__.py +0 -0
  70. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/media/__init__.pyi +0 -0
  71. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/net/__init__.py +0 -0
  72. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/net/__init__.pyi +0 -0
  73. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/ops/__init__.py +0 -0
  74. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/ops/__init__.pyi +0 -0
  75. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/panics/__init__.py +0 -0
  76. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/panics/__init__.pyi +0 -0
  77. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/random/__init__.py +0 -0
  78. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/random/__init__.pyi +0 -0
  79. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/regex/__init__.py +0 -0
  80. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/regex/__init__.pyi +0 -0
  81. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/sap/__init__.py +0 -0
  82. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/sap/__init__.pyi +0 -0
  83. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/spawn/__init__.py +0 -0
  84. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/spawn/__init__.pyi +0 -0
  85. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/sys/__init__.py +0 -0
  86. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/sys/__init__.pyi +0 -0
  87. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/time/__init__.py +0 -0
  88. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/time/__init__.pyi +0 -0
  89. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/toml/__init__.py +0 -0
  90. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/toml/__init__.pyi +0 -0
  91. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/ws/__init__.py +0 -0
  92. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/ws/__init__.pyi +0 -0
  93. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/yaml/__init__.py +0 -0
  94. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/baml/yaml/__init__.pyi +0 -0
  95. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/experimental/__init__.py +0 -0
  96. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/experimental/__init__.pyi +0 -0
  97. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/py.typed +0 -0
  98. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/__init__.py +0 -0
  99. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/__init__.pyi +0 -0
  100. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/class_/__init__.py +0 -0
  101. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/class_/__init__.pyi +0 -0
  102. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/enum/__init__.py +0 -0
  103. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/enum/__init__.pyi +0 -0
  104. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/errors/__init__.py +0 -0
  105. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/errors/__init__.pyi +0 -0
  106. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/function/__init__.py +0 -0
  107. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/function/__init__.pyi +0 -0
  108. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/interface/__init__.py +0 -0
  109. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/reflect/interface/__init__.pyi +0 -0
  110. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/__init__.py +0 -0
  111. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/__init__.pyi +0 -0
  112. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/anthropic/__init__.py +0 -0
  113. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/anthropic/__init__.pyi +0 -0
  114. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/anthropic/internal/__init__.py +0 -0
  115. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/anthropic/internal/__init__.pyi +0 -0
  116. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/assert_/__init__.py +0 -0
  117. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/assert_/__init__.pyi +0 -0
  118. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/aws/__init__.py +0 -0
  119. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/aws/__init__.pyi +0 -0
  120. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/aws/internal/__init__.py +0 -0
  121. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/aws/internal/__init__.pyi +0 -0
  122. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/claude_code/__init__.py +0 -0
  123. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/claude_code/__init__.pyi +0 -0
  124. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/claude_code/internal/__init__.py +0 -0
  125. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/claude_code/internal/__init__.pyi +0 -0
  126. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/google/__init__.py +0 -0
  127. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/google/__init__.pyi +0 -0
  128. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/google/internal/__init__.py +0 -0
  129. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/google/internal/__init__.pyi +0 -0
  130. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/openai/__init__.py +0 -0
  131. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/openai/__init__.pyi +0 -0
  132. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/openai/internal/__init__.py +0 -0
  133. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/openai/internal/__init__.pyi +0 -0
  134. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/openai/internal/decisions/__init__.py +0 -0
  135. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/openai/internal/decisions/__init__.pyi +0 -0
  136. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/testing/__init__.py +0 -0
  137. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/testing/__init__.pyi +0 -0
  138. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/trace/__init__.py +0 -0
  139. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/trace/__init__.pyi +0 -0
  140. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/typesafeai/__init__.py +0 -0
  141. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/typesafeai/__init__.pyi +0 -0
  142. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/typesafeai/internal/__init__.py +0 -0
  143. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/typesafeai/internal/__init__.pyi +0 -0
  144. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/vercel/__init__.py +0 -0
  145. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/vercel/__init__.pyi +0 -0
  146. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/vercel/internal/__init__.py +0 -0
  147. {ebaml-0.2.2 → ebaml-0.2.4}/src/baml_sdk/vendor/vercel/internal/__init__.pyi +0 -0
  148. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/__init__.py +0 -0
  149. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/benchmark.py +0 -0
  150. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/core/__init__.py +0 -0
  151. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/core/custom_types.py +0 -0
  152. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/core/exceptions.py +0 -0
  153. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/graphs/__init__.py +0 -0
  154. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/graphs/graph_text.py +0 -0
  155. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/graphs/model_kinds.py +0 -0
  156. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/graphs/terms.py +0 -0
  157. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/llm/__init__.py +0 -0
  158. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/llm/descriptors.py +0 -0
  159. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/llm/provider_errors.py +0 -0
  160. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/llm/retry.py +0 -0
  161. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/llm/sdk_setup.py +0 -0
  162. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/local/__init__.py +0 -0
  163. {ebaml-0.2.2 → ebaml-0.2.4}/src/ebaml/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ebaml
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: BAML for Explainable Boosting Machines: talk to your EBM.
5
5
  Keywords: baml,llm,explainable-ai,explainable-boosting-machine,interpretml
6
6
  Author: Johnny Godoy
@@ -407,8 +407,8 @@ A field that you set wins over the default of the call. The output limit has two
407
407
 
408
408
  | Calls | `max_output_tokens` |
409
409
  | --- | --- |
410
- | Turn 1 of a graph description, the draft of the summary, and the two turns of the benchmark | 8000 |
411
- | All other calls, including the local explanations | 6000 |
410
+ | Turn 1 of a graph description, the draft of the summary, and the two turns of the benchmark | 16000 |
411
+ | All other calls, including the local explanations | 12000 |
412
412
 
413
413
  ### Examples
414
414
 
@@ -379,8 +379,8 @@ A field that you set wins over the default of the call. The output limit has two
379
379
 
380
380
  | Calls | `max_output_tokens` |
381
381
  | --- | --- |
382
- | Turn 1 of a graph description, the draft of the summary, and the two turns of the benchmark | 8000 |
383
- | All other calls, including the local explanations | 6000 |
382
+ | Turn 1 of a graph description, the draft of the summary, and the two turns of the benchmark | 16000 |
383
+ | All other calls, including the local explanations | 12000 |
384
384
 
385
385
  ### Examples
386
386
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ebaml"
3
- version = "0.2.2"
3
+ version = "0.2.4"
4
4
  description = "BAML for Explainable Boosting Machines: talk to your EBM."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -52,7 +52,6 @@ override-dependencies = [
52
52
  ]
53
53
 
54
54
  [tool.uv.exclude-newer-package]
55
- certifi = false
56
55
  baml-bridge = false
57
56
 
58
57
  [tool.uv.build-backend]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ebaml"
3
- version = "0.2.2"
3
+ version = "0.2.4"
4
4
  description = "BAML for Explainable Boosting Machines: talk to your EBM."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -36,13 +36,10 @@ Changelog = "https://github.com/johnny-godoy/EBaMl/blob/main/CHANGELOG.md"
36
36
  [tool.uv]
37
37
  # A relative span keeps the cutoff 7 days behind today, so uv never picks a release that is less than 7 days old.
38
38
  exclude-newer = "7 days"
39
- # reason: security fixes must not wait for the 7-day cooldown. certifi 2026.7.22 has 1 CVE fixed in 2026.10.19, so Trivy
40
- # fails on the older version. Remove the entry once its fixed release is more than 7 days old. The check-exclusions
41
- # hook fails when an entry is no longer needed.
42
39
  # reason: baml-bridge must match the BAML toolchain that generates src/baml_sdk, or the SDK fails at start with a version
43
40
  # skew error. CI installs the newest toolchain, and toolchain 0.23.0 changed the ai.Client interface, so the repository
44
41
  # needs baml-bridge 0.23.0 at once. Remove the entry once 0.23.0 is more than 7 days old.
45
- exclude-newer-package = { certifi = false, baml-bridge = false }
42
+ exclude-newer-package = { baml-bridge = false }
46
43
  # reason: semgrep 1.182.1 pins mcp==1.29.0 and opentelemetry-api~=1.37.0, which have 5 known CVEs fixed in mcp 1.30.0
47
44
  # and opentelemetry-api 1.45.1. Dependabot cannot update them, so the override forces the fixed releases. The
48
45
  # opentelemetry packages must move together, because semgrep fails to import with opentelemetry-api 1.45 and the older
@@ -7,15 +7,15 @@
7
7
  },
8
8
  {
9
9
  "relative_path": "__init__.py",
10
- "sha256": "409ca63a082ceaa731e7d616981a20014019d488eeb9fdb3ffe6c6210104deb9"
10
+ "sha256": "5b351b133611257f648c9eff6fa6e6ddf12566bd3634ceef5150dc4140ea20c8"
11
11
  },
12
12
  {
13
13
  "relative_path": "__init__.pyi",
14
- "sha256": "d91c98a9aa7242817f0efa01583c7e21ac2e2643110f8793c722495df49f0503"
14
+ "sha256": "be211587234dc3c424591fcb54442292459e536be4a47e18d08369b4d387d9b8"
15
15
  },
16
16
  {
17
17
  "relative_path": "_baml_sources.py",
18
- "sha256": "7d7a5950cfe53e2daa682060b8462204e9aa931966dae9a3722b404ab64f55c3"
18
+ "sha256": "69373a1c80a74ce0793ddb607b2a97c4f54b1fb6de5dc9526020e4a7a6c9f3b9"
19
19
  },
20
20
  {
21
21
  "relative_path": "_function_registry.py",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  {
25
25
  "relative_path": "_inlinedbaml.py",
26
- "sha256": "1d0e15cb9743010c198cfdd8002d959b3ba2e775d3f4e88af7fd66e14820d115"
26
+ "sha256": "e96798567f520fd264e5b42b4b6e350af7b7153c9ee15ab1e425ea215c93b070"
27
27
  },
28
28
  {
29
29
  "relative_path": "_invocation_types.py",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  {
37
37
  "relative_path": "_typemap.py",
38
- "sha256": "4ca0699f3cc6aee337f45747b9b57025fb55495032031d3d47bbb6c4d04d95c8"
38
+ "sha256": "9d0cd9e6eaebf67d231d0f54c4f43f24a70a307632c7ca8ebd738023e24191c8"
39
39
  },
40
40
  {
41
41
  "relative_path": "ai/__init__.py",
@@ -64,6 +64,59 @@ if typing.TYPE_CHECKING:
64
64
  from baml_bridge import define_function as _define_function
65
65
 
66
66
 
67
+ benchmark_sample = _define_function("user.benchmark_sample", "sync", ["task", "indices"], binding_name="benchmark_sample", binding_qualname="benchmark_sample", binding_module=__name__)
68
+ benchmark_sample.__doc__ = """Raises:
69
+ Io, ParseError, DecodeError"""
70
+ benchmark_sample_async = _define_function("user.benchmark_sample", "async", ["task", "indices"], binding_name="benchmark_sample_async", binding_qualname="benchmark_sample_async", binding_module=__name__)
71
+ benchmark_sample_async.__doc__ = """Raises:
72
+ Io, ParseError, DecodeError"""
73
+
74
+
75
+ benchmark_choice = _define_function("user.benchmark_choice", "sync", ["answer"], binding_name="benchmark_choice", binding_qualname="benchmark_choice", binding_module=__name__)
76
+ benchmark_choice.__doc__ = """Raises:
77
+ Error"""
78
+ benchmark_choice_async = _define_function("user.benchmark_choice", "async", ["answer"], binding_name="benchmark_choice_async", binding_qualname="benchmark_choice_async", binding_module=__name__)
79
+ benchmark_choice_async.__doc__ = """Raises:
80
+ Error"""
81
+
82
+
83
+ benchmark_monotonicity = _define_function("user.benchmark_monotonicity", "sync", ["answer"], binding_name="benchmark_monotonicity", binding_qualname="benchmark_monotonicity", binding_module=__name__)
84
+ benchmark_monotonicity_async = _define_function("user.benchmark_monotonicity", "async", ["answer"], binding_name="benchmark_monotonicity_async", binding_qualname="benchmark_monotonicity_async", binding_module=__name__)
85
+
86
+
87
+ benchmark_answer = _define_function("user.benchmark_answer", "sync", ["question", "answer_format", "client"], binding_name="benchmark_answer", binding_qualname="benchmark_answer", binding_module=__name__)
88
+ benchmark_answer.__doc__ = """Raises:
89
+ CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
90
+ benchmark_answer_async = _define_function("user.benchmark_answer", "async", ["question", "answer_format", "client"], binding_name="benchmark_answer_async", binding_qualname="benchmark_answer_async", binding_module=__name__)
91
+ benchmark_answer_async.__doc__ = """Raises:
92
+ CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
93
+
94
+
95
+ benchmark_correct = _define_function("user.benchmark_correct", "sync", ["sample", "answer_format", "parse"], ["client"], binding_name="benchmark_correct", binding_qualname="benchmark_correct", binding_module=__name__)
96
+ benchmark_correct.__doc__ = """Raises:
97
+ CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
98
+ benchmark_correct_async = _define_function("user.benchmark_correct", "async", ["sample", "answer_format", "parse"], ["client"], binding_name="benchmark_correct_async", binding_qualname="benchmark_correct_async", binding_module=__name__)
99
+ benchmark_correct_async.__doc__ = """Raises:
100
+ CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
101
+
102
+
103
+ class ExhaustedClient(pydantic.BaseModel):
104
+ model_config = pydantic.ConfigDict(
105
+ arbitrary_types_allowed=True,
106
+ extra="ignore",
107
+ populate_by_name=True,
108
+ )
109
+
110
+
111
+ class ConstantClient(pydantic.BaseModel):
112
+ model_config = pydantic.ConfigDict(
113
+ arbitrary_types_allowed=True,
114
+ extra="ignore",
115
+ populate_by_name=True,
116
+ )
117
+ answer: str
118
+
119
+
67
120
  class LocalFactTexts(pydantic.BaseModel):
68
121
  model_config = pydantic.ConfigDict(
69
122
  arbitrary_types_allowed=True,
@@ -306,11 +359,23 @@ client_id_async = _define_function("user.client_id", "async", ["client"], bindin
306
359
 
307
360
 
308
361
  count_sentences = _define_function("user.count_sentences", "sync", ["text"], binding_name="count_sentences", binding_qualname="count_sentences", binding_module=__name__)
362
+ count_sentences.__doc__ = """Raises:
363
+ Error"""
309
364
  count_sentences_async = _define_function("user.count_sentences", "async", ["text"], binding_name="count_sentences_async", binding_qualname="count_sentences_async", binding_module=__name__)
365
+ count_sentences_async.__doc__ = """Raises:
366
+ Error"""
367
+
368
+
369
+ live_layperson_facts = _define_function("user.live_layperson_facts", "sync", [], binding_name="live_layperson_facts", binding_qualname="live_layperson_facts", binding_module=__name__)
370
+ live_layperson_facts_async = _define_function("user.live_layperson_facts", "async", [], binding_name="live_layperson_facts_async", binding_qualname="live_layperson_facts_async", binding_module=__name__)
371
+
372
+
373
+ live_data_scientist_facts = _define_function("user.live_data_scientist_facts", "sync", [], binding_name="live_data_scientist_facts", binding_qualname="live_data_scientist_facts", binding_module=__name__)
374
+ live_data_scientist_facts_async = _define_function("user.live_data_scientist_facts", "async", [], binding_name="live_data_scientist_facts_async", binding_qualname="live_data_scientist_facts_async", binding_module=__name__)
310
375
 
311
376
 
312
- live_local_facts = _define_function("user.live_local_facts", "sync", [], binding_name="live_local_facts", binding_qualname="live_local_facts", binding_module=__name__)
313
- live_local_facts_async = _define_function("user.live_local_facts", "async", [], binding_name="live_local_facts_async", binding_qualname="live_local_facts_async", binding_module=__name__)
377
+ log_reply = _define_function("user.log_reply", "sync", ["reply"], binding_name="log_reply", binding_qualname="log_reply", binding_module=__name__)
378
+ log_reply_async = _define_function("user.log_reply", "async", ["reply"], binding_name="log_reply_async", binding_qualname="log_reply_async", binding_module=__name__)
314
379
 
315
380
 
316
381
  class GraphPromptOptions(pydantic.BaseModel):
@@ -643,6 +708,18 @@ class SummaryEchoClient(pydantic.BaseModel):
643
708
 
644
709
 
645
710
  __all__ = [
711
+ "benchmark_sample",
712
+ "benchmark_sample_async",
713
+ "benchmark_choice",
714
+ "benchmark_choice_async",
715
+ "benchmark_monotonicity",
716
+ "benchmark_monotonicity_async",
717
+ "benchmark_answer",
718
+ "benchmark_answer_async",
719
+ "benchmark_correct",
720
+ "benchmark_correct_async",
721
+ "ExhaustedClient",
722
+ "ConstantClient",
646
723
  "LocalFactTexts",
647
724
  "LocalExplanationText",
648
725
  "local_system_msg",
@@ -725,8 +802,12 @@ __all__ = [
725
802
  "client_id_async",
726
803
  "count_sentences",
727
804
  "count_sentences_async",
728
- "live_local_facts",
729
- "live_local_facts_async",
805
+ "live_layperson_facts",
806
+ "live_layperson_facts_async",
807
+ "live_data_scientist_facts",
808
+ "live_data_scientist_facts_async",
809
+ "log_reply",
810
+ "log_reply_async",
730
811
  "GraphPromptOptions",
731
812
  "default_graph_options",
732
813
  "default_graph_options_async",
@@ -54,6 +54,50 @@ class _BamlReturned1(typing.Protocol):
54
54
  async def call_async(self, arg0: ModelSpec, arg1: CallDefaults, *, _baml: _BamlOptions | None = None) -> typing.Any: ...
55
55
 
56
56
 
57
+ def benchmark_sample(task: str, indices: typing.List[int], *, _baml: _BamlOptions | None = None) -> typing.List[typing.List[str]]:
58
+ """Raises:
59
+ Io, ParseError, DecodeError"""
60
+ async def benchmark_sample_async(task: str, indices: typing.List[int], *, _baml: _BamlOptions | None = None) -> typing.List[typing.List[str]]:
61
+ """Raises:
62
+ Io, ParseError, DecodeError"""
63
+
64
+
65
+ def benchmark_choice(answer: str, *, _baml: _BamlOptions | None = None) -> typing.Optional[str]:
66
+ """Raises:
67
+ Error"""
68
+ async def benchmark_choice_async(answer: str, *, _baml: _BamlOptions | None = None) -> typing.Optional[str]:
69
+ """Raises:
70
+ Error"""
71
+
72
+
73
+ def benchmark_monotonicity(answer: str, *, _baml: _BamlOptions | None = None) -> typing.Optional[str]: ...
74
+ async def benchmark_monotonicity_async(answer: str, *, _baml: _BamlOptions | None = None) -> typing.Optional[str]: ...
75
+
76
+
77
+ def benchmark_answer(question: str, answer_format: str, client: typing.Optional[typing.Any], *, _baml: _BamlOptions | None = None) -> str:
78
+ """Raises:
79
+ CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
80
+ async def benchmark_answer_async(question: str, answer_format: str, client: typing.Optional[typing.Any], *, _baml: _BamlOptions | None = None) -> str:
81
+ """Raises:
82
+ CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
83
+
84
+
85
+ def benchmark_correct(sample: typing.List[typing.List[str]], answer_format: str, parse: typing.Callable[[str], typing.Optional[str]], *, client: typing.Union[typing.Any, None, UNSET] = None, _baml: _BamlOptions | None = None) -> int:
86
+ """Raises:
87
+ CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
88
+ async def benchmark_correct_async(sample: typing.List[typing.List[str]], answer_format: str, parse: typing.Callable[[str], typing.Optional[str]], *, client: typing.Union[typing.Any, None, UNSET] = None, _baml: _BamlOptions | None = None) -> int:
89
+ """Raises:
90
+ CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
91
+
92
+
93
+ class ExhaustedClient(pydantic.BaseModel):
94
+ ...
95
+
96
+
97
+ class ConstantClient(pydantic.BaseModel):
98
+ answer: str
99
+
100
+
57
101
  class LocalFactTexts(pydantic.BaseModel):
58
102
  prediction: str
59
103
  counterfactual: str
@@ -275,12 +319,24 @@ def client_id(client: typing.Optional[typing.Any], *, _baml: _BamlOptions | None
275
319
  async def client_id_async(client: typing.Optional[typing.Any], *, _baml: _BamlOptions | None = None) -> str: ...
276
320
 
277
321
 
278
- def count_sentences(text: str, *, _baml: _BamlOptions | None = None) -> int: ...
279
- async def count_sentences_async(text: str, *, _baml: _BamlOptions | None = None) -> int: ...
322
+ def count_sentences(text: str, *, _baml: _BamlOptions | None = None) -> int:
323
+ """Raises:
324
+ Error"""
325
+ async def count_sentences_async(text: str, *, _baml: _BamlOptions | None = None) -> int:
326
+ """Raises:
327
+ Error"""
328
+
329
+
330
+ def live_layperson_facts(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
331
+ async def live_layperson_facts_async(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
332
+
333
+
334
+ def live_data_scientist_facts(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
335
+ async def live_data_scientist_facts_async(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
280
336
 
281
337
 
282
- def live_local_facts(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
283
- async def live_local_facts_async(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
338
+ def log_reply(reply: str, *, _baml: _BamlOptions | None = None) -> None: ...
339
+ async def log_reply_async(reply: str, *, _baml: _BamlOptions | None = None) -> None: ...
284
340
 
285
341
 
286
342
  class GraphPromptOptions(pydantic.BaseModel):
@@ -570,6 +626,18 @@ class SummaryEchoClient(pydantic.BaseModel):
570
626
 
571
627
 
572
628
  __all__ = [
629
+ "benchmark_sample",
630
+ "benchmark_sample_async",
631
+ "benchmark_choice",
632
+ "benchmark_choice_async",
633
+ "benchmark_monotonicity",
634
+ "benchmark_monotonicity_async",
635
+ "benchmark_answer",
636
+ "benchmark_answer_async",
637
+ "benchmark_correct",
638
+ "benchmark_correct_async",
639
+ "ExhaustedClient",
640
+ "ConstantClient",
573
641
  "LocalFactTexts",
574
642
  "LocalExplanationText",
575
643
  "local_system_msg",
@@ -652,8 +720,12 @@ __all__ = [
652
720
  "client_id_async",
653
721
  "count_sentences",
654
722
  "count_sentences_async",
655
- "live_local_facts",
656
- "live_local_facts_async",
723
+ "live_layperson_facts",
724
+ "live_layperson_facts_async",
725
+ "live_data_scientist_facts",
726
+ "live_data_scientist_facts_async",
727
+ "log_reply",
728
+ "log_reply_async",
657
729
  "GraphPromptOptions",
658
730
  "default_graph_options",
659
731
  "default_graph_options_async",