Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix example evals #4

Open
davidaparicio opened this issue Oct 31, 2024 · 0 comments
Open

Fix example evals #4

davidaparicio opened this issue Oct 31, 2024 · 0 comments

Comments

@davidaparicio
Copy link
Owner

Need to fix some example evals like : FAILED examples/triage_agent/evals.py::test_conversation_is_successful[messages0] - assert False == True or this one:

___________________________________________________________________________________________________ test_does_not_call_weather_when_not_asked[Hi!] ____________________________________________________________________________________________________

query = 'Hi!'

    @pytest.mark.parametrize(
        "query",
        [
            "Who's the president of the United States?",
            "What is the time right now?",
            "Hi!",
        ],
    )
    def test_does_not_call_weather_when_not_asked(query):
        tool_calls = run_and_get_tool_calls(weather_agent, query)

>       assert not tool_calls
E       assert not [{'function': {'arguments': '{"location": "New York", "time": "now"}', 'name': 'get_weather'}, 'id': 'call_0', 'type': 'function'}]

examples/weather_agent/evals.py:44: AssertionError
==== short test summary info =====
FAILED examples/weather_agent/evals.py::test_does_not_call_weather_when_not_asked[Who's the president of the United States?] - assert not [{'function': {'arguments': '{"location": "United States"}', 'name': 'get_weather'}, 'id': 'call_0', 'type': 'function'}]
FAILED examples/weather_agent/evals.py::test_does_not_call_weather_when_not_asked[What is the time right now?] - assert not [{'function': {'arguments': '{"location": "", "time": "now"}', 'name': 'get_weather'}, 'id': 'call_0', 'type': 'function'}]
FAILED examples/weather_agent/evals.py::test_does_not_call_weather_when_not_asked[Hi!] - assert not [{'function': {'arguments': '{"location": "New York", "time": "now"}', 'name': 'get_weather'}, 'id': 'call_0', 'type': 'function'}]
====== 3 failed, 3 passed in 3.10s ======

Screenshot 2024-10-31 at 22 44 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant