langwatch-scenario 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/PKG-INFO +1 -1
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/PKG-INFO +1 -1
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/pyproject.toml +1 -1
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/scenario.py +5 -4
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/README.md +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/SOURCES.txt +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/dependency_links.txt +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/entry_points.txt +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/requires.txt +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/top_level.txt +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/__init__.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/cache.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/config.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/error_messages.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/pytest_plugin.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/result.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/scenario_executor.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/testing_agent.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/utils.py +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/setup.cfg +0 -0
- {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/setup.py +0 -0
@@ -44,6 +44,11 @@ class Scenario(ScenarioConfig):
|
|
44
44
|
|
45
45
|
def __init__(self, description: str, **kwargs):
|
46
46
|
"""Validate scenario configuration after initialization."""
|
47
|
+
|
48
|
+
default_config = getattr(Scenario, "default_config", None)
|
49
|
+
if default_config:
|
50
|
+
kwargs = {**default_config.model_dump(), **kwargs}
|
51
|
+
|
47
52
|
if not description:
|
48
53
|
raise ValueError("Scenario description cannot be empty")
|
49
54
|
kwargs["description"] = description
|
@@ -58,10 +63,6 @@ class Scenario(ScenarioConfig):
|
|
58
63
|
if not callable(kwargs.get("agent")):
|
59
64
|
raise ValueError("Agent must be a callable function")
|
60
65
|
|
61
|
-
default_config = getattr(Scenario, "default_config", None)
|
62
|
-
if default_config:
|
63
|
-
kwargs = {**default_config.model_dump(), **kwargs}
|
64
|
-
|
65
66
|
super().__init__(**kwargs)
|
66
67
|
|
67
68
|
|
File without changes
|
{langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/entry_points.txt
RENAMED
File without changes
|
{langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/requires.txt
RENAMED
File without changes
|
{langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|