Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
FilterItem,
VectorSearchRetrieverToolInput,
)
from llama_index.core.agent import ReActAgent
from llama_index.core.agent.workflow import ReActAgent
from llama_index.core.embeddings import BaseEmbedding
from llama_index.core.tools import FunctionTool
from llama_index.llms.openai import OpenAI
Expand Down Expand Up @@ -135,7 +135,7 @@ def test_vector_search_retriever_tool_description_generation(index_name: str) ->
def test_vector_search_retriever_tool_bind_agent(index_name: str) -> None:
vector_search_tool = init_vector_search_tool(index_name)
llm = OpenAI()
assert ReActAgent.from_tools([vector_search_tool], llm=llm, verbose=True) is not None
assert ReActAgent(tools=[vector_search_tool], llm=llm, verbose=True) is not None


def test_vector_search_client_model_serving_environment():
Expand Down
10 changes: 5 additions & 5 deletions tests/databricks_ai_bridge/test_genie.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_ask_question(genie, mock_workspace_client):

def test_parse_query_result_empty():
resp = {"manifest": {"schema": {"columns": []}}, "result": None}
result = _parse_query_result(resp)
result = _parse_query_result(resp, truncate_results=True)
assert result == "EMPTY"


Expand All @@ -148,7 +148,7 @@ def test_parse_query_result_with_data():
]
},
}
result = _parse_query_result(resp)
result = _parse_query_result(resp, truncate_results=True)
expected_df = pd.DataFrame(
{
"id": [1, 2],
Expand Down Expand Up @@ -177,7 +177,7 @@ def test_parse_query_result_with_null_values():
]
},
}
result = _parse_query_result(resp)
result = _parse_query_result(resp, truncate_results=True)
expected_df = pd.DataFrame(
{
"id": [1, 2],
Expand Down Expand Up @@ -216,7 +216,7 @@ def test_parse_query_result_trims_data():
]
},
}
result = _parse_query_result(resp)
result = _parse_query_result(resp, truncate_results=True)
assert (
result
== pd.DataFrame(
Expand Down Expand Up @@ -288,7 +288,7 @@ def test_parse_query_result_trims_large_data(max_tokens):
"result": {"data_array": data_array},
}

markdown_result = _parse_query_result(response)
markdown_result = _parse_query_result(response, truncate_results=True)
result_df = markdown_to_dataframe(markdown_result)

expected_df = pd.DataFrame(
Expand Down