ebaml 0.3.0__tar.gz → 0.3.1__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 (165) hide show
  1. {ebaml-0.3.0 → ebaml-0.3.1}/PKG-INFO +2 -2
  2. {ebaml-0.3.0 → ebaml-0.3.1}/README.md +1 -1
  3. {ebaml-0.3.0 → ebaml-0.3.1}/pyproject.toml +1 -1
  4. {ebaml-0.3.0 → ebaml-0.3.1}/pyproject.toml.orig +1 -1
  5. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/.baml-generator-output.json +4 -4
  6. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/__init__.py +22 -22
  7. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/__init__.pyi +22 -22
  8. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/_baml_sources.py +2 -2
  9. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/_inlinedbaml.py +1 -1
  10. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/llm/descriptors.py +5 -0
  11. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/local/audience.py +7 -3
  12. {ebaml-0.3.0 → ebaml-0.3.1}/LICENSE +0 -0
  13. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/.baml-generator-output-root +0 -0
  14. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/.gitignore +0 -0
  15. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/_function_registry.py +0 -0
  16. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/_invocation_types.py +0 -0
  17. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/_invocation_types.pyi +0 -0
  18. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/_typemap.py +0 -0
  19. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/__init__.py +0 -0
  20. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/__init__.pyi +0 -0
  21. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/clients/__init__.py +0 -0
  22. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/clients/__init__.pyi +0 -0
  23. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/content/__init__.py +0 -0
  24. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/content/__init__.pyi +0 -0
  25. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/errors/__init__.py +0 -0
  26. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/errors/__init__.pyi +0 -0
  27. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/events/__init__.py +0 -0
  28. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/events/__init__.pyi +0 -0
  29. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/internal/__init__.py +0 -0
  30. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/internal/__init__.pyi +0 -0
  31. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/mcp/__init__.py +0 -0
  32. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/mcp/__init__.pyi +0 -0
  33. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/stream/__init__.py +0 -0
  34. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/stream/__init__.pyi +0 -0
  35. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/tools/__init__.py +0 -0
  36. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/tools/__init__.pyi +0 -0
  37. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/wire/__init__.py +0 -0
  38. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/ai/wire/__init__.pyi +0 -0
  39. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/__init__.py +0 -0
  40. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/__init__.pyi +0 -0
  41. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/crypto/__init__.py +0 -0
  42. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/crypto/__init__.pyi +0 -0
  43. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/csv/__init__.py +0 -0
  44. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/csv/__init__.pyi +0 -0
  45. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/env/__init__.py +0 -0
  46. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/env/__init__.pyi +0 -0
  47. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/errors/__init__.py +0 -0
  48. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/errors/__init__.pyi +0 -0
  49. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/fs/__init__.py +0 -0
  50. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/fs/__init__.pyi +0 -0
  51. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/future/__init__.py +0 -0
  52. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/future/__init__.pyi +0 -0
  53. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/glob/__init__.py +0 -0
  54. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/glob/__init__.pyi +0 -0
  55. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/hash/__init__.py +0 -0
  56. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/hash/__init__.pyi +0 -0
  57. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/host/__init__.py +0 -0
  58. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/host/__init__.pyi +0 -0
  59. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/http/__init__.py +0 -0
  60. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/http/__init__.pyi +0 -0
  61. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/io/__init__.py +0 -0
  62. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/io/__init__.pyi +0 -0
  63. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/iter/__init__.py +0 -0
  64. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/iter/__init__.pyi +0 -0
  65. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/json/__init__.py +0 -0
  66. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/json/__init__.pyi +0 -0
  67. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/media/__init__.py +0 -0
  68. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/media/__init__.pyi +0 -0
  69. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/net/__init__.py +0 -0
  70. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/net/__init__.pyi +0 -0
  71. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/ops/__init__.py +0 -0
  72. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/ops/__init__.pyi +0 -0
  73. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/panics/__init__.py +0 -0
  74. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/panics/__init__.pyi +0 -0
  75. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/random/__init__.py +0 -0
  76. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/random/__init__.pyi +0 -0
  77. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/regex/__init__.py +0 -0
  78. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/regex/__init__.pyi +0 -0
  79. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/sap/__init__.py +0 -0
  80. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/sap/__init__.pyi +0 -0
  81. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/spawn/__init__.py +0 -0
  82. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/spawn/__init__.pyi +0 -0
  83. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/sys/__init__.py +0 -0
  84. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/sys/__init__.pyi +0 -0
  85. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/time/__init__.py +0 -0
  86. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/time/__init__.pyi +0 -0
  87. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/toml/__init__.py +0 -0
  88. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/toml/__init__.pyi +0 -0
  89. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/ws/__init__.py +0 -0
  90. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/ws/__init__.pyi +0 -0
  91. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/yaml/__init__.py +0 -0
  92. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/baml/yaml/__init__.pyi +0 -0
  93. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/experimental/__init__.py +0 -0
  94. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/experimental/__init__.pyi +0 -0
  95. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/py.typed +0 -0
  96. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/__init__.py +0 -0
  97. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/__init__.pyi +0 -0
  98. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/class_/__init__.py +0 -0
  99. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/class_/__init__.pyi +0 -0
  100. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/enum/__init__.py +0 -0
  101. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/enum/__init__.pyi +0 -0
  102. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/errors/__init__.py +0 -0
  103. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/errors/__init__.pyi +0 -0
  104. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/function/__init__.py +0 -0
  105. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/function/__init__.pyi +0 -0
  106. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/interface/__init__.py +0 -0
  107. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/reflect/interface/__init__.pyi +0 -0
  108. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/__init__.py +0 -0
  109. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/__init__.pyi +0 -0
  110. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/anthropic/__init__.py +0 -0
  111. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/anthropic/__init__.pyi +0 -0
  112. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/anthropic/internal/__init__.py +0 -0
  113. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/anthropic/internal/__init__.pyi +0 -0
  114. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/assert_/__init__.py +0 -0
  115. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/assert_/__init__.pyi +0 -0
  116. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/aws/__init__.py +0 -0
  117. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/aws/__init__.pyi +0 -0
  118. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/aws/internal/__init__.py +0 -0
  119. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/aws/internal/__init__.pyi +0 -0
  120. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/claude_code/__init__.py +0 -0
  121. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/claude_code/__init__.pyi +0 -0
  122. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/claude_code/internal/__init__.py +0 -0
  123. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/claude_code/internal/__init__.pyi +0 -0
  124. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/google/__init__.py +0 -0
  125. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/google/__init__.pyi +0 -0
  126. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/google/internal/__init__.py +0 -0
  127. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/google/internal/__init__.pyi +0 -0
  128. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/openai/__init__.py +0 -0
  129. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/openai/__init__.pyi +0 -0
  130. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/openai/internal/__init__.py +0 -0
  131. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/openai/internal/__init__.pyi +0 -0
  132. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/openai/internal/decisions/__init__.py +0 -0
  133. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/openai/internal/decisions/__init__.pyi +0 -0
  134. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/testing/__init__.py +0 -0
  135. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/testing/__init__.pyi +0 -0
  136. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/trace/__init__.py +0 -0
  137. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/trace/__init__.pyi +0 -0
  138. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/typesafeai/__init__.py +0 -0
  139. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/typesafeai/__init__.pyi +0 -0
  140. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/typesafeai/internal/__init__.py +0 -0
  141. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/typesafeai/internal/__init__.pyi +0 -0
  142. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/vercel/__init__.py +0 -0
  143. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/vercel/__init__.pyi +0 -0
  144. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/vercel/internal/__init__.py +0 -0
  145. {ebaml-0.3.0 → ebaml-0.3.1}/src/baml_sdk/vendor/vercel/internal/__init__.pyi +0 -0
  146. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/__init__.py +0 -0
  147. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/benchmark.py +0 -0
  148. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/core/__init__.py +0 -0
  149. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/core/custom_types.py +0 -0
  150. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/core/exceptions.py +0 -0
  151. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/graphs/__init__.py +0 -0
  152. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/graphs/ebm_graph.py +0 -0
  153. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/graphs/graph_text.py +0 -0
  154. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/graphs/model_kinds.py +0 -0
  155. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/graphs/terms.py +0 -0
  156. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/graphs/token_budget.py +0 -0
  157. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/llm/__init__.py +0 -0
  158. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/llm/options.py +0 -0
  159. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/llm/provider_errors.py +0 -0
  160. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/llm/retry.py +0 -0
  161. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/llm/sdk_setup.py +0 -0
  162. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/local/__init__.py +0 -0
  163. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/local/fact_text.py +0 -0
  164. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/local/facts.py +0 -0
  165. {ebaml-0.3.0 → ebaml-0.3.1}/src/ebaml/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ebaml
