vectara-agentic 0.1.12__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.
- {vectara_agentic-0.1.12/vectara_agentic.egg-info → vectara_agentic-0.1.13}/PKG-INFO +4 -2
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/requirements.txt +3 -1
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/setup.py +1 -1
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/__init__.py +1 -1
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/_observability.py +3 -2
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/agent.py +4 -2
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13/vectara_agentic.egg-info}/PKG-INFO +4 -2
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic.egg-info/requires.txt +3 -1
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/LICENSE +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/MANIFEST.in +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/README.md +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/setup.cfg +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/tests/test_agent.py +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/tests/test_tools.py +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/_callback.py +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/_prompts.py +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/tools.py +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/tools_catalog.py +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/types.py +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic/utils.py +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic.egg-info/SOURCES.txt +0 -0
- {vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic.egg-info/dependency_links.txt +0 -0
- {vectara_agentic-0.1.12 → 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.
|
|
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,8 +32,10 @@ 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:
|
|
38
|
+
Requires-Dist: arize-phoenix==4.35.1
|
|
37
39
|
Requires-Dist: arize-phoenix-otel==0.5.1
|
|
38
40
|
Requires-Dist: tokenizers>=0.20
|
|
39
41
|
Requires-Dist: pydantic==2.9.2
|
|
@@ -14,8 +14,10 @@ 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
|
-
|
|
20
|
+
arize-phoenix==4.35.1
|
|
19
21
|
arize-phoenix-otel==0.5.1
|
|
20
22
|
tokenizers>=0.20
|
|
21
23
|
pydantic==2.9.2
|
|
@@ -10,7 +10,7 @@ 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)
|
|
@@ -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:
|
|
@@ -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
|
-
|
|
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.
|
|
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,8 +32,10 @@ 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:
|
|
38
|
+
Requires-Dist: arize-phoenix==4.35.1
|
|
37
39
|
Requires-Dist: arize-phoenix-otel==0.5.1
|
|
38
40
|
Requires-Dist: tokenizers>=0.20
|
|
39
41
|
Requires-Dist: pydantic==2.9.2
|
|
@@ -14,8 +14,10 @@ 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
|
-
|
|
20
|
+
arize-phoenix==4.35.1
|
|
19
21
|
arize-phoenix-otel==0.5.1
|
|
20
22
|
tokenizers>=0.20
|
|
21
23
|
pydantic==2.9.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vectara_agentic-0.1.12 → vectara_agentic-0.1.13}/vectara_agentic.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|