vectara-agentic 0.1.21__py3-none-any.whl → 0.1.22__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.

@@ -3,7 +3,7 @@ vectara_agentic package.
3
3
  """
4
4
 
5
5
  # Define the package version
6
- __version__ = "0.1.21"
6
+ __version__ = "0.1.22"
7
7
 
8
8
  # Import classes and functions from modules
9
9
  # from .module1 import Class1, function1
vectara_agentic/tools.py CHANGED
@@ -379,11 +379,20 @@ class VectaraToolFactory:
379
379
  rag_function.__annotations__["return"] = dict[str, Any]
380
380
  rag_function.__name__ = "_" + re.sub(r"[^A-Za-z0-9_]", "_", tool_name)
381
381
 
382
+ # Create the tool function signature string
383
+ fields = []
384
+ for name, field in tool_args_schema.__fields__.items():
385
+ annotation = field.annotation
386
+ type_name = annotation.__name__ if hasattr(annotation, '__name__') else str(annotation)
387
+ fields.append(f"{name}: {type_name}")
388
+ args_str = ", ".join(fields)
389
+ function_str = f"{tool_name}({args_str}) -> str"
390
+
382
391
  # Create the tool
383
392
  tool = VectaraTool.from_defaults(
384
393
  fn=rag_function,
385
394
  name=tool_name,
386
- description=tool_description,
395
+ description=function_str + ". " + tool_description,
387
396
  fn_schema=tool_args_schema,
388
397
  tool_type=ToolType.QUERY,
389
398
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectara_agentic
3
- Version: 0.1.21
3
+ Version: 0.1.22
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
@@ -16,18 +16,18 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
16
  Requires-Python: >=3.10
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: llama-index==0.12.5
19
+ Requires-Dist: llama-index==0.12.7
20
20
  Requires-Dist: llama-index-indices-managed-vectara==0.3.1
21
21
  Requires-Dist: llama-index-agent-llm-compiler==0.3.0
22
22
  Requires-Dist: llama-index-agent-lats==0.3.0
23
- Requires-Dist: llama-index-agent-openai==0.4.0
24
- Requires-Dist: llama-index-llms-openai==0.3.2
25
- Requires-Dist: llama-index-llms-anthropic==0.5.0
26
- Requires-Dist: llama-index-llms-together==0.3.0
27
- Requires-Dist: llama-index-llms-groq==0.3.0
23
+ Requires-Dist: llama-index-agent-openai==0.4.1
24
+ Requires-Dist: llama-index-llms-openai==0.3.12
25
+ Requires-Dist: llama-index-llms-anthropic==0.6.3
26
+ Requires-Dist: llama-index-llms-together==0.3.1
27
+ Requires-Dist: llama-index-llms-groq==0.3.1
28
28
  Requires-Dist: llama-index-llms-fireworks==0.3.0
29
29
  Requires-Dist: llama-index-llms-cohere==0.4.0
30
- Requires-Dist: llama-index-llms-gemini==0.4.0
30
+ Requires-Dist: llama-index-llms-gemini==0.4.2
31
31
  Requires-Dist: llama-index-tools-yahoo-finance==0.3.0
32
32
  Requires-Dist: llama-index-tools-arxiv==0.3.0
33
33
  Requires-Dist: llama-index-tools-database==0.3.0
@@ -1,19 +1,19 @@
1
1
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  tests/test_agent.py,sha256=aQYYr_8hKlFiDgyI5Dd39TG5vkmDJe7F_nIzMTCLsTQ,2517
3
3
  tests/test_tools.py,sha256=hDAlXkWKuXHnAjeQwMuTLTwNdRsM-xR7muBzFkZRefw,2942
4
- vectara_agentic/__init__.py,sha256=5s3oM7u770v6qiiJtlDHir6T612iUB8rWQnA2T3ae-o,508
4
+ vectara_agentic/__init__.py,sha256=X9K53dm3OLnIwIXZCiX2eQVCF5ou0jypGtFpTfrZYIs,508
5
5
  vectara_agentic/_callback.py,sha256=OBiHk_OJZTS3iKz_LigfEjnl_p5V90XYsQC0vEYVSPo,8782
6
6
  vectara_agentic/_observability.py,sha256=v0xxTk8KI8nVK2rpyGqOVhyva9ymqOmZK5brKqFOwMM,3828
7
7
  vectara_agentic/_prompts.py,sha256=N656x-bfy9I5j2Lw51gpaGq_8R6zpPelPQ2-KWHHpTk,6160
8
8
  vectara_agentic/agent.py,sha256=Vr8R4sR_ZxJfGI94Jjze4r_rCCWYNvJ9UqsfjlAReWM,22045
9
9
  vectara_agentic/agent_endpoint.py,sha256=I3zTEezbAiNeW5I41r0NjIaR8Ucn4oe1XVcALekakaA,1959
10
10
  vectara_agentic/db_tools.py,sha256=kCEENzmnorm8i-k4Kpd4KLJt1QWh_ZlAyX1aG-tzET0,3619
11
- vectara_agentic/tools.py,sha256=4nlgA-tKohG8jpKaS9SE7DjBwEQvOdqx3oOt4o-AiT0,24353
11
+ vectara_agentic/tools.py,sha256=OZ0qLtwS60J8XdVvuRDm21QBpLpEudVl659P37k8fCI,24798
12
12
  vectara_agentic/tools_catalog.py,sha256=5NlJypdu0IKa7mODxVOwo05lw3PqQJtSl_ZOsUDH_TA,3986
13
13
  vectara_agentic/types.py,sha256=siRh9VmFt3jhTu4uJzYpvNlLi60lyIH5_xqYHKpB24Q,1149
14
14
  vectara_agentic/utils.py,sha256=XzSo5tKSsQpgd6Kx3q-XREohbyIe7-UqlpUW-9y1KeQ,3998
15
- vectara_agentic-0.1.21.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- vectara_agentic-0.1.21.dist-info/METADATA,sha256=4crqVuWJDaks-mCe33gB7NuaAPb4lncyJhGCidd-BY0,14440
17
- vectara_agentic-0.1.21.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
18
- vectara_agentic-0.1.21.dist-info/top_level.txt,sha256=Y7TQTFdOYGYodQRltUGRieZKIYuzeZj2kHqAUpfCUfg,22
19
- vectara_agentic-0.1.21.dist-info/RECORD,,
15
+ vectara_agentic-0.1.22.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ vectara_agentic-0.1.22.dist-info/METADATA,sha256=Jrw5HeZ2nyTeAX6cf69qmmpPUo2bArUNpA2WB_gqndo,14441
17
+ vectara_agentic-0.1.22.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
18
+ vectara_agentic-0.1.22.dist-info/top_level.txt,sha256=Y7TQTFdOYGYodQRltUGRieZKIYuzeZj2kHqAUpfCUfg,22
19
+ vectara_agentic-0.1.22.dist-info/RECORD,,