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

@@ -1,4 +1,4 @@
1
1
  """
2
2
  Define the version of the package.
3
3
  """
4
- __version__ = "0.3.2"
4
+ __version__ = "0.3.3"
vectara_agentic/tools.py CHANGED
@@ -367,7 +367,9 @@ class VectaraToolFactory:
367
367
  frequency_penalty: Optional[float] = None,
368
368
  presence_penalty: Optional[float] = None,
369
369
  include_citations: bool = True,
370
- citation_pattern: str = "{doc.url}",
370
+ citation_pattern: str = None,
371
+ citation_url_pattern: str = "{doc.url}",
372
+ citation_text_pattern: str = "{doc.title}",
371
373
  save_history: bool = False,
372
374
  fcs_threshold: float = 0.0,
373
375
  return_direct: bool = False,
@@ -421,9 +423,13 @@ class VectaraToolFactory:
421
423
  higher values increasing the diversity of topics.
422
424
  include_citations (bool, optional): Whether to include citations in the response.
423
425
  If True, uses markdown vectara citations that requires the Vectara scale plan.
424
- citation_pattern (str, optional): The pattern for the citations in the response.
426
+ citation_url_pattern (str, optional): The pattern for the citations in the response.
425
427
  Default is "{doc.url}" which uses the document URL.
426
428
  If include_citations is False, this parameter is ignored.
429
+ citation_pattern (str, optional): old name for citation_url_pattern. Will be deprecated in future.
430
+ citation_text_pattern (str, optional): The text pattern for citations in the response.
431
+ Default is "{doc.title}" which uses the title of the document.
432
+ If include_citations is False, this parameter is ignored.
427
433
  save_history (bool, optional): Whether to save the query in history.
428
434
  fcs_threshold (float, optional): A threshold for factual consistency.
429
435
  If set above 0, the tool notifies the calling agent that it "cannot respond" if FCS is too low.
@@ -501,7 +507,8 @@ class VectaraToolFactory:
501
507
  frequency_penalty=frequency_penalty,
502
508
  presence_penalty=presence_penalty,
503
509
  citations_style="markdown" if include_citations else None,
504
- citations_url_pattern=citation_pattern if include_citations else None,
510
+ citations_url_pattern=(citation_pattern if citation_pattern is not None else citation_url_pattern) if include_citations else None,
511
+ citations_text_pattern=citation_text_pattern if include_citations else None,
505
512
  save_history=save_history,
506
513
  x_source_str="vectara-agentic",
507
514
  verbose=verbose,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vectara_agentic
3
- Version: 0.3.2
3
+ Version: 0.3.3
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
@@ -19,7 +19,7 @@ vectara_agentic/__init__.py,sha256=2GLDS3U6KckK-dBRl9v_x1kSV507gEhjOfuMmmu0Qxg,8
19
19
  vectara_agentic/_callback.py,sha256=c3848EMSpaQWXtuwdqRGbhgbZhiDwgGnemJkgm9yWAc,13238
20
20
  vectara_agentic/_observability.py,sha256=iZlByeQTyx6g3Y8aBYcdGcxdRkoYrfxHdcrTEKO26UE,4485
21
21
  vectara_agentic/_prompts.py,sha256=9s8VEjaaLuRgNK1xQYWj4bnjM4asJP1Z5zCihUMRonk,10768
22
- vectara_agentic/_version.py,sha256=5evj7VxbzqoTrhhHqk9AvX1nIb07P-5iiJ7QJ_zRV8A,65
22
+ vectara_agentic/_version.py,sha256=T5R4By43ti-oVkkFCfZWO1IEj2YgvFsppQ4MOX0xo2s,65
23
23
  vectara_agentic/agent.py,sha256=zu7nMxhKin3rLuV8y4F_OcssU3R8bJOjMixKMC_P2k0,58857
24
24
  vectara_agentic/agent_config.py,sha256=E-rtYMcpoGxnEAyy8231bizo2n0uGQ2qWxuSgTEfwdQ,4327
25
25
  vectara_agentic/agent_endpoint.py,sha256=PzIN7HhEHv8Mq_Zo5cZ2xYrgdv2AN6kx6dc_2AJq28I,7497
@@ -28,12 +28,12 @@ vectara_agentic/hhem.py,sha256=j4euBX24PSCQ8P_MhhsKKnm1kv6nHKAbduHsTwtQuR0,2774
28
28
  vectara_agentic/llm_utils.py,sha256=TX01e4QY8qb5O5D6ZrlkLZEZFHJ4LbDL6g-l52lTB40,7561
29
29
  vectara_agentic/sub_query_workflow.py,sha256=JYwN0wK4QzHjTaFDsSCAQvMx9GD4g6CnqxZCnzi6xb4,13086
30
30
  vectara_agentic/tool_utils.py,sha256=9xoqVPB97CIDXOxuFIw4yZ2RlXvdayCEGPUaUPC2Tbc,24168
31
- vectara_agentic/tools.py,sha256=bj8Zn3Lv63vWxu7N6_kkvOk9Vr2ZtuiiBetXUCzsK0w,34860
31
+ vectara_agentic/tools.py,sha256=LvUUD4gLYoL68gx8Lnr1GoECyC0wd0ahPyOhoW5ouws,35478
32
32
  vectara_agentic/tools_catalog.py,sha256=cAN_kDOWZUoW4GNFwY5GdS6ImMUQNnF2sggx9OGK9Cg,4906
33
33
  vectara_agentic/types.py,sha256=3mrtshHiy-d5JHVxl-4tJk5DRspvYKwAYiI5LvKO1Bw,2226
34
34
  vectara_agentic/utils.py,sha256=R9HitEG5K3Q_p2M_teosT181OUxkhs1-hnj98qDYGbE,2545
35
- vectara_agentic-0.3.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
36
- vectara_agentic-0.3.2.dist-info/METADATA,sha256=BpKTuP41lQct4SaRL9kWCwRqg5zAn75ffLAhJ7enVpc,32079
37
- vectara_agentic-0.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- vectara_agentic-0.3.2.dist-info/top_level.txt,sha256=Y7TQTFdOYGYodQRltUGRieZKIYuzeZj2kHqAUpfCUfg,22
39
- vectara_agentic-0.3.2.dist-info/RECORD,,
35
+ vectara_agentic-0.3.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
36
+ vectara_agentic-0.3.3.dist-info/METADATA,sha256=aWqHgdQi_bbBUO4YgPg8Cd0E4UP3gv5setaJsm23lW0,32079
37
+ vectara_agentic-0.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ vectara_agentic-0.3.3.dist-info/top_level.txt,sha256=Y7TQTFdOYGYodQRltUGRieZKIYuzeZj2kHqAUpfCUfg,22
39
+ vectara_agentic-0.3.3.dist-info/RECORD,,