ebaml 0.2.5__tar.gz → 0.3.0__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.
- {ebaml-0.2.5 → ebaml-0.3.0}/PKG-INFO +3 -2
- {ebaml-0.2.5 → ebaml-0.3.0}/README.md +2 -1
- {ebaml-0.2.5 → ebaml-0.3.0}/pyproject.toml +7 -5
- {ebaml-0.2.5 → ebaml-0.3.0}/pyproject.toml.orig +11 -2
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/.baml-generator-output.json +4 -4
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/__init__.py +44 -28
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/__init__.pyi +44 -28
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/_baml_sources.py +3 -3
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/_inlinedbaml.py +1 -1
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/__init__.py +4 -1
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/core/custom_types.py +0 -7
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/llm/descriptors.py +9 -7
- ebaml-0.3.0/src/ebaml/local/audience.py +346 -0
- ebaml-0.3.0/src/ebaml/local/fact_text.py +91 -0
- ebaml-0.2.5/src/ebaml/local/fact_text.py +0 -279
- {ebaml-0.2.5 → ebaml-0.3.0}/LICENSE +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/.baml-generator-output-root +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/.gitignore +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/_function_registry.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/_invocation_types.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/_invocation_types.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/_typemap.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/clients/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/clients/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/content/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/content/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/errors/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/errors/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/events/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/events/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/internal/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/internal/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/mcp/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/mcp/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/stream/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/stream/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/tools/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/tools/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/wire/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/ai/wire/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/crypto/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/crypto/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/csv/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/csv/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/env/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/env/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/errors/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/errors/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/fs/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/fs/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/future/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/future/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/glob/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/glob/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/hash/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/hash/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/host/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/host/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/http/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/http/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/io/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/io/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/iter/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/iter/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/json/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/json/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/media/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/media/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/net/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/net/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/ops/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/ops/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/panics/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/panics/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/random/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/random/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/regex/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/regex/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/sap/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/sap/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/spawn/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/spawn/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/sys/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/sys/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/time/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/time/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/toml/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/toml/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/ws/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/ws/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/yaml/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/baml/yaml/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/experimental/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/experimental/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/py.typed +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/class_/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/class_/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/enum/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/enum/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/errors/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/errors/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/function/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/function/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/interface/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/reflect/interface/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/anthropic/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/anthropic/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/anthropic/internal/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/anthropic/internal/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/assert_/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/assert_/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/aws/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/aws/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/aws/internal/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/aws/internal/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/claude_code/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/claude_code/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/claude_code/internal/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/claude_code/internal/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/google/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/google/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/google/internal/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/google/internal/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/internal/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/internal/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/internal/decisions/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/internal/decisions/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/testing/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/testing/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/trace/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/trace/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/typesafeai/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/typesafeai/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/typesafeai/internal/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/typesafeai/internal/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/vercel/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/vercel/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/vercel/internal/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/baml_sdk/vendor/vercel/internal/__init__.pyi +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/benchmark.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/core/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/core/exceptions.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/graphs/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/graphs/ebm_graph.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/graphs/graph_text.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/graphs/model_kinds.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/graphs/terms.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/graphs/token_budget.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/llm/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/llm/options.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/llm/provider_errors.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/llm/retry.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/llm/sdk_setup.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/local/__init__.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/local/facts.py +0 -0
- {ebaml-0.2.5 → ebaml-0.3.0}/src/ebaml/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ebaml
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
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
|
|
@@ -219,7 +219,8 @@ print(explanation.completions) # how certain the outcome is as inputs be
|
|
|
219
219
|
The facts are computed exactly from the scores and confidence intervals of the EBM (`ebaml.local`); the LLM only puts
|
|
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
|
-
`audience="data_scientist"` quotes scores, probabilities and confidence intervals.
|
|
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
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,
|
|
224
225
|
and `notebooks/local_explanations.py` walks through them on the Titanic data.
|
|
225
226
|
|
|
@@ -191,7 +191,8 @@ print(explanation.completions) # how certain the outcome is as inputs be
|
|
|
191
191
|
The facts are computed exactly from the scores and confidence intervals of the EBM (`ebaml.local`); the LLM only puts
|
|
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
|
-
`audience="data_scientist"` quotes scores, probabilities and confidence intervals.
|
|
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
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,
|
|
196
197
|
and `notebooks/local_explanations.py` walks through them on the Titanic data.
|
|
197
198
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ebaml"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.3.0"
|
|
4
4
|
description = "BAML for Explainable Boosting Machines: talk to your EBM."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -178,14 +178,16 @@ forbidden_modules = [
|
|
|
178
178
|
[[tool.importlinter.contracts]]
|
|
179
179
|
name = "Only llm.descriptors imports the BAML SDK"
|
|
180
180
|
type = "forbidden"
|
|
181
|
-
source_modules = [
|
|
182
|
-
"ebaml.llm.options",
|
|
183
|
-
"ebaml.llm.retry",
|
|
184
|
-
]
|
|
181
|
+
source_modules = ["ebaml.llm"]
|
|
185
182
|
forbidden_modules = [
|
|
186
183
|
"baml_sdk",
|
|
187
184
|
"baml_bridge",
|
|
188
185
|
]
|
|
186
|
+
ignore_imports = [
|
|
187
|
+
"ebaml.llm.descriptors -> baml_sdk",
|
|
188
|
+
"ebaml.llm.descriptors -> baml_bridge",
|
|
189
|
+
"ebaml.llm.provider_errors -> baml_bridge",
|
|
190
|
+
]
|
|
189
191
|
|
|
190
192
|
[[tool.importlinter.contracts]]
|
|
191
193
|
name = "The benchmark stands alone"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ebaml"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.3.0"
|
|
4
4
|
description = "BAML for Explainable Boosting Machines: talk to your EBM."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -210,8 +210,17 @@ forbidden_modules = ["baml_sdk", "baml_bridge"]
|
|
|
210
210
|
[[tool.importlinter.contracts]]
|
|
211
211
|
name = "Only llm.descriptors imports the BAML SDK"
|
|
212
212
|
type = "forbidden"
|
|
213
|
-
|
|
213
|
+
# The contract covers all of ebaml.llm, so a new module of the layer is guarded without an edit here.
|
|
214
|
+
source_modules = ["ebaml.llm"]
|
|
214
215
|
forbidden_modules = ["baml_sdk", "baml_bridge"]
|
|
216
|
+
# reason: the allowed imports of the BAML runtime: descriptors.py is the one module that calls baml_sdk, and
|
|
217
|
+
# provider_errors.py needs BamlError from baml_bridge to read the errors of the provider. import-linter sees an
|
|
218
|
+
# external package only at its top level, so each entry names baml_bridge, not baml_bridge.errors.
|
|
219
|
+
ignore_imports = [
|
|
220
|
+
"ebaml.llm.descriptors -> baml_sdk",
|
|
221
|
+
"ebaml.llm.descriptors -> baml_bridge",
|
|
222
|
+
"ebaml.llm.provider_errors -> baml_bridge",
|
|
223
|
+
]
|
|
215
224
|
|
|
216
225
|
[[tool.importlinter.contracts]]
|
|
217
226
|
name = "The benchmark stands alone"
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"relative_path": "__init__.py",
|
|
10
|
-
"sha256": "
|
|
10
|
+
"sha256": "2a4d10933fafdc515d9d7ad4167eebdf4f7f62843afdeb13857c7ac1fc57b511"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"relative_path": "__init__.pyi",
|
|
14
|
-
"sha256": "
|
|
14
|
+
"sha256": "4a77c5cd31b59934c0e9bd98cfb72cefb82180b585c834f3d821082f86b29342"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"relative_path": "_baml_sources.py",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "34cafda36a39e83dee0f6813bddc5dfde73e6b75c0d0222ae511b0ae5beb0146"
|
|
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": "
|
|
26
|
+
"sha256": "2166223bd0364df0d217132a34a6e7fa29bacf0becd6842598243a743ce0ecd6"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"relative_path": "_invocation_types.py",
|
|
@@ -145,12 +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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
local_user_msg = _define_function("user.local_user_msg", "sync", ["global_explanation", "prediction", "question", "facts", "audience", "dataset_description"], binding_name="local_user_msg", binding_qualname="local_user_msg", binding_module=__name__)
|
|
153
|
-
local_user_msg_async = _define_function("user.local_user_msg", "async", ["global_explanation", "prediction", "question", "facts", "audience", "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"], 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__)
|
|
154
150
|
|
|
155
151
|
|
|
156
152
|
counterfactual_question = _define_function("user.counterfactual_question", "sync", ["num_sentences"], binding_name="counterfactual_question", binding_qualname="counterfactual_question", binding_module=__name__)
|
|
@@ -165,70 +161,70 @@ completions_question = _define_function("user.completions_question", "sync
|
|
|
165
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__)
|
|
166
162
|
|
|
167
163
|
|
|
168
|
-
LocalCounterfactual = _define_function("user.LocalCounterfactual", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
169
165
|
LocalCounterfactual.__doc__ = """Raises:
|
|
170
166
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
171
|
-
LocalCounterfactual_async = _define_function("user.LocalCounterfactual", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
172
168
|
LocalCounterfactual_async.__doc__ = """Raises:
|
|
173
169
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
174
|
-
LocalCounterfactual_spec = _define_function("user.LocalCounterfactual@spec", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
175
171
|
LocalCounterfactual_spec.__doc__ = """Raises:
|
|
176
172
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
177
|
-
LocalCounterfactual_spec_async = _define_function("user.LocalCounterfactual@spec", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
178
174
|
LocalCounterfactual_spec_async.__doc__ = """Raises:
|
|
179
175
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
180
|
-
LocalCounterfactual_stream = _define_function("user.LocalCounterfactual@stream", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
181
177
|
LocalCounterfactual_stream.__doc__ = """Raises:
|
|
182
178
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
183
|
-
LocalCounterfactual_stream_async = _define_function("user.LocalCounterfactual@stream", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
184
180
|
LocalCounterfactual_stream_async.__doc__ = """Raises:
|
|
185
181
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
186
182
|
|
|
187
183
|
|
|
188
|
-
LocalSufficientReason = _define_function("user.LocalSufficientReason", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
189
185
|
LocalSufficientReason.__doc__ = """Raises:
|
|
190
186
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
191
|
-
LocalSufficientReason_async = _define_function("user.LocalSufficientReason", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
192
188
|
LocalSufficientReason_async.__doc__ = """Raises:
|
|
193
189
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
194
|
-
LocalSufficientReason_spec = _define_function("user.LocalSufficientReason@spec", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
195
191
|
LocalSufficientReason_spec.__doc__ = """Raises:
|
|
196
192
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
197
|
-
LocalSufficientReason_spec_async = _define_function("user.LocalSufficientReason@spec", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
198
194
|
LocalSufficientReason_spec_async.__doc__ = """Raises:
|
|
199
195
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
200
|
-
LocalSufficientReason_stream = _define_function("user.LocalSufficientReason@stream", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
201
197
|
LocalSufficientReason_stream.__doc__ = """Raises:
|
|
202
198
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
203
|
-
LocalSufficientReason_stream_async = _define_function("user.LocalSufficientReason@stream", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
204
200
|
LocalSufficientReason_stream_async.__doc__ = """Raises:
|
|
205
201
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
206
202
|
|
|
207
203
|
|
|
208
|
-
LocalCompletions = _define_function("user.LocalCompletions", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
209
205
|
LocalCompletions.__doc__ = """Raises:
|
|
210
206
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
211
|
-
LocalCompletions_async = _define_function("user.LocalCompletions", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
212
208
|
LocalCompletions_async.__doc__ = """Raises:
|
|
213
209
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
214
|
-
LocalCompletions_spec = _define_function("user.LocalCompletions@spec", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
215
211
|
LocalCompletions_spec.__doc__ = """Raises:
|
|
216
212
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
217
|
-
LocalCompletions_spec_async = _define_function("user.LocalCompletions@spec", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
218
214
|
LocalCompletions_spec_async.__doc__ = """Raises:
|
|
219
215
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
220
|
-
LocalCompletions_stream = _define_function("user.LocalCompletions@stream", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
221
217
|
LocalCompletions_stream.__doc__ = """Raises:
|
|
222
218
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
223
|
-
LocalCompletions_stream_async = _define_function("user.LocalCompletions@stream", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
224
220
|
LocalCompletions_stream_async.__doc__ = """Raises:
|
|
225
221
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
226
222
|
|
|
227
223
|
|
|
228
|
-
explain_local = _define_function("user.explain_local", "sync", ["global_explanation", "facts", "
|
|
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__)
|
|
229
225
|
explain_local.__doc__ = """Raises:
|
|
230
226
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
231
|
-
explain_local_async = _define_function("user.explain_local", "async", ["global_explanation", "facts", "
|
|
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__)
|
|
232
228
|
explain_local_async.__doc__ = """Raises:
|
|
233
229
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
234
230
|
|
|
@@ -366,6 +362,22 @@ count_sentences_async.__doc__ = """Raises:
|
|
|
366
362
|
Error"""
|
|
367
363
|
|
|
368
364
|
|
|
365
|
+
ties_figure_to_denial = _define_function("user.ties_figure_to_denial", "sync", ["text", "figure"], binding_name="ties_figure_to_denial", binding_qualname="ties_figure_to_denial", binding_module=__name__)
|
|
366
|
+
ties_figure_to_denial.__doc__ = """Raises:
|
|
367
|
+
Error"""
|
|
368
|
+
ties_figure_to_denial_async = _define_function("user.ties_figure_to_denial", "async", ["text", "figure"], binding_name="ties_figure_to_denial_async", binding_qualname="ties_figure_to_denial_async", binding_module=__name__)
|
|
369
|
+
ties_figure_to_denial_async.__doc__ = """Raises:
|
|
370
|
+
Error"""
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
live_layperson_guidance = _define_function("user.live_layperson_guidance", "sync", [], binding_name="live_layperson_guidance", binding_qualname="live_layperson_guidance", binding_module=__name__)
|
|
374
|
+
live_layperson_guidance_async = _define_function("user.live_layperson_guidance", "async", [], binding_name="live_layperson_guidance_async", binding_qualname="live_layperson_guidance_async", binding_module=__name__)
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
live_data_scientist_guidance = _define_function("user.live_data_scientist_guidance", "sync", [], binding_name="live_data_scientist_guidance", binding_qualname="live_data_scientist_guidance", binding_module=__name__)
|
|
378
|
+
live_data_scientist_guidance_async = _define_function("user.live_data_scientist_guidance", "async", [], binding_name="live_data_scientist_guidance_async", binding_qualname="live_data_scientist_guidance_async", binding_module=__name__)
|
|
379
|
+
|
|
380
|
+
|
|
369
381
|
live_layperson_facts = _define_function("user.live_layperson_facts", "sync", [], binding_name="live_layperson_facts", binding_qualname="live_layperson_facts", binding_module=__name__)
|
|
370
382
|
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
383
|
|
|
@@ -724,8 +736,6 @@ __all__ = [
|
|
|
724
736
|
"LocalExplanationText",
|
|
725
737
|
"local_system_msg",
|
|
726
738
|
"local_system_msg_async",
|
|
727
|
-
"audience_guidance",
|
|
728
|
-
"audience_guidance_async",
|
|
729
739
|
"local_user_msg",
|
|
730
740
|
"local_user_msg_async",
|
|
731
741
|
"counterfactual_question",
|
|
@@ -802,6 +812,12 @@ __all__ = [
|
|
|
802
812
|
"client_id_async",
|
|
803
813
|
"count_sentences",
|
|
804
814
|
"count_sentences_async",
|
|
815
|
+
"ties_figure_to_denial",
|
|
816
|
+
"ties_figure_to_denial_async",
|
|
817
|
+
"live_layperson_guidance",
|
|
818
|
+
"live_layperson_guidance_async",
|
|
819
|
+
"live_data_scientist_guidance",
|
|
820
|
+
"live_data_scientist_guidance_async",
|
|
805
821
|
"live_layperson_facts",
|
|
806
822
|
"live_layperson_facts_async",
|
|
807
823
|
"live_data_scientist_facts",
|
|
@@ -116,12 +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
|
|
120
|
-
async def
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
def local_user_msg(global_explanation: str, prediction: str, question: str, facts: str, audience: typing.Union[typing.Literal["layperson"], typing.Literal["data_scientist"]], dataset_description: str, *, _baml: _BamlOptions | None = None) -> str: ...
|
|
124
|
-
async def local_user_msg_async(global_explanation: str, prediction: str, question: str, facts: str, audience: typing.Union[typing.Literal["layperson"], typing.Literal["data_scientist"]], 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, *, _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: ...
|
|
125
121
|
|
|
126
122
|
|
|
127
123
|
def counterfactual_question(num_sentences: int, *, _baml: _BamlOptions | None = None) -> str: ...
|
|
@@ -136,70 +132,70 @@ def completions_question(num_sentences: int, *, _baml: _BamlOptions | None = Non
|
|
|
136
132
|
async def completions_question_async(num_sentences: int, *, _baml: _BamlOptions | None = None) -> str: ...
|
|
137
133
|
|
|
138
134
|
|
|
139
|
-
def LocalCounterfactual(global_explanation: str, facts: LocalFactTexts,
|
|
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:
|
|
140
136
|
"""Raises:
|
|
141
137
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
142
|
-
async def LocalCounterfactual_async(global_explanation: str, facts: LocalFactTexts,
|
|
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:
|
|
143
139
|
"""Raises:
|
|
144
140
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
145
|
-
def LocalCounterfactual_spec(global_explanation: str, facts: LocalFactTexts,
|
|
141
|
+
def LocalCounterfactual_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
|
|
146
142
|
"""Raises:
|
|
147
143
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
148
|
-
async def LocalCounterfactual_spec_async(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
149
145
|
"""Raises:
|
|
150
146
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
151
|
-
def LocalCounterfactual_stream(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
152
148
|
"""Raises:
|
|
153
149
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
154
|
-
async def LocalCounterfactual_stream_async(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
155
151
|
"""Raises:
|
|
156
152
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
157
153
|
|
|
158
154
|
|
|
159
|
-
def LocalSufficientReason(global_explanation: str, facts: LocalFactTexts,
|
|
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:
|
|
160
156
|
"""Raises:
|
|
161
157
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
162
|
-
async def LocalSufficientReason_async(global_explanation: str, facts: LocalFactTexts,
|
|
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:
|
|
163
159
|
"""Raises:
|
|
164
160
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
165
|
-
def LocalSufficientReason_spec(global_explanation: str, facts: LocalFactTexts,
|
|
161
|
+
def LocalSufficientReason_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
|
|
166
162
|
"""Raises:
|
|
167
163
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
168
|
-
async def LocalSufficientReason_spec_async(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
169
165
|
"""Raises:
|
|
170
166
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
171
|
-
def LocalSufficientReason_stream(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
172
168
|
"""Raises:
|
|
173
169
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
174
|
-
async def LocalSufficientReason_stream_async(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
175
171
|
"""Raises:
|
|
176
172
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
177
173
|
|
|
178
174
|
|
|
179
|
-
def LocalCompletions(global_explanation: str, facts: LocalFactTexts,
|
|
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:
|
|
180
176
|
"""Raises:
|
|
181
177
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
182
|
-
async def LocalCompletions_async(global_explanation: str, facts: LocalFactTexts,
|
|
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:
|
|
183
179
|
"""Raises:
|
|
184
180
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
185
|
-
def LocalCompletions_spec(global_explanation: str, facts: LocalFactTexts,
|
|
181
|
+
def LocalCompletions_spec(global_explanation: str, facts: LocalFactTexts, audience_guidance: str, num_sentences: int, opts: GraphPromptOptions, *, _baml: _BamlOptions | None = None) -> ai.FunctionSpec[str]:
|
|
186
182
|
"""Raises:
|
|
187
183
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
188
|
-
async def LocalCompletions_spec_async(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
189
185
|
"""Raises:
|
|
190
186
|
InvalidArgument, Io, ParseError, InvalidRequest"""
|
|
191
|
-
def LocalCompletions_stream(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
192
188
|
"""Raises:
|
|
193
189
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
194
|
-
async def LocalCompletions_stream_async(global_explanation: str, facts: LocalFactTexts,
|
|
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]:
|
|
195
191
|
"""Raises:
|
|
196
192
|
CompilationError, SpanError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
197
193
|
|
|
198
194
|
|
|
199
|
-
def explain_local(global_explanation: str, facts: LocalFactTexts,
|
|
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:
|
|
200
196
|
"""Raises:
|
|
201
197
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
202
|
-
async def explain_local_async(global_explanation: str, facts: LocalFactTexts,
|
|
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:
|
|
203
199
|
"""Raises:
|
|
204
200
|
CompilationError, InvalidArgument, Io, ParseError, Timeout, UnknownError"""
|
|
205
201
|
|
|
@@ -327,6 +323,22 @@ async def count_sentences_async(text: str, *, _baml: _BamlOptions | None = None)
|
|
|
327
323
|
Error"""
|
|
328
324
|
|
|
329
325
|
|
|
326
|
+
def ties_figure_to_denial(text: str, figure: str, *, _baml: _BamlOptions | None = None) -> bool:
|
|
327
|
+
"""Raises:
|
|
328
|
+
Error"""
|
|
329
|
+
async def ties_figure_to_denial_async(text: str, figure: str, *, _baml: _BamlOptions | None = None) -> bool:
|
|
330
|
+
"""Raises:
|
|
331
|
+
Error"""
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
def live_layperson_guidance(*, _baml: _BamlOptions | None = None) -> str: ...
|
|
335
|
+
async def live_layperson_guidance_async(*, _baml: _BamlOptions | None = None) -> str: ...
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
def live_data_scientist_guidance(*, _baml: _BamlOptions | None = None) -> str: ...
|
|
339
|
+
async def live_data_scientist_guidance_async(*, _baml: _BamlOptions | None = None) -> str: ...
|
|
340
|
+
|
|
341
|
+
|
|
330
342
|
def live_layperson_facts(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
|
|
331
343
|
async def live_layperson_facts_async(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
|
|
332
344
|
|
|
@@ -642,8 +654,6 @@ __all__ = [
|
|
|
642
654
|
"LocalExplanationText",
|
|
643
655
|
"local_system_msg",
|
|
644
656
|
"local_system_msg_async",
|
|
645
|
-
"audience_guidance",
|
|
646
|
-
"audience_guidance_async",
|
|
647
657
|
"local_user_msg",
|
|
648
658
|
"local_user_msg_async",
|
|
649
659
|
"counterfactual_question",
|
|
@@ -720,6 +730,12 @@ __all__ = [
|
|
|
720
730
|
"client_id_async",
|
|
721
731
|
"count_sentences",
|
|
722
732
|
"count_sentences_async",
|
|
733
|
+
"ties_figure_to_denial",
|
|
734
|
+
"ties_figure_to_denial_async",
|
|
735
|
+
"live_layperson_guidance",
|
|
736
|
+
"live_layperson_guidance_async",
|
|
737
|
+
"live_data_scientist_guidance",
|
|
738
|
+
"live_data_scientist_guidance_async",
|
|
723
739
|
"live_layperson_facts",
|
|
724
740
|
"live_layperson_facts_async",
|
|
725
741
|
"live_data_scientist_facts",
|