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.
Files changed (21) hide show
  1. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/PKG-INFO +1 -1
  2. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/PKG-INFO +1 -1
  3. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/pyproject.toml +1 -1
  4. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/scenario.py +5 -4
  5. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/README.md +0 -0
  6. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/SOURCES.txt +0 -0
  7. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/dependency_links.txt +0 -0
  8. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/entry_points.txt +0 -0
  9. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/requires.txt +0 -0
  10. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/langwatch_scenario.egg-info/top_level.txt +0 -0
  11. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/__init__.py +0 -0
  12. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/cache.py +0 -0
  13. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/config.py +0 -0
  14. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/error_messages.py +0 -0
  15. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/pytest_plugin.py +0 -0
  16. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/result.py +0 -0
  17. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/scenario_executor.py +0 -0
  18. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/testing_agent.py +0 -0
  19. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/scenario/utils.py +0 -0
  20. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/setup.cfg +0 -0
  21. {langwatch_scenario-0.1.0 → langwatch_scenario-0.1.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langwatch-scenario
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: The end-to-end agent testing library
5
5
  Author-email: LangWatch Team <support@langwatch.ai>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langwatch-scenario
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: The end-to-end agent testing library
5
5
  Author-email: LangWatch Team <support@langwatch.ai>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "langwatch-scenario"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "The end-to-end agent testing library"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -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