vectara-agentic 0.4.5__tar.gz → 0.4.6__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.4.5/vectara_agentic.egg-info → vectara_agentic-0.4.6}/PKG-INFO +1 -1
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/_version.py +1 -1
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/utils/tools.py +19 -11
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/tools.py +2 -1
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6/vectara_agentic.egg-info}/PKG-INFO +1 -1
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/LICENSE +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/MANIFEST.in +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/README.md +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/requirements.txt +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/setup.cfg +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/setup.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/__init__.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/benchmark_models.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/conftest.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/endpoint.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/run_tests.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_agent.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_agent_fallback_memory.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_agent_memory_consistency.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_agent_type.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_api_endpoint.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_bedrock.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_fallback.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_gemini.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_groq.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_openai.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_private_llm.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_react_error_handling.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_react_memory.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_react_streaming.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_react_workflow_events.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_return_direct.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_serialization.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_session_memory.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_streaming.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_together.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_tools.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_vectara_llms.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_vhc.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/tests/test_workflow.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/__init__.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/_callback.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/_observability.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_config.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/__init__.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/factory.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/prompts.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/serialization.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/streaming.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/utils/__init__.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/utils/hallucination.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/utils/logging.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/utils/schemas.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_endpoint.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/db_tools.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/llm_utils.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/sub_query_workflow.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/tool_utils.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/tools_catalog.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/types.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/utils.py +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic.egg-info/SOURCES.txt +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic.egg-info/dependency_links.txt +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic.egg-info/requires.txt +0 -0
- {vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic.egg-info/top_level.txt +0 -0
|
@@ -9,9 +9,11 @@ import inspect
|
|
|
9
9
|
from typing import Any, List
|
|
10
10
|
from inspect import Signature, Parameter, ismethod
|
|
11
11
|
from collections import Counter
|
|
12
|
+
import logging
|
|
12
13
|
|
|
13
14
|
from pydantic import Field, create_model
|
|
14
15
|
from llama_index.core.tools import FunctionTool
|
|
16
|
+
|
|
15
17
|
from ...llm_utils import get_llm
|
|
16
18
|
from ...types import LLMRole
|
|
17
19
|
|
|
@@ -37,17 +39,23 @@ def sanitize_tools_for_gemini(tools: List[FunctionTool]) -> List[FunctionTool]:
|
|
|
37
39
|
for func in (tool.fn, tool.async_fn):
|
|
38
40
|
if not func:
|
|
39
41
|
continue
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
func
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
try:
|
|
43
|
+
orig_sig = inspect.signature(func)
|
|
44
|
+
new_params = [
|
|
45
|
+
p.replace(default=Parameter.empty) for p in orig_sig.parameters.values()
|
|
46
|
+
]
|
|
47
|
+
new_sig = Signature(
|
|
48
|
+
new_params, return_annotation=orig_sig.return_annotation
|
|
49
|
+
)
|
|
50
|
+
if ismethod(func):
|
|
51
|
+
func.__func__.__signature__ = new_sig
|
|
52
|
+
else:
|
|
53
|
+
func.__signature__ = new_sig
|
|
54
|
+
except Exception as e:
|
|
55
|
+
logging.warning(
|
|
56
|
+
f"Could not modify signature for tool '{tool.metadata.name}': {e}. "
|
|
57
|
+
"Proceeding with Pydantic schema modification."
|
|
58
|
+
)
|
|
51
59
|
|
|
52
60
|
# 2) Rebuild the Pydantic schema so that *every* field is required
|
|
53
61
|
schema_cls = getattr(tool.metadata, "fn_schema", None)
|
|
@@ -673,7 +673,8 @@ class ToolsFactory:
|
|
|
673
673
|
VectaraTool: A VectaraTool object.
|
|
674
674
|
"""
|
|
675
675
|
return VectaraTool.from_defaults(
|
|
676
|
-
tool_type=tool_type, fn=function, vhc_eligible=vhc_eligible
|
|
676
|
+
tool_type=tool_type, fn=function, vhc_eligible=vhc_eligible,
|
|
677
|
+
description=function.__doc__,
|
|
677
678
|
)
|
|
678
679
|
|
|
679
680
|
def get_llama_index_tools(
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/utils/__init__.py
RENAMED
|
File without changes
|
{vectara_agentic-0.4.5 → vectara_agentic-0.4.6}/vectara_agentic/agent_core/utils/hallucination.py
RENAMED
|
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.4.5 → vectara_agentic-0.4.6}/vectara_agentic.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|