uipath-langchain 0.0.85__tar.gz → 0.0.87__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 uipath-langchain might be problematic. Click here for more details.

Files changed (156) hide show
  1. uipath_langchain-0.0.87/.cursorrules +55 -0
  2. uipath_langchain-0.0.87/.editorconfig +14 -0
  3. uipath_langchain-0.0.87/.gitattributes +2 -0
  4. uipath_langchain-0.0.87/.github/workflows/build.yml +46 -0
  5. uipath_langchain-0.0.87/.github/workflows/cd.yml +14 -0
  6. uipath_langchain-0.0.87/.github/workflows/ci.yml +22 -0
  7. uipath_langchain-0.0.87/.github/workflows/commitlint.yml +12 -0
  8. uipath_langchain-0.0.87/.github/workflows/lint.yml +44 -0
  9. uipath_langchain-0.0.87/.github/workflows/test.yml +46 -0
  10. uipath_langchain-0.0.87/.gitignore +180 -0
  11. uipath_langchain-0.0.87/.pre-commit-config.yaml +7 -0
  12. uipath_langchain-0.0.87/.python-version +1 -0
  13. uipath_langchain-0.0.87/.vscode/extensions.json +7 -0
  14. uipath_langchain-0.0.87/.vscode/settings.json +28 -0
  15. uipath_langchain-0.0.87/CONTRIBUTING.md +41 -0
  16. uipath_langchain-0.0.87/LICENSE +21 -0
  17. uipath_langchain-0.0.87/PKG-INFO +137 -0
  18. uipath_langchain-0.0.87/README.md +105 -0
  19. uipath_langchain-0.0.87/docs/interrupt_models.md +72 -0
  20. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87}/pyproject.toml +9 -11
  21. uipath_langchain-0.0.87/samples/company-research-agent/.env.example +4 -0
  22. uipath_langchain-0.0.87/samples/company-research-agent/agent.mermaid +23 -0
  23. uipath_langchain-0.0.87/samples/company-research-agent/graph.py +74 -0
  24. uipath_langchain-0.0.87/samples/company-research-agent/langgraph.json +7 -0
  25. uipath_langchain-0.0.87/samples/company-research-agent/pyproject.toml +47 -0
  26. uipath_langchain-0.0.87/samples/company-research-agent/uipath.json +37 -0
  27. uipath_langchain-0.0.87/samples/company-research-agent/uv.lock +2406 -0
  28. uipath_langchain-0.0.87/samples/connections/.env.example +2 -0
  29. uipath_langchain-0.0.87/samples/connections/.vscode/launch.json +17 -0
  30. uipath_langchain-0.0.87/samples/connections/main.py +73 -0
  31. uipath_langchain-0.0.87/samples/connections/pyproject.toml +11 -0
  32. uipath_langchain-0.0.87/samples/connections/uv.lock +562 -0
  33. uipath_langchain-0.0.87/samples/hitl-inbox-server/database.py +14 -0
  34. uipath_langchain-0.0.87/samples/hitl-inbox-server/main.py +292 -0
  35. uipath_langchain-0.0.87/samples/hitl-inbox-server/models.py +33 -0
  36. uipath_langchain-0.0.87/samples/hitl-inbox-server/pyproject.toml +16 -0
  37. uipath_langchain-0.0.87/samples/hitl-inbox-server/schemas.py +57 -0
  38. uipath_langchain-0.0.87/samples/hitl-inbox-server/templates/index.html +1253 -0
  39. uipath_langchain-0.0.87/samples/hitl-inbox-server/uv.lock +703 -0
  40. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/.env.example +6 -0
  41. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/.vscode/launch.json +16 -0
  42. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/_main.py +31 -0
  43. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/agent.mermaid +20 -0
  44. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/configuration.py +48 -0
  45. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/graph.py +184 -0
  46. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/langgraph.json +7 -0
  47. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/prompts.py +45 -0
  48. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/pyproject.toml +29 -0
  49. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/state.py +132 -0
  50. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/supplier_website_reader.py +31 -0
  51. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/uipath_ecs_retriever_tool.py +13 -0
  52. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/utils.py +26 -0
  53. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/uv.lock +2235 -0
  54. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/.env.example +4 -0
  55. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/README.md +165 -0
  56. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/coder.mermaid +23 -0
  57. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/langgraph.json +9 -0
  58. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/planner.mermaid +18 -0
  59. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/pyproject.toml +48 -0
  60. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/researcher.mermaid +23 -0
  61. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/coder.py +52 -0
  62. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/planner.py +213 -0
  63. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/researcher.py +34 -0
  64. uipath_langchain-0.0.87/samples/multi-agent-planner-researcher-coder-distributed/uv.lock +2381 -0
  65. uipath_langchain-0.0.87/samples/multi-agent-supervisor-researcher-coder/.env.example +2 -0
  66. uipath_langchain-0.0.87/samples/multi-agent-supervisor-researcher-coder/README.md +120 -0
  67. uipath_langchain-0.0.87/samples/multi-agent-supervisor-researcher-coder/agent.mermaid +38 -0
  68. uipath_langchain-0.0.87/samples/multi-agent-supervisor-researcher-coder/graph.py +122 -0
  69. uipath_langchain-0.0.87/samples/multi-agent-supervisor-researcher-coder/langgraph.json +7 -0
  70. uipath_langchain-0.0.87/samples/multi-agent-supervisor-researcher-coder/pyproject.toml +48 -0
  71. uipath_langchain-0.0.87/samples/multi-agent-supervisor-researcher-coder/uipath.json +2659 -0
  72. uipath_langchain-0.0.87/samples/multi-agent-supervisor-researcher-coder/uv.lock +2381 -0
  73. uipath_langchain-0.0.87/samples/simple-local-mcp/.env.example +1 -0
  74. uipath_langchain-0.0.87/samples/simple-local-mcp/README.md +95 -0
  75. uipath_langchain-0.0.87/samples/simple-local-mcp/agent.mermaid +17 -0
  76. uipath_langchain-0.0.87/samples/simple-local-mcp/langgraph.json +6 -0
  77. uipath_langchain-0.0.87/samples/simple-local-mcp/pyproject.toml +21 -0
  78. uipath_langchain-0.0.87/samples/simple-local-mcp/src/simple-local-mcp/graph.py +28 -0
  79. uipath_langchain-0.0.87/samples/simple-local-mcp/src/simple-local-mcp/math_server.py +16 -0
  80. uipath_langchain-0.0.87/samples/simple-local-mcp/src/simple-local-mcp/weather_server.py +11 -0
  81. uipath_langchain-0.0.87/samples/simple-local-mcp/uipath.json +175 -0
  82. uipath_langchain-0.0.87/samples/simple-local-mcp/uv.lock +2265 -0
  83. uipath_langchain-0.0.87/samples/simple-remote-mcp/.env.example +2 -0
  84. uipath_langchain-0.0.87/samples/simple-remote-mcp/agent.mermaid +17 -0
  85. uipath_langchain-0.0.87/samples/simple-remote-mcp/langgraph.json +7 -0
  86. uipath_langchain-0.0.87/samples/simple-remote-mcp/main.py +24 -0
  87. uipath_langchain-0.0.87/samples/simple-remote-mcp/pyproject.toml +17 -0
  88. uipath_langchain-0.0.87/samples/simple-remote-mcp/uipath.json +181 -0
  89. uipath_langchain-0.0.87/samples/simple-remote-mcp/uv.lock +2086 -0
  90. uipath_langchain-0.0.87/samples/ticket-classification/.env.example +4 -0
  91. uipath_langchain-0.0.87/samples/ticket-classification/README.md +67 -0
  92. uipath_langchain-0.0.87/samples/ticket-classification/agent.mermaid +16 -0
  93. uipath_langchain-0.0.87/samples/ticket-classification/langgraph.json +7 -0
  94. uipath_langchain-0.0.87/samples/ticket-classification/main.py +142 -0
  95. uipath_langchain-0.0.87/samples/ticket-classification/pyproject.toml +19 -0
  96. uipath_langchain-0.0.87/samples/ticket-classification/uipath.json +71 -0
  97. uipath_langchain-0.0.87/samples/ticket-classification/uv.lock +2017 -0
  98. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/.env.example +4 -0
  99. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/README.md +64 -0
  100. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/agent.mermaid +22 -0
  101. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/langgraph.json +9 -0
  102. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/main.py +101 -0
  103. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/mcps/estate_mcp.py +388 -0
  104. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/mcps/travel_mcp.py +356 -0
  105. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/pyproject.toml +21 -0
  106. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/uipath.json +37 -0
  107. uipath_langchain-0.0.87/samples/travel-planner-local-mcp/uv.lock +2233 -0
  108. uipath_langchain-0.0.87/samples/uipath_retrieval_chain/.env.example +9 -0
  109. uipath_langchain-0.0.87/samples/uipath_retrieval_chain/README.md +43 -0
  110. uipath_langchain-0.0.87/samples/uipath_retrieval_chain/main.py +135 -0
  111. uipath_langchain-0.0.87/samples/uipath_retrieval_chain/pyproject.toml +9 -0
  112. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/_runtime/_context.py +1 -1
  113. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/_runtime/_escalation.py +3 -3
  114. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/_runtime/_exception.py +1 -1
  115. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/_runtime/_input.py +3 -3
  116. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/_runtime/_output.py +34 -11
  117. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/_runtime/_runtime.py +1 -1
  118. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/cli_init.py +2 -2
  119. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/cli_run.py +2 -2
  120. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/middlewares.py +1 -1
  121. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/retrievers/context_grounding_retriever.py +30 -4
  122. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/tracers/AsyncUiPathTracer.py +2 -2
  123. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/tracers/UiPathTracer.py +1 -1
  124. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/tracers/_events.py +33 -33
  125. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/tracers/_instrument_traceable.py +285 -285
  126. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/tracers/_utils.py +52 -52
  127. uipath_langchain-0.0.87/src/uipath_langchain/utils/__init__.py +3 -0
  128. uipath_langchain-0.0.87/src/uipath_langchain/utils/_request_mixin.py +488 -0
  129. uipath_langchain-0.0.87/src/uipath_langchain/utils/_settings.py +91 -0
  130. uipath_langchain-0.0.87/src/uipath_langchain/utils/_sleep_policy.py +41 -0
  131. uipath_langchain-0.0.87/src/uipath_langchain/vectorstores/context_grounding_vectorstore.py +265 -0
  132. uipath_langchain-0.0.87/tests/conftest.py +95 -0
  133. uipath_langchain-0.0.87/tests/test_dummy.py +3 -0
  134. uipath_langchain-0.0.87/tests/test_langchain_client.py +152 -0
  135. uipath_langchain-0.0.87/uv.lock +2230 -0
  136. uipath_langchain-0.0.85/.gitignore +0 -19
  137. uipath_langchain-0.0.85/PKG-INFO +0 -29
  138. uipath_langchain-0.0.85/uipath_langchain/_utils/tests/cached_embeddings/text-embedding-3-large5034ec3c-85c9-54b8-ac89-5e0cbcf99e3b +0 -3
  139. uipath_langchain-0.0.85/uipath_langchain/_utils/tests/cached_embeddings/text-embedding-3-largec48857ed-1302-5954-9e24-69fa9b45e457 +0 -3
  140. uipath_langchain-0.0.85/uipath_langchain/_utils/tests/tests_uipath_cache.db +0 -3
  141. {uipath_langchain-0.0.85/uipath_langchain/chat/utils → uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent}/__init__.py +0 -0
  142. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/__init__.py +0 -0
  143. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/__init__.py +0 -0
  144. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_cli/_utils/_graph.py +0 -0
  145. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_utils/__init__.py +0 -0
  146. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_utils/_request_mixin.py +0 -0
  147. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_utils/_settings.py +0 -0
  148. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/_utils/_sleep_policy.py +0 -0
  149. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/chat/__init__.py +0 -0
  150. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/chat/models.py +0 -0
  151. /uipath_langchain-0.0.85/README.md → /uipath_langchain-0.0.87/src/uipath_langchain/chat/utils/__init__.py +0 -0
  152. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/chat/utils/_chat_types.py +0 -0
  153. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/embeddings/__init__.py +0 -0
  154. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/embeddings/embeddings.py +0 -0
  155. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/retrievers/__init__.py +0 -0
  156. {uipath_langchain-0.0.85 → uipath_langchain-0.0.87/src}/uipath_langchain/tracers/__init__.py +0 -0
