ebaml 0.2.6__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.6 → ebaml-0.3.0}/PKG-INFO +3 -2
- {ebaml-0.2.6 → ebaml-0.3.0}/README.md +2 -1
- {ebaml-0.2.6 → ebaml-0.3.0}/pyproject.toml +1 -1
- {ebaml-0.2.6 → ebaml-0.3.0}/pyproject.toml.orig +1 -1
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/.baml-generator-output.json +4 -4
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/__init__.py +34 -28
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/__init__.pyi +34 -28
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/_baml_sources.py +3 -3
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/_inlinedbaml.py +1 -1
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/__init__.py +4 -1
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/core/custom_types.py +0 -7
- {ebaml-0.2.6 → 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.6/src/ebaml/local/fact_text.py +0 -294
- {ebaml-0.2.6 → ebaml-0.3.0}/LICENSE +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/.baml-generator-output-root +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/.gitignore +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/_function_registry.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/_invocation_types.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/_invocation_types.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/_typemap.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/clients/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/clients/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/content/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/content/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/errors/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/errors/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/events/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/events/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/internal/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/internal/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/mcp/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/mcp/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/stream/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/stream/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/tools/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/tools/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/wire/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/ai/wire/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/crypto/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/crypto/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/csv/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/csv/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/env/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/env/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/errors/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/errors/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/fs/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/fs/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/future/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/future/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/glob/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/glob/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/hash/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/hash/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/host/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/host/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/http/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/http/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/io/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/io/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/iter/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/iter/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/json/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/json/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/media/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/media/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/net/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/net/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/ops/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/ops/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/panics/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/panics/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/random/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/random/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/regex/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/regex/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/sap/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/sap/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/spawn/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/spawn/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/sys/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/sys/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/time/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/time/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/toml/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/toml/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/ws/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/ws/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/yaml/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/baml/yaml/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/experimental/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/experimental/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/py.typed +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/class_/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/class_/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/enum/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/enum/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/errors/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/errors/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/function/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/function/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/interface/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/reflect/interface/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/anthropic/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/anthropic/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/anthropic/internal/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/anthropic/internal/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/assert_/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/assert_/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/aws/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/aws/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/aws/internal/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/aws/internal/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/claude_code/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/claude_code/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/claude_code/internal/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/claude_code/internal/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/google/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/google/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/google/internal/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/google/internal/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/internal/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/internal/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/internal/decisions/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/openai/internal/decisions/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/testing/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/testing/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/trace/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/trace/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/typesafeai/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/typesafeai/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/typesafeai/internal/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/typesafeai/internal/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/vercel/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/vercel/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/vercel/internal/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/baml_sdk/vendor/vercel/internal/__init__.pyi +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/benchmark.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/core/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/core/exceptions.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/graphs/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/graphs/ebm_graph.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/graphs/graph_text.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/graphs/model_kinds.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/graphs/terms.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/graphs/token_budget.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/llm/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/llm/options.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/llm/provider_errors.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/llm/retry.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/llm/sdk_setup.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/local/__init__.py +0 -0
- {ebaml-0.2.6 → ebaml-0.3.0}/src/ebaml/local/facts.py +0 -0
- {ebaml-0.2.6 → 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
|
|
|
@@ -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
|
|
|
@@ -374,6 +370,14 @@ ties_figure_to_denial_async.__doc__ = """Raises:
|
|
|
374
370
|
Error"""
|
|
375
371
|
|
|
376
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
|
+
|
|
377
381
|
live_layperson_facts = _define_function("user.live_layperson_facts", "sync", [], binding_name="live_layperson_facts", binding_qualname="live_layperson_facts", binding_module=__name__)
|
|
378
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__)
|
|
379
383
|
|
|
@@ -732,8 +736,6 @@ __all__ = [
|
|
|
732
736
|
"LocalExplanationText",
|
|
733
737
|
"local_system_msg",
|
|
734
738
|
"local_system_msg_async",
|
|
735
|
-
"audience_guidance",
|
|
736
|
-
"audience_guidance_async",
|
|
737
739
|
"local_user_msg",
|
|
738
740
|
"local_user_msg_async",
|
|
739
741
|
"counterfactual_question",
|
|
@@ -812,6 +814,10 @@ __all__ = [
|
|
|
812
814
|
"count_sentences_async",
|
|
813
815
|
"ties_figure_to_denial",
|
|
814
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",
|
|
815
821
|
"live_layperson_facts",
|
|
816
822
|
"live_layperson_facts_async",
|
|
817
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
|
|
|
@@ -335,6 +331,14 @@ async def ties_figure_to_denial_async(text: str, figure: str, *, _baml: _BamlOpt
|
|
|
335
331
|
Error"""
|
|
336
332
|
|
|
337
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
|
+
|
|
338
342
|
def live_layperson_facts(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
|
|
339
343
|
async def live_layperson_facts_async(*, _baml: _BamlOptions | None = None) -> LocalFactTexts: ...
|
|
340
344
|
|
|
@@ -650,8 +654,6 @@ __all__ = [
|
|
|
650
654
|
"LocalExplanationText",
|
|
651
655
|
"local_system_msg",
|
|
652
656
|
"local_system_msg_async",
|
|
653
|
-
"audience_guidance",
|
|
654
|
-
"audience_guidance_async",
|
|
655
657
|
"local_user_msg",
|
|
656
658
|
"local_user_msg_async",
|
|
657
659
|
"counterfactual_question",
|
|
@@ -730,6 +732,10 @@ __all__ = [
|
|
|
730
732
|
"count_sentences_async",
|
|
731
733
|
"ties_figure_to_denial",
|
|
732
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",
|
|
733
739
|
"live_layperson_facts",
|
|
734
740
|
"live_layperson_facts_async",
|
|
735
741
|
"live_data_scientist_facts",
|