vectara-agentic 0.1.0__tar.gz → 0.1.1__tar.gz

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.

Files changed (22) hide show
  1. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/PKG-INFO +21 -1
  2. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/setup.py +1 -1
  3. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/agent.py +1 -1
  4. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/tools.py +48 -33
  5. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/PKG-INFO +22 -2
  6. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/LICENSE +0 -0
  7. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/MANIFEST.in +0 -0
  8. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/README.md +0 -0
  9. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/requirements.txt +0 -0
  10. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/setup.cfg +0 -0
  11. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/tests/test_agent.py +0 -0
  12. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/tests/test_tools.py +0 -0
  13. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/__init__.py +0 -0
  14. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/_callback.py +0 -0
  15. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/_prompts.py +0 -0
  16. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/tools_catalog.py +0 -0
  17. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/types.py +0 -0
  18. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic/utils.py +0 -0
  19. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/SOURCES.txt +0 -0
  20. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/dependency_links.txt +0 -0
  21. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/requires.txt +0 -0
  22. {vectara_agentic-0.1.0 → vectara_agentic-0.1.1}/vectara_agentic.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectara_agentic
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A Python package for creating AI Assistants and AI Agents with Vectara
5
5
  Home-page: https://github.com/vectara/py-vectara-agentic
6
6
  Author: Ofer Mendelevitch
@@ -11,6 +11,26 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
+ Requires-Dist: llama-index==0.10.64
15
+ Requires-Dist: llama-index-indices-managed-vectara==0.1.7
16
+ Requires-Dist: llama-index-agent-llm-compiler==0.1.0
17
+ Requires-Dist: llama-index-agent-openai==0.2.9
18
+ Requires-Dist: llama-index-llms-openai==0.1.29
19
+ Requires-Dist: llama-index-llms-anthropic==0.1.17
20
+ Requires-Dist: llama-index-llms-together==0.1.3
21
+ Requires-Dist: llama-index-llms-groq==0.1.4
22
+ Requires-Dist: llama-index-tools-yahoo-finance==0.1.1
23
+ Requires-Dist: llama-index-tools-arxiv==0.1.3
24
+ Requires-Dist: llama-index-tools-database==0.1.3
25
+ Requires-Dist: llama-index-tools-google==0.1.6
26
+ Requires-Dist: llama-index-tools-tavily_research==0.1.3
27
+ Requires-Dist: llama-index-llms-fireworks==0.1.8
28
+ Requires-Dist: pydantic==1.10.17
29
+ Requires-Dist: retrying==1.3.4
30
+ Requires-Dist: mypy==1.11.0
31
+ Requires-Dist: pylint==3.2.6
32
+ Requires-Dist: flake8==7.1.0
33
+ Requires-Dist: pymongo==4.6.1
14
34
 
15
35
  # vectara-agentic
16
36
 
@@ -8,7 +8,7 @@ def read_requirements():
8
8
 
9
9
  setup(
10
10
  name="vectara_agentic",
11
- version="0.1.0",
11
+ version="0.1.1",
12
12
  author="Ofer Mendelevitch",
13
13
  author_email="ofer@vectara.com",
14
14
  description="A Python package for creating AI Assistants and AI Agents with Vectara",
@@ -1,4 +1,4 @@
1
- """"
1
+ """
2
2
  This module contains the Agent class for handling different types of agents and their interactions.
3
3
  """
4
4
 
@@ -99,21 +99,25 @@ class VectaraToolFactory:
99
99
  """
100
100
  Creates a RAG (Retrieve and Generate) tool.
101
101
 
102
- Parameters:
103
- - tool_name (str): The name of the tool.
104
- - tool_description (str): The description of the tool.
105
- - tool_args_schema (BaseModel): The schema for the tool arguments.
106
- - vectara_summarizer (str): The Vectara summarizer to use.
107
- - summary_num_results (int): The number of summary results.
108
- - summary_response_lang (str): The response language for the summary.
109
- - n_sentences_before (int): Number of sentences before the summary.
110
- - n_sentences_after (int): Number of sentences after the summary.
111
- - lambda_val (float): Lambda value for the Vectara query.
112
- - reranker (str): The reranker mode.
113
- - rerank_k (int): Number of top-k documents for reranking.
114
- - mmr_diversity_bias (float): MMR diversity bias.
115
- - include_citations (bool): Whether to include citations in the response.
116
- If True, uses MARKDOWN vectara citations that requires the Vectara scale plan.
102
+ Args:
103
+
104
+ tool_name (str): The name of the tool.
105
+ tool_description (str): The description of the tool.
106
+ tool_args_schema (BaseModel): The schema for the tool arguments.
107
+ vectara_summarizer (str): The Vectara summarizer to use.
108
+ summary_num_results (int): The number of summary results.
109
+ summary_response_lang (str): The response language for the summary.
110
+ n_sentences_before (int): Number of sentences before the summary.
111
+ n_sentences_after (int): Number of sentences after the summary.
112
+ lambda_val (float): Lambda value for the Vectara query.
113
+ reranker (str): The reranker mode.
114
+ rerank_k (int): Number of top-k documents for reranking.
115
+ mmr_diversity_bias (float): MMR diversity bias.
116
+ include_citations (bool): Whether to include citations in the response.
117
+ If True, uses MARKDOWN vectara citations that requires the Vectara scale plan.
118
+
119
+ Returns:
120
+ VectaraTool: A VectaraTool object.
117
121
  """
118
122
  vectara = VectaraIndex(
119
123
  vectara_api_key=self.vectara_api_key,
@@ -258,9 +262,12 @@ class ToolsFactory:
258
262
  """
259
263
  Create a tool from a function.
260
264
 
261
- Parameters:
262
- - function (Callable): a function to convert into a tool.
263
- - tool_type (ToolType): the type of tool.
265
+ Args:
266
+ function (Callable): a function to convert into a tool.
267
+ tool_type (ToolType): the type of tool.
268
+
269
+ Returns:
270
+ list[FunctionTool]: a list of FunctionTool objects.
264
271
  """
265
272
  return VectaraTool(FunctionTool.from_defaults(function), tool_type)
266
273
 
@@ -275,10 +282,13 @@ class ToolsFactory:
275
282
  Get a tool from the llama_index hub.
276
283
 
277
284
  Parameters:
278
- - tool_package_name (str): The name of the tool package.
279
- - tool_spec_name (str): The name of the tool spec.
280
- - tool_name_prefix (str): The prefix to add to the tool names (added to every tool in the spec).
281
- - kwargs (dict): The keyword arguments to pass to the tool constructor (see Hub for tool specific details).
285
+ tool_package_name (str): The name of the tool package.
286
+ tool_spec_name (str): The name of the tool spec.
287
+ tool_name_prefix (str): The prefix to add to the tool names (added to every tool in the spec).
288
+ kwargs (dict): The keyword arguments to pass to the tool constructor (see Hub for tool specific details).
289
+
290
+ Returns:
291
+ list[FunctionTool]: a list of FunctionTool objects
282
292
  """
283
293
  # Dynamically install and import the module
284
294
  if tool_package_name not in LI_packages.keys():
@@ -369,18 +379,23 @@ class ToolsFactory:
369
379
  dbname: str = "postgres",
370
380
  ) -> List[FunctionTool]:
