Skip to content

Commit

Permalink
Edit tests to adjust to changes + web agent validation to false
Browse files Browse the repository at this point in the history
  • Loading branch information
hsauve-scottlogic committed Sep 5, 2024
1 parent d2d15fb commit 9693524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/agents/web_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def web_general_search_core(search_query, llm, model) -> str:
if await is_valid_answer(summary, search_query):
response = {
"content": summary,
"ignore_validation": "true"
"ignore_validation": "false"
}
return json.dumps(response, indent=4)
return "No relevant information found on the internet for the given query."
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/agents/datastore_agent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def test_generate_query_success(mock_load_prompt, mock_publish_log_info,
result = await generate_cypher_query_core(question_intent, operation, question_params, aggregation, sort_order,
timeframe, llm, model)

assert result == "Mocked response from the database"
assert result == '{\n "content": "Mocked response from the database",\n "ignore_validation": "false"\n}'
mock_load_prompt.assert_called()
llm.chat.assert_called_once_with(
model,
Expand Down

0 comments on commit 9693524

Please sign in to comment.