langchain-agentx-python 2.1.4__py3-none-any.whl → 2.1.5__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.
@@ -11,7 +11,7 @@ from langchain_agentx import create_loop_agent
11
11
  ```
12
12
  """
13
13
 
14
- __version__ = "2.1.4"
14
+ __version__ = "2.1.5"
15
15
 
16
16
  from .loop import ( # noqa: F401
17
17
  create_loop_agent,
@@ -33,7 +33,8 @@ class ReadToolInput(BaseModel):
33
33
  file_path — 文件绝对路径(必须)
34
34
  offset — 起始行(1-indexed;0 表示从文件头开始)
35
35
  limit — 最多读取行数(None 表示读到文件末尾或 max_lines 上限)
36
- pages — PDF 专用,页范围如 "1-5"、"3"、"10-20";非 PDF 文件传此参数报错
36
+ pages — PDF 页范围如 "1-5"、"3"、"10-20";非 PDF 时 validate 不因类型拒,
37
+ 读取路径静默忽略(对齐 CC FileReadTool)
37
38
  """
38
39
 
39
40
  file_path: str = Field(
@@ -164,13 +164,9 @@ class ReadRuntimeTool(RuntimeTool):
164
164
 
165
165
  ext = Path(path).suffix.lower().lstrip(".")
166
166
 
167
- # ---- [1] pages 参数格式校验(纯字符串,无 I/O)----
167
+ # ---- [1] pages 参数格式校验(纯字符串,无 I/O;对齐 CC:不按扩展名硬拒)----
168
+ # CC validateInput 只校验 pages 格式/范围;非 PDF 在 callInner 文本分支静默忽略 pages。
168
169
  if inp.pages is not None:
169
- if ext != "pdf":
170
- return ValidationResult(
171
- ok=False,
172
- message="pages parameter is only valid for PDF files.",
173
- )
174
170
  m = re.fullmatch(r"(\d+)(?:-(\d+))?", inp.pages.strip())
175
171
  if not m:
176
172
  return ValidationResult(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langchain-agentx-python
3
- Version: 2.1.4
3
+ Version: 2.1.5
4
4
  Summary: LangChain/LangGraph-based agent utilities for CodeBaseX.
5
5
  Author-email: GoodMood2008 <GoodMood2008@users.noreply.github.com>
6
6
  License: Apache License
@@ -1,4 +1,4 @@
1
- langchain_agentx/__init__.py,sha256=_d7zQfEmBq0i48L0HkSsIp6Gx6vnwX6bqC0j-Tt6zEg,1614
1
+ langchain_agentx/__init__.py,sha256=ZU5YZH1syogfVFyOWBdikXAtbPH8CxKCNZoWur4h3p0,1614
2
2
  langchain_agentx/command/__init__.py,sha256=Ej260S5uFQcmEtGZQG_NH7BYjHoStrpBLtGUsBTxyZk,631
3
3
  langchain_agentx/command/allowed_tools.py,sha256=TVA0VM8rm98H-QbLK_GRiX5RhEAZFxKawliMi4kk96A,3359
4
4
  langchain_agentx/command/context.py,sha256=DIGOGPBw5UGDBm0WNNJlKx1h_9rCRmcdROv4DT61Qug,731
@@ -590,9 +590,9 @@ langchain_agentx/tools/plan_mode/tool.py,sha256=SBp3MZoPEsLiDOu6qXYDIxZwkG0z8OpL
590
590
  langchain_agentx/tools/read/__init__.py,sha256=82jaYnSYVxREh7HR3tiPAoNLQGmdCsWlkFXHyUg9-ME,217
591
591
  langchain_agentx/tools/read/backend.py,sha256=YqKJ5jzMIrND3WC582jDvVA2mh2rKZ12LK9Vt-j3bz0,14524
592
592
  langchain_agentx/tools/read/limits.py,sha256=JrCEv1UCzBYevf0rDgGOFFfOAHCo04LjLOCj5m1rmbc,2843
593
- langchain_agentx/tools/read/models.py,sha256=lSr4tls092ji1GcyqYgkjuyYBwJ2nKZtqkycNl0tKKM,5204
593
+ langchain_agentx/tools/read/models.py,sha256=8BSn6p9XsDdwn_j7f91rrmysJ5tkqn7le-KPEBKvXTY,5276
594
594
  langchain_agentx/tools/read/prompt.py,sha256=AApYlEt7FhItDXKMpUIQRdKvBGzVeDY2pCEZCO2D8k4,3613
595
- langchain_agentx/tools/read/tool.py,sha256=-K1xf1DGF5Z9EetIRk0aLDG29ZmRpexKDvT6WYmYicU,22103
595
+ langchain_agentx/tools/read/tool.py,sha256=u_FfrsgmOSizCPE-tP31ptLIBFOrREzjcJao7ZJEYyk,22060
596
596
  langchain_agentx/tools/shared/__init__.py,sha256=XJMAdaKNDrZmV6uuLOcop2BBs9duLvsGsksD-OKQ_1Y,207
597
597
  langchain_agentx/tools/shared/read_state_guard.py,sha256=YSDyACWwBGVl-GhpR7qDzYg7wjJ-qqiCx-dZSMDLbmM,1635
598
598
  langchain_agentx/tools/shared/staleness.py,sha256=wTSpnLdazuxTdbC5U7zNLdWxkMPq4F7M0TbrIBOBbKA,2519
@@ -756,8 +756,8 @@ langchain_agentx/workspace/root_grant_manager.py,sha256=W3gy8HTevbERbXqIgRcjzOXO
756
756
  langchain_agentx/workspace/tool_boundary.py,sha256=UDwX6swpSLsx9HNkYuuRRiV5o7ZZG_Bru2Yn0c5kNX8,5724
757
757
  langchain_agentx/workspace/validators.py,sha256=tQt-6TOcL8Fw7Ig5ebA9S7vGWh1rby920eFW6x8Tk9E,1439
758
758
  langchain_agentx/workspace/view.py,sha256=PGasqTaqhlD03SXXazHuw4RHfV681AIdlsYqL70pEjc,4774
759
- langchain_agentx_python-2.1.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
760
- langchain_agentx_python-2.1.4.dist-info/METADATA,sha256=4xCelLmf7SzCE-QDw2IZwmfSzO38ZWXOEkbJmJa6jM0,24250
761
- langchain_agentx_python-2.1.4.dist-info/WHEEL,sha256=51RkbunBAw4BWsgaQWTpPhg4Diwp3c9P5iaLk67Hdtg,92
762
- langchain_agentx_python-2.1.4.dist-info/top_level.txt,sha256=Ge284pniNt8xea0OLk2o9o32GqVpDhOYk20fwE-0xxA,17
763
- langchain_agentx_python-2.1.4.dist-info/RECORD,,
759
+ langchain_agentx_python-2.1.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
760
+ langchain_agentx_python-2.1.5.dist-info/METADATA,sha256=8GXj6T47pcVkm3Gdpw56meY07t5ppAcUyjaeRIAZngI,24250
761
+ langchain_agentx_python-2.1.5.dist-info/WHEEL,sha256=51RkbunBAw4BWsgaQWTpPhg4Diwp3c9P5iaLk67Hdtg,92
762
+ langchain_agentx_python-2.1.5.dist-info/top_level.txt,sha256=Ge284pniNt8xea0OLk2o9o32GqVpDhOYk20fwE-0xxA,17
763
+ langchain_agentx_python-2.1.5.dist-info/RECORD,,