371
381
  """
372
- returns a list of database tools.
382
+ Returns a list of database tools.
383
+
373
384
  Args:
374
- - tool_name_prefix (str, optional): The prefix to add to the tool names. Defaults to "".
375
- - content_description (str, optional): The content description for the database. Defaults to None.
376
- - sql_database (SQLDatabase, optional): The SQLDatabase object. Defaults to None.
377
- - scheme (str, optional): The database scheme. Defaults to None.
378
- - host (str, optional): The database host. Defaults to "localhost".
379
- - port (str, optional): The database port. Defaults to "5432".
380
- - user (str, optional): The database user. Defaults to "postgres".
381
- - password (str, optional): The database password. Defaults to "Password".
382
- - dbname (str, optional): The database name. Defaults to "postgres".
383
- You must specify either the sql_database object or the scheme, host, port, user, password, and dbname.
385
+
386
+ tool_name_prefix (str, optional): The prefix to add to the tool names. Defaults to "".
387
+ content_description (str, optional): The content description for the database. Defaults to None.
388
+ sql_database (SQLDatabase, optional): The SQLDatabase object. Defaults to None.
389
+ scheme (str, optional): The database scheme. Defaults to None.
390
+ host (str, optional): The database host. Defaults to "localhost".
391
+ port (str, optional): The database port. Defaults to "5432".
392
+ user (str, optional): The database user. Defaults to "postgres".
393
+ password (str, optional): The database password. Defaults to "Password".
394
+ dbname (str, optional): The database name. Defaults to "postgres".
395
+ You must specify either the sql_database object or the scheme, host, port, user, password, and dbname.
396
+
397
+ Returns:
398
+ List[FunctionTool]: A list of FunctionTool objects
384
399
  """
385
400
  if sql_database:
386
401
  tools = self.get_llama_index_tools(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: vectara-agentic
3
- Version: 0.1.0
2
+ Name: vectara_agentic
3
+ Version: 0.1.1
4
4
  Summary: A Python package for creating AI Assistants and AI Agents with Vectara
5
5
  Home-page: https://github.com/vectara/py-vectara-agentic
6
6
  Author: Ofer Mendelevitch
@@ -11,6 +11,26 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
+ Requires-Dist: llama-index==0.10.64
15
+ Requires-Dist: llama-index-indices-managed-vectara==0.1.7
16
+ Requires-Dist: llama-index-agent-llm-compiler==0.1.0
17
+ Requires-Dist: llama-index-agent-openai==0.2.9
18
+ Requires-Dist: llama-index-llms-openai==0.1.29
19
+ Requires-Dist: llama-index-llms-anthropic==0.1.17
20
+ Requires-Dist: llama-index-llms-together==0.1.3
21
+ Requires-Dist: llama-index-llms-groq==0.1.4
22
+ Requires-Dist: llama-index-tools-yahoo-finance==0.1.1
23
+ Requires-Dist: llama-index-tools-arxiv==0.1.3
24
+ Requires-Dist: llama-index-tools-database==0.1.3
25
+ Requires-Dist: llama-index-tools-google==0.1.6
26
+ Requires-Dist: llama-index-tools-tavily_research==0.1.3
27
+ Requires-Dist: llama-index-llms-fireworks==0.1.8
28
+ Requires-Dist: pydantic==1.10.17
29
+ Requires-Dist: retrying==1.3.4
30
+ Requires-Dist: mypy==1.11.0
31
+ Requires-Dist: pylint==3.2.6
32
+ Requires-Dist: flake8==7.1.0
33
+ Requires-Dist: pymongo==4.6.1
14
34
 
15
35
  # vectara-agentic
16
36
 
File without changes