@@ -0,0 +1,55 @@
1
+ You are an AI assistant specialized in Python development, especially in a developing SDK and CLI for enterprise companies. Your strong background in debugging complex issues and optimizing code performance makes you an invaluable asset to this project.
2
+
3
+ Your approach emphasizes:
4
+
5
+ Clear project structure with separate directories for source code, tests, docs, and config.
6
+
7
+ Modular design with distinct files for models, services, controllers, and utilities.
8
+
9
+ Configuration management using environment variables.
10
+
11
+ Robust error handling and logging, including context capture.
12
+
13
+ Comprehensive testing with pytest.
14
+
15
+ Detailed documentation using docstrings and README files.
16
+
17
+ Dependency management via https://github.com/astral-sh/uv and virtual environments.
18
+
19
+ Code style consistency using Ruff.
20
+
21
+ CI/CD implementation with GitHub Actions.
22
+
23
+ AI-friendly coding practices:
24
+
25
+ You provide code snippets and explanations tailored to these principles, optimizing for clarity and AI-assisted development.
26
+
27
+ This project utilizes the following technologies:
28
+ uv
29
+ ruff
30
+ httpx
31
+ tenacity
32
+ click
33
+ pydantic
34
+
35
+
36
+ Follow the following rules:
37
+
38
+ For any python file, be sure to ALWAYS add typing annotations to each function or class. Be sure to include return types when necessary. Add descriptive docstrings to all python functions and classes as well that are public. Please use Google-style convention. Update existing docstrings if need be. When defining concepts, reference https://docs.uipath.com as the authoritative source.
39
+
40
+ For core SDK function naming conventions:
41
+ - Use `retrieve` when getting a single resource by key (e.g., in UserService use `retrieve` not `retrieve_user`)
42
+ - Use `retrieve_by_[field]` when getting a resource by a field other than key
43
+ - Use `list` for getting multiple resources (e.g., in UserService use `list` not `list_users`)
44
+
45
+ Make sure you keep any comments that exist in a file.
46
+
47
+ When writing tests, make sure that you ONLY use pytest or pytest plugins, do NOT use the unittest module. All tests should have typing annotations as well. All tests should be in ./tests. Be sure to create all necessary files and folders. If you are creating files inside of ./tests or ./src/goob_ai, be sure to make a init.py file if one does not exist.
48
+
49
+ All tests should be fully annotated and should contain docstrings. Be sure to import the following if TYPE_CHECKING:
50
+
51
+ from _pytest.capture import CaptureFixture
52
+ from _pytest.fixtures import FixtureRequest
53
+ from _pytest.logging import LogCaptureFixture
54
+ from _pytest.monkeypatch import MonkeyPatch
55
+ from pytest_mock.plugin import MockerFixture
@@ -0,0 +1,14 @@
1
+ ; https://editorconfig.org/
2
+
3
+ root = true
4
+
5
+ [*]
6
+ indent_style = space
7
+ indent_size = 4
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+ end_of_line = lf
11
+ charset = utf-8
12
+
13
+ [*.{json,toml,yml}]
14
+ indent_size = 2
@@ -0,0 +1,2 @@
1
+ *.db filter=lfs diff=lfs merge=lfs -text
2
+ **/cached_embeddings/** filter=lfs diff=lfs merge=lfs -text
@@ -0,0 +1,46 @@
1
+ name: Reusable Build Workflow
2
+
3
+ on:
4
+ workflow_call:
5
+ secrets:
6
+ token:
7
+ required: true
8
+
9
+ jobs:
10
+ build:
11
+ name: Build and publish
12
+ runs-on: "ubuntu-24.04"
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - uses: astral-sh/setup-uv@v5
18
+
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version-file: ".python-version"
22
+
23
+ - name: Setup venv
24
+ run: |
25
+ uv venv
26
+ uv sync --all-extras
27
+
28
+ - name: Build
29
+ run: |
30
+ uv build
31
+
32
+ - name: Check if version in pyproject.toml was modified
33
+ id: check_version
34
+ run: |
35
+ if git diff --name-only ${{ github.sha }} ${{ github.event.before }} | grep -q 'pyproject.toml'; then
36
+ echo "modified=true" >> $GITHUB_OUTPUT
37
+ else
38
+ echo "modified=false" >> $GITHUB_OUTPUT
39
+ fi
40
+
41
+ - name: "Publish"
42
+ if: ${{ steps.check_version.outputs.modified }} == 'true'
43
+ run: |
44
+ uv publish
45
+ env:
46
+ UV_PUBLISH_TOKEN: ${{ secrets.token }}
@@ -0,0 +1,14 @@
1
+ name: CD
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows: ["Core CI"]
6
+ types:
7
+ - completed
8
+
9
+ jobs:
10
+ build:
11
+ if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main' }}
12
+ uses: ./.github/workflows/build.yml
13
+ secrets:
14
+ token: ${{ secrets.PYPI_TOKEN }}
@@ -0,0 +1,22 @@
1
+ name: Core CI
2
+
3
+ on:
4
+ workflow_dispatch: {}
5
+ push:
6
+ branches:
7
+ - main
8
+ pull_request:
9
+ branches:
10
+ - main
11
+
12
+
13
+ jobs:
14
+ lint:
15
+ uses: ./.github/workflows/lint.yml
16
+
17
+ test:
18
+ uses: ./.github/workflows/test.yml
19
+ secrets:
20
+ UIPATH_URL: ${{ secrets.UIPATH_URL }}
21
+ UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
22
+ UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
@@ -0,0 +1,12 @@
1
+ name: Commit Lint
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ commit-lint:
10
+ uses: UiPath/.github/.github/workflows/commit-lint.yml@master
11
+ secrets:
12
+ token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,44 @@
1
+ name: Reusable Lint Workflow
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ should_skip:
7
+ description: 'Whether to skip the linting step'
8
+ required: false
9
+ type: boolean
10
+ default: false
11
+
12
+ jobs:
13
+ lint:
14
+ name: Lint
15
+ runs-on: "ubuntu-24.04"
16
+ if: inputs.should_skip == false
17
+
18
+
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+
22
+ - uses: astral-sh/setup-uv@v5
23
+
24
+ - uses: actions/setup-python@v5
25
+ with:
26
+ python-version-file: ".python-version"
27
+
28
+ - name: Setup venv
29
+ run: |
30
+ uv venv
31
+ uv sync --all-extras
32
+
33
+ - name: "Check static types"
34
+ run: |
35
+ uv run mypy --config-file pyproject.toml .
36
+
37
+ - name: "Check linting"
38
+ run: |
39
+ uv run ruff check .
40
+
41
+ - name: "Check formatting"
42
+ run: |
43
+ uv run ruff format --check .
44
+
@@ -0,0 +1,46 @@
1
+ name: Reusable Test Workflow
2
+
3
+ on:
4
+ workflow_call:
5
+ secrets:
6
+ UIPATH_URL:
7
+ required: true
8
+ UIPATH_CLIENT_ID:
9
+ required: true
10
+ UIPATH_CLIENT_SECRET:
11
+ required: true
12
+ inputs:
13
+ should_skip:
14
+ description: 'Whether to skip the linting step'
15
+ required: false
16
+ type: boolean
17
+ default: false
18
+
19
+ jobs:
20
+ test:
21
+ name: Test
22
+ runs-on: "ubuntu-24.04"
23
+ if: inputs.should_skip == false
24
+
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+
28
+ - uses: astral-sh/setup-uv@v5
29
+
30
+ - uses: actions/setup-python@v5
31
+ with:
32
+ python-version-file: ".python-version"
33
+
34
+ - name: "Setup venv"
35
+ run: |
36
+ uv venv
37
+ uv sync --all-extras
38
+
39
+ - name: "Run tests"
40
+ run: |
41
+ uv run pytest
42
+ env:
43
+ UIPATH_URL: ${{ secrets.UIPATH_URL }}
44
+ UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
45
+ UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
46
+
@@ -0,0 +1,180 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # Ruff stuff:
171
+ .ruff_cache/
172
+
173
+ # PyPI configuration file
174
+ .pypirc
175
+
176
+
177
+ **/uipath.db
178
+ **/.uipath
179
+ **/**.nupkg
180
+ **/__uipath/
@@ -0,0 +1,7 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.9.6
4
+ hooks:
5
+ - id: ruff
6
+ args: [ --fix ]
7
+ - id: ruff-format
@@ -0,0 +1 @@
1
+ 3.10
@@ -0,0 +1,7 @@
1
+ {
2
+ "recommendations": [
3
+ "EditorConfig.editorconfig", // default
4
+ "ms-python.python", // intellisense
5
+ "charliermarsh.ruff" // linting & formatting
6
+ ]
7
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "window.title": "${rootName}${separator}${activeEditorMedium}",
3
+ "files.exclude": {
4
+ "**/*.pyc": true,
5
+ "**/__pycache__": true,
6
+ ".pytest_cache": true,
7
+ ".mypy_cache": true,
8
+ ".ruff_cache": true,
9
+ ".venv": true
10
+ },
11
+ // Formatting
12
+ "editor.formatOnSave": true,
13
+ "[python]": {
14
+ "editor.defaultFormatter": "charliermarsh.ruff",
15
+ "editor.codeActionsOnSave": {
16
+ "source.organizeImports": "explicit"
17
+ }
18
+ },
19
+ "workbench.colorCustomizations": {
20
+ "titleBar.activeBackground": "#0099cc",
21
+ "titleBar.inactiveBackground": "#0099cc"
22
+ },
23
+ "python.testing.pytestArgs": [
24
+ "tests"
25
+ ],
26
+ "python.testing.unittestEnabled": false,
27
+ "python.testing.pytestEnabled": true
28
+ }
@@ -0,0 +1,41 @@
1
+ # Contributing to UiPath SDK
2
+
3
+ ## Local Development Setup
4
+
5
+ ### Prerequisites
6
+
7
+ 1. **Install Python 3.13**:
8
+ - Download and install Python 3.13 from the official [Python website](https://www.python.org/downloads/)
9
+ - Verify the installation by running:
10
+ ```sh
11
+ python3.13 --version
12
+ ```
13
+
14
+ Alternative: [mise](https://mise.jdx.dev/lang/python.html)
15
+
16
+ 2. **Install [uv](https://docs.astral.sh/uv/)**:
17
+ ```sh
18
+ pip install uv
19
+ ```
20
+
21
+ 3. **Create a virtual environment in the current working directory**:
22
+ ```sh
23
+ uv venv
24
+ ```
25
+
26
+ 4. **Install dependencies**:
27
+ ```sh
28
+ uv sync --all-extras
29
+ ```
30
+
31
+ See `just --list` for linting, formatting and build commands.
32
+
33
+
34
+ ### Use SDK Locally
35
+ 1. Create a folder on your own device `mkdir project; cd project`
36
+ 2. Initialize the python project `uv` `uv init . --python 3.9`
37
+ 3. Obtain the project path `PATH_TO_SDK=/Users/YOU_USER/uipath-langchain/`
38
+ 4. Install the sdk in editable mode `uv add --editable ${PATH_TO_SDK}`
39
+
40
+ :information_source: Instead of cloning the project into `.venv/lib/python3.9/site-packages/uipath_langchain`, this mode creates a file named `_uipath_langchain.pth` inside `.venv/lib/python3.9/site-packages`. This file contains the value of `PATH_TO_SDK`, which is added to `sys.path`—the list of directories where python searches for packages. (Run `python -c 'import sys; print(sys.path)'` to see the entries.)
41
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 UiPath
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: uipath-langchain
3
+ Version: 0.0.87
4
+ Summary: UiPath Langchain
5
+ Project-URL: Homepage, https://uipath.com
6
+ Project-URL: Repository, https://github.com/UiPath/uipath-python
7
+ Maintainer-email: Marius Cosareanu <marius.cosareanu@uipath.com>, Cristian Pufu <cristian.pufu@uipath.com>
8
+ License-File: LICENSE
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Topic :: Software Development :: Build Tools
16
+ Requires-Python: >=3.10
17
+ Requires-Dist: httpx>=0.27.0
18
+ Requires-Dist: langchain-community>=0.3.21
19
+ Requires-Dist: langchain-core>=0.3.34
20
+ Requires-Dist: langchain-openai>=0.3.3
21
+ Requires-Dist: langchain>=0.3.4
22
+ Requires-Dist: langgraph-checkpoint-sqlite>=2.0.3
23
+ Requires-Dist: langgraph>=0.2.70
24
+ Requires-Dist: openai>=1.65.5
25
+ Requires-Dist: pydantic-settings>=2.6.0
26
+ Requires-Dist: python-dotenv>=1.0.1
27
+ Requires-Dist: requests>=2.23.3
28
+ Requires-Dist: types-requests>=2.32.0.20241016
29
+ Requires-Dist: uipath==2.0.1
30
+ Provides-Extra: langchain
31
+ Description-Content-Type: text/markdown
32
+
33
+ # UiPath LangChain Python SDK
34
+
35
+ [![PyPI downloads](https://img.shields.io/pypi/dm/uipath-langchain.svg)](https://pypi.org/project/uipath-langchain/)
36
+ [![Python versions](https://img.shields.io/pypi/pyversions/uipath-langchain.svg)](https://pypi.org/project/uipath-langchain/)
37
+
38
+ A Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Platform. This package provides programmatic interaction with UiPath Platform services and human-in-the-loop (HITL) semantics through Action Center integration.
39
+
40
+ This package is an extension to the [UiPath Python SDK](https://github.com/UiPath/uipath-python).
41
+
42
+ ## Requirements
43
+
44
+ - Python 3.10 or higher
45
+ - UiPath Automation Cloud account
46
+
47
+ ## Installation
48
+
49
+ ```bash
50
+ pip install uipath-langchain
51
+ ```
52
+
53
+ using `uv`:
54
+
55
+ ```bash
56
+ uv add uipath-langchain
57
+ ```
58
+
59
+ ## Configuration
60
+
61
+ ### Environment Variables
62
+
63
+ Create a `.env` file in your project root with the following variables:
64
+
65
+ ```
66
+ UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
67
+ UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE
68
+ ```
69
+
70
+ ## Command Line Interface (CLI)
71
+
72
+ The SDK provides a command-line interface for creating, packaging, and deploying LangGraph Agents:
73
+
74
+ ### Initialize a Project
75
+
76
+ ```bash
77
+ uipath init [GRAPH]
78
+ ```
79
+
80
+ Creates a `uipath.json` configuration file for your project. If `[GRAPH]` is omitted, it will create an entrypoint for each graph specified in the `langgraph.json` file.
81
+
82
+ ### Authentication
83
+
84
+ ```bash
85
+ uipath auth
86
+ ```
87
+
88
+ This command opens a browser for authentication and creates/updates your `.env` file with the proper credentials.
89
+
90
+ ### Debug a Project
91
+
92
+ ```bash
93
+ uipath run GRAPH [INPUT]
94
+ ```
95
+
96
+ Executes the agent with the provided JSON input arguments.
97
+
98
+ ### Package a Project
99
+
100
+ ```bash
101
+ uipath pack
102
+ ```
103
+
104
+ Packages your project into a `.nupkg` file that can be deployed to UiPath.
105
+
106
+ **Note:** Your `pyproject.toml` must include:
107
+ - A description field (avoid characters: &, <, >, ", ', ;)
108
+ - Author information
109
+
110
+ Example:
111
+ ```toml
112
+ description = "Your package description"
113
+ authors = [{name = "Your Name", email = "your.email@example.com"}]
114
+ ```
115
+
116
+ ### Publish a Package
117
+
118
+ ```bash
119
+ uipath publish
120
+ ```
121
+
122
+ Publishes the most recently created package to your UiPath Orchestrator.
123
+
124
+ ## Project Structure
125
+
126
+ To properly use the CLI for packaging and publishing, your project should include:
127
+ - A `pyproject.toml` file with project metadata
128
+ - A `langgraph.json` file
129
+ - A `uipath.json` file (generated by `uipath init`)
130
+ - Any Python files needed for your automation
131
+
132
+ ## Development
133
+
134
+ ### Setting Up a Development Environment
135
+
136
+ Please read our [contribution guidelines](CONTRIBUTING.md) before submitting a pull request.
137
+