Skip to content

Commit

Permalink
✨ Use field notation
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha committed Nov 28, 2023
1 parent f472675 commit cd21b67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bananalyzer/data/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ def set_goal_if_fetch_id_provided(cls, values: Dict[str, Any]) -> Dict[str, Any]
if goal is not None:
raise ValueError("goal must not be provided if fetch_id is provided")

values["goal"] = get_fetch_schema(fetch_id).model_json_schema()
values["goal"] = get_fetch_schema(fetch_id).model_fields
return values
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bananalyzer"
version = "0.6.1"
version = "0.6.2"
description = "Open source AI Agent evaluation framework for web tasks 🐒🍌"
authors = ["asim-shrestha <[email protected]>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_example_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@ def test_fetch_with_fetch_id_and_goal_should_raise_validation_error() -> None:
def test_fetch_with_fetch_id_and_no_goal_sets_default_goal() -> None:
example_data = create_default_example({"fetch_id": "contact", "goal": None})
example = Example(**example_data)
print(get_fetch_schema("contact").model_json_schema())
assert example.goal == get_fetch_schema("contact").model_json_schema()
print(get_fetch_schema("contact").model_fields)
assert example.goal == get_fetch_schema("contact").model_fields

0 comments on commit cd21b67

Please sign in to comment.