vectara-agentic 0.1.11__tar.gz → 0.1.13__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 (23) hide show
  1. {vectara_agentic-0.1.11/vectara_agentic.egg-info → vectara_agentic-0.1.13}/PKG-INFO +5 -2
  2. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/requirements.txt +4 -1
  3. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/setup.py +1 -1
  4. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/__init__.py +1 -1
  5. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/_observability.py +5 -5
  6. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/agent.py +4 -2
  7. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13/vectara_agentic.egg-info}/PKG-INFO +5 -2
  8. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic.egg-info/requires.txt +4 -1
  9. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/LICENSE +0 -0
  10. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/MANIFEST.in +0 -0
  11. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/README.md +0 -0
  12. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/setup.cfg +0 -0
  13. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/tests/test_agent.py +0 -0
  14. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/tests/test_tools.py +0 -0
  15. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/_callback.py +0 -0
  16. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/_prompts.py +0 -0
  17. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/tools.py +0 -0
  18. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/tools_catalog.py +0 -0
  19. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/types.py +0 -0
  20. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic/utils.py +0 -0
  21. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic.egg-info/SOURCES.txt +0 -0
  22. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/vectara_agentic.egg-info/dependency_links.txt +0 -0
  23. {vectara_agentic-0.1.11 → vectara_agentic-0.1.13}/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.11
3
+ Version: 0.1.13
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
@@ -32,9 +32,12 @@ Requires-Dist: llama-index-tools-arxiv==0.2.0
32
32
  Requires-Dist: llama-index-tools-database==0.2.0
33
33
  Requires-Dist: llama-index-tools-google==0.2.0
34
34
  Requires-Dist: llama-index-tools-tavily_research==0.2.0
35
+ Requires-Dist: tavily-python==0.5.0
36
+ Requires-Dist: yahoo-finance==1.4.0
35
37
  Requires-Dist: openinference-instrumentation-llama-index==3.0.2
36
- Requires-Dist: opentelemetry-proto==1.16.0
38
+ Requires-Dist: arize-phoenix==4.35.1
37
39
  Requires-Dist: arize-phoenix-otel==0.5.1
40
+ Requires-Dist: tokenizers>=0.20
38
41
  Requires-Dist: pydantic==2.9.2
39
42
  Requires-Dist: retrying==1.3.4
40
43
  Requires-Dist: pymongo==4.6.3
@@ -14,9 +14,12 @@ llama-index-tools-arxiv==0.2.0
14
14
  llama-index-tools-database==0.2.0
15
15
  llama-index-tools-google==0.2.0
16
16
  llama-index-tools-tavily_research==0.2.0
17
+ tavily-python==0.5.0
18
+ yahoo-finance==1.4.0
17
19
  openinference-instrumentation-llama-index==3.0.2
18
- opentelemetry-proto==1.16.0
20
+ arize-phoenix==4.35.1
19
21
  arize-phoenix-otel==0.5.1
22
+ tokenizers>=0.20
20
23
  pydantic==2.9.2
21
24
  retrying==1.3.4
22
25
  pymongo==4.6.3
@@ -8,7 +8,7 @@ def read_requirements():
8
8
 
