vectara-agentic 0.2.11__py3-none-any.whl → 0.2.13__py3-none-any.whl
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.
Potentially problematic release.
This version of vectara-agentic might be problematic. Click here for more details.
- tests/test_agent.py +18 -1
- tests/test_agent_planning.py +0 -9
- tests/test_agent_type.py +40 -0
- tests/test_tools.py +139 -41
- tests/test_vectara_llms.py +77 -0
- vectara_agentic/_prompts.py +8 -10
- vectara_agentic/_version.py +1 -1
- vectara_agentic/agent.py +240 -79
- vectara_agentic/db_tools.py +2 -2
- vectara_agentic/tools.py +330 -193
- vectara_agentic/utils.py +76 -47
- {vectara_agentic-0.2.11.dist-info → vectara_agentic-0.2.13.dist-info}/METADATA +338 -233
- vectara_agentic-0.2.13.dist-info/RECORD +30 -0
- {vectara_agentic-0.2.11.dist-info → vectara_agentic-0.2.13.dist-info}/WHEEL +1 -1
- vectara_agentic-0.2.11.dist-info/RECORD +0 -29
- {vectara_agentic-0.2.11.dist-info → vectara_agentic-0.2.13.dist-info}/licenses/LICENSE +0 -0
- {vectara_agentic-0.2.11.dist-info → vectara_agentic-0.2.13.dist-info}/top_level.txt +0 -0
vectara_agentic/db_tools.py
CHANGED
|
@@ -118,7 +118,7 @@ class DatabaseTools:
|
|
|
118
118
|
try:
|
|
119
119
|
count_rows = self._load_data(count_query)
|
|
120
120
|
except Exception as e:
|
|
121
|
-
return [f"Error ({str(e)}) occurred while counting number of rows"]
|
|
121
|
+
return [f"Error ({str(e)}) occurred while counting number of rows, check your query."]
|
|
122
122
|
num_rows = int(count_rows[0].text)
|
|
123
123
|
if num_rows > self.max_rows:
|
|
124
124
|
return [
|
|
@@ -128,7 +128,7 @@ class DatabaseTools:
|
|
|
128
128
|
try:
|
|
129
129
|
res = self._load_data(sql_query)
|
|
130
130
|
except Exception as e:
|
|
131
|
-
return [f"Error ({str(e)}) occurred while executing the query {sql_query}"]
|
|
131
|
+
return [f"Error ({str(e)}) occurred while executing the query {sql_query}, check your query."]
|
|
132
132
|
return [d.text for d in res]
|
|
133
133
|
|
|
134
134
|
def load_sample_data(self, table_name: str, num_rows: int = 25) -> Any:
|