ws-bom-robot-app 0.0.37__py3-none-any.whl → 0.0.39__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.
@@ -8,7 +8,7 @@ from langchain_core.runnables import RunnableLambda
8
8
  from bs4 import BeautifulSoup
9
9
  from ws_bom_robot_app.llm.models.api import LlmRules
10
10
  from ws_bom_robot_app.llm.providers.llm_manager import LlmInterface
11
- from ws_bom_robot_app.llm.utils.agent_utils import get_rules
11
+ from ws_bom_robot_app.llm.utils.agent import get_rules
12
12
 
13
13
  # SafeDict helper class
14
14
  class SafeDict(dict):
@@ -6,7 +6,7 @@ from langchain_core.tools import render_text_description
6
6
  from datetime import datetime
7
7
  from ws_bom_robot_app.llm.providers.llm_manager import LlmInterface
8
8
  from ws_bom_robot_app.llm.models.api import LlmMessage, LlmRules
9
- from ws_bom_robot_app.llm.utils.agent_utils import get_rules
9
+ from ws_bom_robot_app.llm.utils.agent import get_rules
10
10
  from ws_bom_robot_app.llm.defaut_prompt import default_prompt, tool_prompt
11
11
 
12
12
  class AgentLcel:
@@ -3,7 +3,7 @@ from ws_bom_robot_app.llm.vector_store.integration.base import IntegrationStrate
3
3
  from unstructured_ingest.v2.processes.connectors.confluence import ConfluenceIndexerConfig, ConfluenceDownloaderConfig, ConfluenceConnectionConfig, ConfluenceAccessConfig
4
4
  from langchain_core.documents import Document
5
5
  from ws_bom_robot_app.llm.vector_store.loader.base import Loader
6
- from typing import Union
6
+ from typing import Optional, Union
7
7
  from pydantic import BaseModel, Field, AliasChoices
8
8
 
9
9
  class ConfluenceParams(BaseModel):
@@ -12,14 +12,16 @@ class ConfluenceParams(BaseModel):
12
12
 
13
13
  Attributes:
14
14
  url (str): The URL of the Confluence instance, e.g., 'https://example.atlassian.net'.
15
- access_token (str): The access token for authenticating with Confluence, e.g., 'AT....'
16
- user_email (str): The email address of the Confluence user
15
+ username (str): The email address or username of the Confluence user
16
+ password: Confluence password or Cloud API token, if filled, set the access_token to None and vice versa.
17
+ access_token (str): The personal access token for authenticating with Confluence, e.g., 'AT....'
17
18
  spaces (list[str]): A list of Confluence spaces to interact with, e.g., ['SPACE1', 'SPACE2'].
18
19
  extension (list[str], optional): A list of file extensions to filter by. Defaults to None, e.g., ['.pdf', '.docx'].