9
9
  setup(
10
10
  name="vectara_agentic",
11
- version="0.1.11",
11
+ version="0.1.13",
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",
@@ -3,7 +3,7 @@ vectara_agentic package.
3
3
  """
4
4
 
5
5
  # Define the package version
6
- __version__ = "0.1.11"
6
+ __version__ = "0.1.13"
7
7
 
8
8
  # Import classes and functions from modules
9
9
  # from .module1 import Class1, function1
@@ -10,13 +10,13 @@ from phoenix.trace import SpanEvaluations
10
10
 
11
11
  from .types import ObserverType
12
12
 
13
- def setup_observer():
13
+ def setup_observer() -> bool:
14
14
  observer = ObserverType(os.getenv("VECTARA_AGENTIC_OBSERVER_TYPE", "NO_OBSERVER"))
15
15
  if observer == ObserverType.ARIZE_PHOENIX:
16
16
  phoenix_endpoint = os.getenv("PHOENIX_ENDPOINT", None)
17
17
  if not phoenix_endpoint:
18
18
  px.launch_app()
19
- tracer_provider = register(endpoint='http://localhost:6006', project_name="vectara-agentic")
19
+ tracer_provider = register(endpoint='http://localhost:6006/v1/traces', project_name="vectara-agentic")
20
20
  elif 'app.phoenix.arize.com' in phoenix_endpoint: # hosted on Arizze
21
21
  phoenix_api_key = os.getenv("PHOENIX_API_KEY", None)
22
22
  if not phoenix_api_key:
@@ -27,9 +27,10 @@ def setup_observer():
27
27
  else: # Self hosted Phoenix
28
28
  tracer_provider = register(endpoint=phoenix_endpoint, project_name="vectara-agentic")
29
29
  LlamaIndexInstrumentor().instrument(tracer_provider=tracer_provider)
30
+ return True
30
31
  else:
31
32
  print("No observer set.")
32
-
33
+ return False
33
34
 
34
35
  def _extract_fcs_value(output):
35
36
  try:
@@ -64,8 +65,7 @@ def eval_fcs():
64
65
  )
65
66
  client = px.Client()
66
67
  all_spans = client.query_spans(query, project_name="vectara-agentic")
67
-
68
- vectara_spans = all_spans[all_spans['name'] == 'VectaraQueryEngine._query']
68
+ vectara_spans = all_spans[all_spans['name'] == 'VectaraQueryEngine._query'].copy()
69
69
  vectara_spans['top_level_parent_id'] = vectara_spans.apply(lambda row: _find_top_level_parent_id(row, all_spans), axis=1)
70
70
  vectara_spans['score'] = vectara_spans['output.value'].apply(lambda x: _extract_fcs_value(x))
71
71
 
@@ -142,9 +142,10 @@ class Agent:
142
142
  raise ValueError(f"Unknown agent type: {self.agent_type}")
143
143
 
144
144
  try:
145
- setup_observer()
145
+ self.observability_enabled = setup_observer()
146
146
  except Exception as e:
147
147
  print(f"Failed to set up observer ({e}), ignoring")
148
+ self.observability_enabled = False
148
149
 
149
150
  def __eq__(self, other):
150
151
  if not isinstance(other, Agent):
@@ -346,7 +347,8 @@ class Agent:
346
347
  agent_response = self.agent.chat(prompt)
347
348
  if self.verbose:
348
349
  print(f"Time taken: {time.time() - st}")
349
- eval_fcs()
350
+ if self.observability_enabled:
351
+ eval_fcs()
350
352
  return agent_response.response
351
353
  except Exception as e:
352
354
  import traceback
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vectara_agentic
3
- Version: 0.1.11
3
+ Version: 0.1.13
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
@@ -32,9 +32,12 @@ Requires-Dist: llama-index-tools-arxiv==0.2.0
32
32
  Requires-Dist: llama-index-tools-database==0.2.0
33
33
  Requires-Dist: llama-index-tools-google==0.2.0
34
34
  Requires-Dist: llama-index-tools-tavily_research==0.2.0
35
+ Requires-Dist: tavily-python==0.5.0
36
+ Requires-Dist: yahoo-finance==1.4.0
35
37
  Requires-Dist: openinference-instrumentation-llama-index==3.0.2
36
- Requires-Dist: opentelemetry-proto==1.16.0
38
+ Requires-Dist: arize-phoenix==4.35.1
37
39
  Requires-Dist: arize-phoenix-otel==0.5.1
40
+ Requires-Dist: tokenizers>=0.20
38
41
  Requires-Dist: pydantic==2.9.2
39
42
  Requires-Dist: retrying==1.3.4
40
43
  Requires-Dist: pymongo==4.6.3
@@ -14,9 +14,12 @@ llama-index-tools-arxiv==0.2.0
14
14
  llama-index-tools-database==0.2.0
15
15
  llama-index-tools-google==0.2.0
16
16
  llama-index-tools-tavily_research==0.2.0
17
+ tavily-python==0.5.0
18
+ yahoo-finance==1.4.0
17
19
  openinference-instrumentation-llama-index==3.0.2
18
- opentelemetry-proto==1.16.0
20
+ arize-phoenix==4.35.1
19
21
  arize-phoenix-otel==0.5.1
22
+ tokenizers>=0.20
20
23
  pydantic==2.9.2
21
24
  retrying==1.3.4
22
25
  pymongo==4.6.3