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.
- ws_bom_robot_app/llm/agent_description.py +1 -1
- ws_bom_robot_app/llm/agent_lcel.py +1 -1
- ws_bom_robot_app/llm/vector_store/integration/confluence.py +9 -7
- {ws_bom_robot_app-0.0.37.dist-info → ws_bom_robot_app-0.0.39.dist-info}/METADATA +3 -3
- {ws_bom_robot_app-0.0.37.dist-info → ws_bom_robot_app-0.0.39.dist-info}/RECORD +8 -8
- /ws_bom_robot_app/llm/utils/{agent_utils.py → agent.py} +0 -0
- {ws_bom_robot_app-0.0.37.dist-info → ws_bom_robot_app-0.0.39.dist-info}/WHEEL +0 -0
- {ws_bom_robot_app-0.0.37.dist-info → ws_bom_robot_app-0.0.39.dist-info}/top_level.txt +0 -0
|
@@ -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.
|
|
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.
|
|
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
|
-
|
|
16
|
-
|
|
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
|
-
|
|
22
|
-
|
|
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(
|
|
42
|
+
access_config=ConfluenceAccessConfig(password=self.__data.password, token=self.__data.access_token),
|
|
41
43
|
url=self.__data.url,
|
|
42
|
-
|
|
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.
|
|
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.
|
|
34
|
+
Requires-Dist: unstructured==0.16.21
|
|
35
35
|
Requires-Dist: unstructured[image]
|
|
36
|
-
Requires-Dist: unstructured-ingest==0.4
|
|
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=
|
|
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=
|
|
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/
|
|
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=
|
|
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.
|
|
58
|
-
ws_bom_robot_app-0.0.
|
|
59
|
-
ws_bom_robot_app-0.0.
|
|
60
|
-
ws_bom_robot_app-0.0.
|
|
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
|
|
File without changes
|
|
File without changes
|