3
- Version: 0.3.0
3
+ Version: 0.3.1
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
@@ -220,7 +220,7 @@ The facts are computed exactly from the scores and confidence intervals of the E
220
220
  them in words. They are the three queries of [arXiv:2010.12265](https://arxiv.org/abs/2010.12265): minimum change
221
221
  required, minimum sufficient reason and count completions. `audience="layperson"` (default) gives no model numbers;
222
222
  `audience="data_scientist"` quotes scores, probabilities and confidence intervals. Subclass `ebaml.Audience` to add a
223
- reader with its own rules. It supports binary classifiers
223
+ reader with its own rules. Pass `language="French"` (any language name) to get the explanations in that language. It supports binary classifiers
224
224
  without interactions, and `explanation.facts` holds the numbers behind the text. The "Local explanations" page of the documentation explains what each explanation means, the options and the limits,
225
225
  and `notebooks/local_explanations.py` walks through them on the Titanic data.
226
226
 
@@ -192,7 +192,7 @@ The facts are computed exactly from the scores and confidence intervals of the E
192
192
  them in words. They are the three queries of [arXiv:2010.12265](https://arxiv.org/abs/2010.12265): minimum change
193
193
  required, minimum sufficient reason and count completions. `audience="layperson"` (default) gives no model numbers;
194
194
  `audience="data_scientist"` quotes scores, probabilities and confidence intervals. Subclass `ebaml.Audience` to add a
195
- reader with its own rules. It supports binary classifiers
195
+ reader with its own rules. Pass `language="French"` (any language name) to get the explanations in that language. It supports binary classifiers
196
196
  without interactions, and `explanation.facts` holds the numbers behind the text. The "Local explanations" page of the documentation explains what each explanation means, the options and the limits,
197
197
  and `notebooks/local_explanations.py` walks through them on the Titanic data.
198
198
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ebaml"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "BAML for Explainable Boosting Machines: talk to your EBM."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ebaml"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "BAML for Explainable Boosting Machines: talk to your EBM."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -7,15 +7,15 @@
7
7
  },
8
8
  {
9
9
  "relative_path": "__init__.py",
10
- "sha256": "2a4d10933fafdc515d9d7ad4167eebdf4f7f62843afdeb13857c7ac1fc57b511"
10
+ "sha256": "cd987ae33762c18e019c2740a626191acca2454e7a35fd52cd6063b6e5d5c42d"
11
11
  },
12
12
  {
13
13
  "relative_path": "__init__.pyi",
14
- "sha256": "4a77c5cd31b59934c0e9bd98cfb72cefb82180b585c834f3d821082f86b29342"
14
+ "sha256": "d68b10a3c05704baf4a241201249b88bdf4f074927a3fe044c2ecd948b78ff45"
15
15
  },
16
16
  {
17
17
  "relative_path": "_baml_sources.py",
18
- "sha256": "34cafda36a39e83dee0f6813bddc5dfde73e6b75c0d0222ae511b0ae5beb0146"
18
+ "sha256": "89bee5a4d1cefe54e077aff3b3bc5b32671d534a73f2babdeff6aa57d63a0fe3"
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": "2166223bd0364df0d217132a34a6e7fa29bacf0becd6842598243a743ce0ecd6"
26
+ "sha256": "a627d0980e34c1c28a38c927a23b3fa6f01ad6db8aa2d9eeb127d8ac6af048e9"
27
27
  },
28
28
  {
29
29
  "relative_path": "_invocation_types.py",
@@ -145,8 +145,8 @@ local_system_msg = _define_function("user.local_system_msg", "sync", ["ex
145
145
  local_system_msg_async = _define_function("user.local_system_msg", "async", ["expert_description"], binding_name="local_system_msg_async", binding_qualname="local_system_msg_async", binding_module=__name__)
146
146
 
147
147
 
148
- local_user_msg = _define_function("user.local_user_msg", "sync", ["global_explanation", "prediction", "question", "facts", "audience_guidance", "dataset_description"], binding_name="local_user_msg", binding_qualname="local_user_msg", binding_module=__name__)
149
- local_user_msg_async = _define_function("user.local_user_msg", "async", ["global_explanation", "prediction", "question", "facts", "audience_guidance", "dataset_description"], binding_name="local_user_msg_async", binding_qualname="local_user_msg_async", binding_module=__name__)
148
+ local_user_msg = _define_function("user.local_user_msg", "sync", ["global_explanation", "prediction", "question", "facts", "audience_guidance", "dataset_description"], ["language"], binding_name="local_user_msg", binding_qualname="local_user_msg", binding_module=__name__)
149
+ local_user_msg_async = _define_function("user.local_user_msg", "async", ["global_explanation", "prediction", "question", "facts", "audience_guidance", "dataset_description"], ["language"], binding_name="local_user_msg_async", binding_qualname="local_user_msg_async", binding_module=__name__)
150
150
 
151
151
 
152
152
  counterfactual_question = _define_function("user.counterfactual_question", "sync", ["num_sentences"], binding_name="counterfactual_question", binding_qualname="counterfactual_question", binding_module=__name__)
@@ -161,70 +161,70 @@ completions_question = _define_function("user.completions_question", "sync
161
161
  completions_question_async = _define_function("user.completions_question", "async", ["num_sentences"], binding_name="completions_question_async", binding_qualname="completions_question_async", binding_module=__name__)
162
162
 
163
163
 
164
- LocalCounterfactual = _define_function("user.LocalCounterfactual", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalCounterfactual", binding_qualname="LocalCounterfactual", binding_module=__name__)
164
+ LocalCounterfactual = _define_function("user.LocalCounterfactual", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalCounterfactual", binding_qualname="LocalCounterfactual", binding_module=__name__)
165
165
  LocalCounterfactual.__doc__ = """Raises:
166
166
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
167
- LocalCounterfactual_async = _define_function("user.LocalCounterfactual", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalCounterfactual_async", binding_qualname="LocalCounterfactual_async", binding_module=__name__)
167
+ LocalCounterfactual_async = _define_function("user.LocalCounterfactual", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalCounterfactual_async", binding_qualname="LocalCounterfactual_async", binding_module=__name__)
168
168
  LocalCounterfactual_async.__doc__ = """Raises:
169
169
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
170
- LocalCounterfactual_spec = _define_function("user.LocalCounterfactual@spec", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], binding_name="LocalCounterfactual_spec", binding_qualname="LocalCounterfactual_spec", binding_module=__name__)
170
+ LocalCounterfactual_spec = _define_function("user.LocalCounterfactual@spec", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language"], binding_name="LocalCounterfactual_spec", binding_qualname="LocalCounterfactual_spec", binding_module=__name__)
171
171
  LocalCounterfactual_spec.__doc__ = """Raises:
172
172
  InvalidArgument, Io, ParseError, InvalidRequest"""
173
- LocalCounterfactual_spec_async = _define_function("user.LocalCounterfactual@spec", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], binding_name="LocalCounterfactual_spec_async", binding_qualname="LocalCounterfactual_spec_async", binding_module=__name__)
173
+ LocalCounterfactual_spec_async = _define_function("user.LocalCounterfactual@spec", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language"], binding_name="LocalCounterfactual_spec_async", binding_qualname="LocalCounterfactual_spec_async", binding_module=__name__)
174
174
  LocalCounterfactual_spec_async.__doc__ = """Raises:
175
175
  InvalidArgument, Io, ParseError, InvalidRequest"""
176
- LocalCounterfactual_stream = _define_function("user.LocalCounterfactual@stream", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalCounterfactual_stream", binding_qualname="LocalCounterfactual_stream", binding_module=__name__)
176
+ LocalCounterfactual_stream = _define_function("user.LocalCounterfactual@stream", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalCounterfactual_stream", binding_qualname="LocalCounterfactual_stream", binding_module=__name__)
177
177
  LocalCounterfactual_stream.__doc__ = """Raises:
178
178
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
179
- LocalCounterfactual_stream_async = _define_function("user.LocalCounterfactual@stream", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalCounterfactual_stream_async", binding_qualname="LocalCounterfactual_stream_async", binding_module=__name__)
179
+ LocalCounterfactual_stream_async = _define_function("user.LocalCounterfactual@stream", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalCounterfactual_stream_async", binding_qualname="LocalCounterfactual_stream_async", binding_module=__name__)
180
180
  LocalCounterfactual_stream_async.__doc__ = """Raises:
181
181
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
182
182
 
183
183
 
184
- LocalSufficientReason = _define_function("user.LocalSufficientReason", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalSufficientReason", binding_qualname="LocalSufficientReason", binding_module=__name__)
184
+ LocalSufficientReason = _define_function("user.LocalSufficientReason", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalSufficientReason", binding_qualname="LocalSufficientReason", binding_module=__name__)
185
185
  LocalSufficientReason.__doc__ = """Raises:
186
186
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
187
- LocalSufficientReason_async = _define_function("user.LocalSufficientReason", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalSufficientReason_async", binding_qualname="LocalSufficientReason_async", binding_module=__name__)
187
+ LocalSufficientReason_async = _define_function("user.LocalSufficientReason", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalSufficientReason_async", binding_qualname="LocalSufficientReason_async", binding_module=__name__)
188
188
  LocalSufficientReason_async.__doc__ = """Raises:
189
189
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
190
- LocalSufficientReason_spec = _define_function("user.LocalSufficientReason@spec", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], binding_name="LocalSufficientReason_spec", binding_qualname="LocalSufficientReason_spec", binding_module=__name__)
190
+ LocalSufficientReason_spec = _define_function("user.LocalSufficientReason@spec", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language"], binding_name="LocalSufficientReason_spec", binding_qualname="LocalSufficientReason_spec", binding_module=__name__)
191
191
  LocalSufficientReason_spec.__doc__ = """Raises:
192
192
  InvalidArgument, Io, ParseError, InvalidRequest"""
193
- LocalSufficientReason_spec_async = _define_function("user.LocalSufficientReason@spec", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], binding_name="LocalSufficientReason_spec_async", binding_qualname="LocalSufficientReason_spec_async", binding_module=__name__)
193
+ LocalSufficientReason_spec_async = _define_function("user.LocalSufficientReason@spec", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language"], binding_name="LocalSufficientReason_spec_async", binding_qualname="LocalSufficientReason_spec_async", binding_module=__name__)
194
194
  LocalSufficientReason_spec_async.__doc__ = """Raises:
195
195
  InvalidArgument, Io, ParseError, InvalidRequest"""
196
- LocalSufficientReason_stream = _define_function("user.LocalSufficientReason@stream", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalSufficientReason_stream", binding_qualname="LocalSufficientReason_stream", binding_module=__name__)
196
+ LocalSufficientReason_stream = _define_function("user.LocalSufficientReason@stream", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalSufficientReason_stream", binding_qualname="LocalSufficientReason_stream", binding_module=__name__)
197
197
  LocalSufficientReason_stream.__doc__ = """Raises:
198
198
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
199
- LocalSufficientReason_stream_async = _define_function("user.LocalSufficientReason@stream", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalSufficientReason_stream_async", binding_qualname="LocalSufficientReason_stream_async", binding_module=__name__)
199
+ LocalSufficientReason_stream_async = _define_function("user.LocalSufficientReason@stream", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalSufficientReason_stream_async", binding_qualname="LocalSufficientReason_stream_async", binding_module=__name__)
200
200
  LocalSufficientReason_stream_async.__doc__ = """Raises:
201
201
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
202
202
 
203
203
 
204
- LocalCompletions = _define_function("user.LocalCompletions", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalCompletions", binding_qualname="LocalCompletions", binding_module=__name__)
204
+ LocalCompletions = _define_function("user.LocalCompletions", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalCompletions", binding_qualname="LocalCompletions", binding_module=__name__)
205
205
  LocalCompletions.__doc__ = """Raises:
206
206
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
207
- LocalCompletions_async = _define_function("user.LocalCompletions", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalCompletions_async", binding_qualname="LocalCompletions_async", binding_module=__name__)
207
+ LocalCompletions_async = _define_function("user.LocalCompletions", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalCompletions_async", binding_qualname="LocalCompletions_async", binding_module=__name__)
208
208
  LocalCompletions_async.__doc__ = """Raises:
209
209
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
210
- LocalCompletions_spec = _define_function("user.LocalCompletions@spec", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], binding_name="LocalCompletions_spec", binding_qualname="LocalCompletions_spec", binding_module=__name__)
210
+ LocalCompletions_spec = _define_function("user.LocalCompletions@spec", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language"], binding_name="LocalCompletions_spec", binding_qualname="LocalCompletions_spec", binding_module=__name__)
211
211
  LocalCompletions_spec.__doc__ = """Raises:
212
212
  InvalidArgument, Io, ParseError, InvalidRequest"""
213
- LocalCompletions_spec_async = _define_function("user.LocalCompletions@spec", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], binding_name="LocalCompletions_spec_async", binding_qualname="LocalCompletions_spec_async", binding_module=__name__)
213
+ LocalCompletions_spec_async = _define_function("user.LocalCompletions@spec", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language"], binding_name="LocalCompletions_spec_async", binding_qualname="LocalCompletions_spec_async", binding_module=__name__)
214
214
  LocalCompletions_spec_async.__doc__ = """Raises:
215
215
  InvalidArgument, Io, ParseError, InvalidRequest"""
216
- LocalCompletions_stream = _define_function("user.LocalCompletions@stream", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalCompletions_stream", binding_qualname="LocalCompletions_stream", binding_module=__name__)
216
+ LocalCompletions_stream = _define_function("user.LocalCompletions@stream", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalCompletions_stream", binding_qualname="LocalCompletions_stream", binding_module=__name__)
217
217
  LocalCompletions_stream.__doc__ = """Raises:
218
218
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
219
- LocalCompletions_stream_async = _define_function("user.LocalCompletions@stream", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["on_event"], binding_name="LocalCompletions_stream_async", binding_qualname="LocalCompletions_stream_async", binding_module=__name__)
219
+ LocalCompletions_stream_async = _define_function("user.LocalCompletions@stream", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "on_event"], binding_name="LocalCompletions_stream_async", binding_qualname="LocalCompletions_stream_async", binding_module=__name__)
220
220
  LocalCompletions_stream_async.__doc__ = """Raises:
221
221
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
222
222
 
223
223
 
224
- explain_local = _define_function("user.explain_local", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["client", "model"], binding_name="explain_local", binding_qualname="explain_local", binding_module=__name__)
224
+ explain_local = _define_function("user.explain_local", "sync", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "client", "model"], binding_name="explain_local", binding_qualname="explain_local", binding_module=__name__)
225
225
  explain_local.__doc__ = """Raises:
226
226
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
227
- explain_local_async = _define_function("user.explain_local", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["client", "model"], binding_name="explain_local_async", binding_qualname="explain_local_async", binding_module=__name__)
227
+ explain_local_async = _define_function("user.explain_local", "async", ["global_explanation", "facts", "audience_guidance", "num_sentences", "opts"], ["language", "client", "model"], binding_name="explain_local_async", binding_qualname="explain_local_async", binding_module=__name__)
228
228
  explain_local_async.__doc__ = """Raises:
229
229
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
230
230
 
@@ -116,8 +116,8 @@ def local_system_msg(expert_description: str, *, _baml: _BamlOptions | None = No
116
116
  async def local_system_msg_async(expert_description: str, *, _baml: _BamlOptions | None = None) -> str: ...
117
117
 
118
118
 
119
- def local_user_msg(global_explanation: str, prediction: str, question: str, facts: str, audience_guidance: str, dataset_description: str, *, _baml: _BamlOptions | None = None) -> str: ...
120
- async def local_user_msg_async(global_explanation: str, prediction: str, question: str, facts: str, audience_guidance: str, dataset_description: str, *, _baml: _BamlOptions | None = None) -> str: ...
119
+ def local_user_msg(global_explanation: str, prediction: str, question: str, facts: str, audience_guidance: str, dataset_description: str, *, language: typing.Union[str, UNSET] = "English", _baml: _BamlOptions | None = None) -> str: ...
120
+ async def local_user_msg_async(global_explanation: str, prediction: str, question: str, facts: str, audience_guidance: str, dataset_description: str, *, language: typing.Union[str, UNSET] = "English", _baml: _BamlOptions | None = None) -> str: ...
121
121
 
122
122
 
123
123
  def counterfactual_question(num_sentences: int, *, _baml: _BamlOptions | None = None) -> str: ...
@@ -132,70 +132,70 @@ def completions_question(num_sentences: int, *, _baml: _BamlOptions | None = Non
132
132
  async def completions_question_async(num_sentences: int, *, _baml: _BamlOptions | None = None) -> str: ...
133
133
 
134
134
 
135
- def LocalCounterfactual(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
135
+ def LocalCounterfactual(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
136
136
  """Raises:
137
137
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
138
- async def LocalCounterfactual_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
138
+ async def LocalCounterfactual_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
139
139
  """Raises:
140
140
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
141
- def LocalCounterfactual_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
141
+ def LocalCounterfactual_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
142
142
  """Raises:
143
143
  InvalidArgument, Io, ParseError, InvalidRequest"""
144
- async def LocalCounterfactual_spec_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
144
+ async def LocalCounterfactual_spec_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
145
145
  """Raises:
146
146
  InvalidArgument, Io, ParseError, InvalidRequest"""
147
- def LocalCounterfactual_stream(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
147
+ def LocalCounterfactual_stream(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
148
148
  """Raises:
149
149
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
150
- async def LocalCounterfactual_stream_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
150
+ async def LocalCounterfactual_stream_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
151
151
  """Raises:
152
152
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
153
153
 
154
154
 
155
- def LocalSufficientReason(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
155
+ def LocalSufficientReason(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
156
156
  """Raises:
157
157
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
158
- async def LocalSufficientReason_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
158
+ async def LocalSufficientReason_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
159
159
  """Raises:
160
160
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
161
- def LocalSufficientReason_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
161
+ def LocalSufficientReason_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
162
162
  """Raises:
163
163
  InvalidArgument, Io, ParseError, InvalidRequest"""
164
- async def LocalSufficientReason_spec_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
164
+ async def LocalSufficientReason_spec_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
165
165
  """Raises:
166
166
  InvalidArgument, Io, ParseError, InvalidRequest"""
167
- def LocalSufficientReason_stream(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
167
+ def LocalSufficientReason_stream(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
168
168
  """Raises:
169
169
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
170
- async def LocalSufficientReason_stream_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
170
+ async def LocalSufficientReason_stream_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
171
171
  """Raises:
172
172
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
173
173
 
174
174
 
175
- def LocalCompletions(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
175
+ def LocalCompletions(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
176
176
  """Raises:
177
177
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
178
- async def LocalCompletions_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
178
+ async def LocalCompletions_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> str:
179
179
  """Raises:
180
180
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
181
- def LocalCompletions_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
181
+ def LocalCompletions_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
182
182
  """Raises:
183
183
  InvalidArgument, Io, ParseError, InvalidRequest"""
184
- async def LocalCompletions_spec_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
184
+ async def LocalCompletions_spec_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
185
185
  """Raises:
186
186
  InvalidArgument, Io, ParseError, InvalidRequest"""
187
- def LocalCompletions_stream(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
187
+ def LocalCompletions_stream(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
188
188
  """Raises:
189
189
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
190
- async def LocalCompletions_stream_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
190
+ async def LocalCompletions_stream_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", on_event: typing.Union[typing.Callable[[ai.events.Event], None], None, UNSET] = None, _baml: _BamlOptions | None = None) -> _BamlStream[typing.Union[str, _BamlStreamDone], str, str]:
191
191
  """Raises:
192
192
  CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
193
193
 
194
194
 
195
- def explain_local(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, client: typing.Union[typing.Any, None, UNSET] = None, model: typing.Union[ModelSpec, None, UNSET] = None, _baml: _BamlOptions | None = None) -> LocalExplanationText:
195
+ def explain_local(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", client: typing.Union[typing.Any, None, UNSET] = None, model: typing.Union[ModelSpec, None, UNSET] = None, _baml: _BamlOptions | None = None) -> LocalExplanationText:
196
196
  """Raises:
197
197
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
198
- async def explain_local_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, client: typing.Union[typing.Any, None, UNSET] = None, model: typing.Union[ModelSpec, None, UNSET] = None, _baml: _BamlOptions | None = None) -> LocalExplanationText:
198
+ async def explain_local_async(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, language: typing.Union[str, UNSET] = "English", client: typing.Union[typing.Any, None, UNSET] = None, model: typing.Union[ModelSpec, None, UNSET] = None, _baml: _BamlOptions | None = None) -> LocalExplanationText:
199
199
  """Raises:
200
200
  CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
201
201