19
20
  """
20
21
  url: str
21
- access_token: str = Field(validation_alias=AliasChoices("accessToken","access_token"))
22
- user_email: str = Field(validation_alias=AliasChoices("userEmail","user_email"))
22
+ username: str = Field(validation_alias=AliasChoices("userName","userEmail","username"))
23
+ password: Optional[str] = None
24
+ access_token: Optional[str] = Field(None, validation_alias=AliasChoices("accessToken","access_token"))
23
25
  spaces: list[str] = []
24
26
  extension: list[str] = Field(default=None)
25
27
  class Confluence(IntegrationStrategy):
@@ -37,9 +39,9 @@ class Confluence(IntegrationStrategy):
37
39
  download_dir=self.working_directory
38
40
  )
39
41
  connection_config = ConfluenceConnectionConfig(
40
- access_config=ConfluenceAccessConfig(api_token=self.__data.access_token),
42
+ access_config=ConfluenceAccessConfig(password=self.__data.password, token=self.__data.access_token),
41
43
  url=self.__data.url,
42
- user_email=self.__data.user_email
44
+ username=self.__data.username
43
45
  )
44
46
  self.__unstructured_ingest.pipeline(
45
47
  indexer_config,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ws_bom_robot_app
3
- Version: 0.0.37
3
+ Version: 0.0.39
4
4
  Summary: A FastAPI application serving ws bom/robot/llm platform ai.
5
5
  Home-page: https://github.com/websolutespa/bom
6
6
  Author: Websolute Spa
@@ -31,9 +31,9 @@ Requires-Dist: langchain_chroma==0.2.1
31
31
  Requires-Dist: fastembed==0.5.1
32
32
  Requires-Dist: langchain-qdrant==0.2.0
33
33
  Requires-Dist: lark==1.2.2
34
- Requires-Dist: unstructured==0.16.17
34
+ Requires-Dist: unstructured==0.16.21
35
35
  Requires-Dist: unstructured[image]
36
- Requires-Dist: unstructured-ingest==0.4.6
36
+ Requires-Dist: unstructured-ingest==0.5.4
37
37
  Requires-Dist: unstructured-ingest[azure]
38
38
  Requires-Dist: unstructured-ingest[confluence]
39
39
  Requires-Dist: unstructured-ingest[dropbox]
@@ -6,9 +6,9 @@ ws_bom_robot_app/main.py,sha256=zO3B-v-v9ESASvw8IaQj9Y9hNvNmOxohFmA0R82EybQ,6518
6
6
  ws_bom_robot_app/task_manager.py,sha256=Zedzs2R3O-wNSQOqs4jorgFwPRi-ji_0TN4mGfk-VvE,15958
7
7
  ws_bom_robot_app/util.py,sha256=b49ItlZgh2Wzw-6K8k5Wa44eVgjQ0JmWQwJnEaQBVGw,3502
8
8
  ws_bom_robot_app/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- ws_bom_robot_app/llm/agent_description.py,sha256=XLrDcUk-4OtBFPv1Yscxga3ETHNnYCIC1uxHtWD94B8,4663
9
+ ws_bom_robot_app/llm/agent_description.py,sha256=DKPGchYXrkxt8pRpOabn5QE_qn8jSKl92pLpnVLHG5I,4657
10
10
  ws_bom_robot_app/llm/agent_handler.py,sha256=4zdpSf5iVLxMZ90c_vUl_k-O9SF6u_h7GOB24y4mhIo,6435
11
- ws_bom_robot_app/llm/agent_lcel.py,sha256=BUfGVUcw6s_YAu5aPMkqqjsStYNHUXKh31t_Ybx11-A,2395
11
+ ws_bom_robot_app/llm/agent_lcel.py,sha256=Yt-hbKarLktv5BBiTp9OHYRdwOTRu5ogyTrYapFdiTU,2389
12
12
  ws_bom_robot_app/llm/api.py,sha256=UaD1oJyAOe7ASoXxPNJcth3kDuWcjk1xqUNEjuPWbR4,3759
13
13
  ws_bom_robot_app/llm/defaut_prompt.py,sha256=LlCd_nSMkMmHESfiiiQYfnJyB6Pp-LSs4CEKdYW4vFk,1106
14
14
  ws_bom_robot_app/llm/main.py,sha256=fVXyS9TOu22ZC7M8o2mRCya9vTmMFf5jRgs9V0K_4cw,4189
@@ -26,7 +26,7 @@ ws_bom_robot_app/llm/tools/utils.py,sha256=SPC8pj2bt_xWO7wNR_5YBwUUvjJIK1xlavR4y
26
26
  ws_bom_robot_app/llm/tools/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  ws_bom_robot_app/llm/tools/models/main.py,sha256=o3Rwbn5nsugKOgLG0FUIuvtPPHYhfVpqG4E3BQB2nWM,388
28
28
  ws_bom_robot_app/llm/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
- ws_bom_robot_app/llm/utils/agent_utils.py,sha256=9fdnVMHpSEBdmYef6NFXtMIXa8EB4QQICfXsXDiafHg,923
29
+ ws_bom_robot_app/llm/utils/agent.py,sha256=9fdnVMHpSEBdmYef6NFXtMIXa8EB4QQICfXsXDiafHg,923
30
30
  ws_bom_robot_app/llm/utils/chunker.py,sha256=N7570xBYlObneg-fsvDhPAJ-Pv8C8OaYZOBK6q7LmMI,607
31
31
  ws_bom_robot_app/llm/utils/download.py,sha256=iAUxH_NiCpTPtGzhC4hBtxotd2HPFt2MBhttslIxqiI,3194
32
32
  ws_bom_robot_app/llm/utils/kb.py,sha256=jja45WCbNI7SGEgqDS99nErlwB5eY8Ga7BMnhdMHZ90,1279
@@ -38,7 +38,7 @@ ws_bom_robot_app/llm/vector_store/generator.py,sha256=9_xdtCKJhmt1OP0GXDjvFERXMP
38
38
  ws_bom_robot_app/llm/vector_store/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  ws_bom_robot_app/llm/vector_store/integration/azure.py,sha256=R37TaPQP-HJJJiaKE9rmMc9kpeXeRvdebbTY_982om0,3392
40
40
  ws_bom_robot_app/llm/vector_store/integration/base.py,sha256=8r6XO_XM8PcDXhsKst6q_Xw-P48rCiEtowmkBEDVd08,1957
41
- ws_bom_robot_app/llm/vector_store/integration/confluence.py,sha256=4fiRHB3J-SHZZxNGHwVkCrT-xSPbc91z4WrDE9fy6xU,2505
41
+ ws_bom_robot_app/llm/vector_store/integration/confluence.py,sha256=YCljHIzAt15LI-iAAROimqndVl9y3for72e2D5ByZ74,2725
42
42
  ws_bom_robot_app/llm/vector_store/integration/dropbox.py,sha256=yhGvHTN0TEpUfhdvvV7RX5MxBwTUyddAX95Fgqp3mCg,2629
43
43
  ws_bom_robot_app/llm/vector_store/integration/gcs.py,sha256=fFDVDUR6eNB7FVTzDSEpMHFEWMgG16GLnpSf_mqGDdE,3184
44
44
  ws_bom_robot_app/llm/vector_store/integration/github.py,sha256=18PO30AZcgTn6PHhid3MwImVAdmKBNkr0kmAPgOetGw,2663
@@ -54,7 +54,7 @@ ws_bom_robot_app/llm/vector_store/loader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
54
54
  ws_bom_robot_app/llm/vector_store/loader/base.py,sha256=L_ugekNuAq0N9O-24wtlHSNHkqSeD-KsJrfGt_FX9Oc,5340
55
55
  ws_bom_robot_app/llm/vector_store/loader/docling.py,sha256=yP0zgXLeFAlByaYuj-6cYariuknckrFds0dxdRcnVz8,3456
56
56
  ws_bom_robot_app/llm/vector_store/loader/json_loader.py,sha256=qo9ejRZyKv_k6jnGgXnu1W5uqsMMtgqK_uvPpZQ0p74,833
57
- ws_bom_robot_app-0.0.37.dist-info/METADATA,sha256=UHDhg12pT_4h3GtmCUUzI6zj-Hjso0ATpLRHIC5iOJ4,8348
58
- ws_bom_robot_app-0.0.37.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
59
- ws_bom_robot_app-0.0.37.dist-info/top_level.txt,sha256=Yl0akyHVbynsBX_N7wx3H3ZTkcMLjYyLJs5zBMDAKcM,17
60
- ws_bom_robot_app-0.0.37.dist-info/RECORD,,
57
+ ws_bom_robot_app-0.0.39.dist-info/METADATA,sha256=_93GHkaUnAnRwR7mWma_viKwV71OFdvRY21u7vKfo9g,8348
58
+ ws_bom_robot_app-0.0.39.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
59
+ ws_bom_robot_app-0.0.39.dist-info/top_level.txt,sha256=Yl0akyHVbynsBX_N7wx3H3ZTkcMLjYyLJs5zBMDAKcM,17
60
+ ws_bom_robot_app-0.0.39.dist-info/RECORD,,
File without changes