uipath-langchain 0.0.87__tar.gz → 0.0.88__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 (157) hide show
  1. uipath_langchain-0.0.88/.github/workflows/manual_cd.yml +33 -0
  2. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/PKG-INFO +3 -4
  3. uipath_langchain-0.0.88/docs/chat_models.md +91 -0
  4. uipath_langchain-0.0.88/docs/context_grounding_chain.md +38 -0
  5. uipath_langchain-0.0.88/docs/context_grounding_retriever.md +46 -0
  6. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/pyproject.toml +3 -4
  7. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/company-research-agent/pyproject.toml +2 -3
  8. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/company-research-agent/uv.lock +38 -351
  9. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/hitl-inbox-server/main.py +2 -2
  10. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/hitl-inbox-server/pyproject.toml +1 -1
  11. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/hitl-inbox-server/uv.lock +101 -76
  12. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/README.md +1 -1
  13. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/pyproject.toml +2 -3
  14. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/uv.lock +132 -417
  15. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-supervisor-researcher-coder/README.md +1 -1
  16. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-supervisor-researcher-coder/pyproject.toml +2 -3
  17. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-supervisor-researcher-coder/uv.lock +132 -417
  18. {uipath_langchain-0.0.87/samples/uipath_retrieval_chain → uipath_langchain-0.0.88/samples/retrieval-chain}/pyproject.toml +2 -2
  19. uipath_langchain-0.0.88/samples/retrieval-chain/uv.lock +1968 -0
  20. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/README.md +1 -1
  21. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/pyproject.toml +1 -2
  22. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/uv.lock +129 -106
  23. uipath_langchain-0.0.88/samples/simple-remote-mcp/README.md +73 -0
  24. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-remote-mcp/main.py +4 -1
  25. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-remote-mcp/pyproject.toml +1 -2
  26. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-remote-mcp/uv.lock +35 -38
  27. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/ticket-classification/main.py +2 -2
  28. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/ticket-classification/pyproject.toml +1 -2
  29. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/ticket-classification/uv.lock +129 -106
  30. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/pyproject.toml +1 -2
  31. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/uv.lock +129 -106
  32. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/_runtime/_escalation.py +1 -1
  33. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/_runtime/_output.py +2 -2
  34. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/uv.lock +7 -5
  35. uipath_langchain-0.0.87/samples/connections/.env.example +0 -2
  36. uipath_langchain-0.0.87/samples/connections/.vscode/launch.json +0 -17
  37. uipath_langchain-0.0.87/samples/connections/main.py +0 -73
  38. uipath_langchain-0.0.87/samples/connections/pyproject.toml +0 -11
  39. uipath_langchain-0.0.87/samples/connections/uv.lock +0 -562
  40. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/.env.example +0 -6
  41. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/.vscode/launch.json +0 -16
  42. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/_main.py +0 -31
  43. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/agent.mermaid +0 -20
  44. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/configuration.py +0 -48
  45. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/graph.py +0 -184
  46. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/langgraph.json +0 -7
  47. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/prompts.py +0 -45
  48. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/pyproject.toml +0 -29
  49. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/state.py +0 -132
  50. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/supplier_website_reader.py +0 -31
  51. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/uipath_ecs_retriever_tool.py +0 -13
  52. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/utils.py +0 -26
  53. uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent/uv.lock +0 -2235
  54. uipath_langchain-0.0.87/src/uipath_langchain/chat/utils/__init__.py +0 -0
  55. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.cursorrules +0 -0
  56. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.editorconfig +0 -0
  57. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.gitattributes +0 -0
  58. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.github/workflows/build.yml +0 -0
  59. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.github/workflows/cd.yml +0 -0
  60. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.github/workflows/ci.yml +0 -0
  61. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.github/workflows/commitlint.yml +0 -0
  62. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.github/workflows/lint.yml +0 -0
  63. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.github/workflows/test.yml +0 -0
  64. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.gitignore +0 -0
  65. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.pre-commit-config.yaml +0 -0
  66. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.python-version +0 -0
  67. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.vscode/extensions.json +0 -0
  68. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/.vscode/settings.json +0 -0
  69. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/CONTRIBUTING.md +0 -0
  70. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/LICENSE +0 -0
  71. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/README.md +0 -0
  72. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/docs/interrupt_models.md +0 -0
  73. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/company-research-agent/.env.example +0 -0
  74. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/company-research-agent/agent.mermaid +0 -0
  75. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/company-research-agent/graph.py +0 -0
  76. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/company-research-agent/langgraph.json +0 -0
  77. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/company-research-agent/uipath.json +0 -0
  78. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/hitl-inbox-server/database.py +0 -0
  79. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/hitl-inbox-server/models.py +0 -0
  80. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/hitl-inbox-server/schemas.py +0 -0
  81. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/hitl-inbox-server/templates/index.html +0 -0
  82. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/.env.example +0 -0
  83. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/coder.mermaid +0 -0
  84. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/langgraph.json +0 -0
  85. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/planner.mermaid +0 -0
  86. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/researcher.mermaid +0 -0
  87. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/coder.py +0 -0
  88. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/planner.py +0 -0
  89. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/researcher.py +0 -0
  90. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-supervisor-researcher-coder/.env.example +0 -0
  91. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-supervisor-researcher-coder/agent.mermaid +0 -0
  92. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-supervisor-researcher-coder/graph.py +0 -0
  93. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-supervisor-researcher-coder/langgraph.json +0 -0
  94. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/multi-agent-supervisor-researcher-coder/uipath.json +0 -0
  95. {uipath_langchain-0.0.87/samples/uipath_retrieval_chain → uipath_langchain-0.0.88/samples/retrieval-chain}/.env.example +0 -0
  96. {uipath_langchain-0.0.87/samples/uipath_retrieval_chain → uipath_langchain-0.0.88/samples/retrieval-chain}/README.md +0 -0
  97. {uipath_langchain-0.0.87/samples/uipath_retrieval_chain → uipath_langchain-0.0.88/samples/retrieval-chain}/main.py +0 -0
  98. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/.env.example +0 -0
  99. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/agent.mermaid +0 -0
  100. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/langgraph.json +0 -0
  101. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/src/simple-local-mcp/graph.py +0 -0
  102. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/src/simple-local-mcp/math_server.py +0 -0
  103. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/src/simple-local-mcp/weather_server.py +0 -0
  104. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-local-mcp/uipath.json +0 -0
  105. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-remote-mcp/.env.example +0 -0
  106. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-remote-mcp/agent.mermaid +0 -0
  107. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-remote-mcp/langgraph.json +0 -0
  108. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/simple-remote-mcp/uipath.json +0 -0
  109. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/ticket-classification/.env.example +0 -0
  110. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/ticket-classification/README.md +0 -0
  111. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/ticket-classification/agent.mermaid +0 -0
  112. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/ticket-classification/langgraph.json +0 -0
  113. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/ticket-classification/uipath.json +0 -0
  114. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/.env.example +0 -0
  115. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/README.md +0 -0
  116. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/agent.mermaid +0 -0
  117. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/langgraph.json +0 -0
  118. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/main.py +0 -0
  119. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/mcps/estate_mcp.py +0 -0
  120. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/mcps/travel_mcp.py +0 -0
  121. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/samples/travel-planner-local-mcp/uipath.json +0 -0
  122. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/__init__.py +0 -0
  123. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/__init__.py +0 -0
  124. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/_runtime/_context.py +0 -0
  125. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/_runtime/_exception.py +0 -0
  126. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/_runtime/_input.py +0 -0
  127. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/_runtime/_runtime.py +0 -0
  128. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/_utils/_graph.py +0 -0
  129. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/cli_init.py +0 -0
  130. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_cli/cli_run.py +0 -0
  131. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_utils/__init__.py +0 -0
  132. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_utils/_request_mixin.py +0 -0
  133. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_utils/_settings.py +0 -0
  134. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/_utils/_sleep_policy.py +0 -0
  135. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/chat/__init__.py +0 -0
  136. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/chat/models.py +0 -0
  137. {uipath_langchain-0.0.87/samples/invoice-dispute-investigation-agent → uipath_langchain-0.0.88/src/uipath_langchain/chat/utils}/__init__.py +0 -0
  138. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/chat/utils/_chat_types.py +0 -0
  139. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/embeddings/__init__.py +0 -0
  140. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/embeddings/embeddings.py +0 -0
  141. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/middlewares.py +0 -0
  142. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/retrievers/__init__.py +0 -0
  143. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/retrievers/context_grounding_retriever.py +0 -0
  144. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/tracers/AsyncUiPathTracer.py +0 -0
  145. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/tracers/UiPathTracer.py +0 -0
  146. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/tracers/__init__.py +0 -0
  147. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/tracers/_events.py +0 -0
  148. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/tracers/_instrument_traceable.py +0 -0
  149. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/tracers/_utils.py +0 -0
  150. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/utils/__init__.py +0 -0
  151. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/utils/_request_mixin.py +0 -0
  152. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/utils/_settings.py +0 -0
  153. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/utils/_sleep_policy.py +0 -0
  154. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/src/uipath_langchain/vectorstores/context_grounding_vectorstore.py +0 -0
  155. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/tests/conftest.py +0 -0
  156. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/tests/test_dummy.py +0 -0
  157. {uipath_langchain-0.0.87 → uipath_langchain-0.0.88}/tests/test_langchain_client.py +0 -0
@@ -0,0 +1,33 @@
1
+ name: Manual CD
2
+
3
+ on:
4
+ workflow_dispatch: {}
5
+
6
+ jobs:
7
+ build:
8
+ name: Manual CD - Build and publish
9
+ runs-on: "ubuntu-24.04"
10
+
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+
14
+ - uses: astral-sh/setup-uv@v5
15
+
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version-file: ".python-version"
19
+
20
+ - name: Setup venv
21
+ run: |
22
+ uv venv
23
+ uv sync --all-extras
24
+
25
+ - name: Build
26
+ run: |
27
+ uv build
28
+
29
+ - name: "Publish"
30
+ run: |
31
+ uv publish
32
+ env:
33
+ UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
@@ -1,14 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath-langchain
3
- Version: 0.0.87
3
+ Version: 0.0.88
4
4
  Summary: UiPath Langchain
5
5
  Project-URL: Homepage, https://uipath.com
6
- Project-URL: Repository, https://github.com/UiPath/uipath-python
6
+ Project-URL: Repository, https://github.com/UiPath/uipath-langchain-python
7
7
  Maintainer-email: Marius Cosareanu <marius.cosareanu@uipath.com>, Cristian Pufu <cristian.pufu@uipath.com>
8
8
  License-File: LICENSE
9
9
  Classifier: Development Status :: 3 - Alpha
10
10
  Classifier: Intended Audience :: Developers
11
- Classifier: Programming Language :: Python :: 3.9
12
11
  Classifier: Programming Language :: Python :: 3.10
13
12
  Classifier: Programming Language :: Python :: 3.11
14
13
  Classifier: Programming Language :: Python :: 3.12
@@ -26,7 +25,7 @@ Requires-Dist: pydantic-settings>=2.6.0
26
25
  Requires-Dist: python-dotenv>=1.0.1
27
26
  Requires-Dist: requests>=2.23.3
28
27
  Requires-Dist: types-requests>=2.32.0.20241016
29
- Requires-Dist: uipath==2.0.1
28
+ Requires-Dist: uipath<2.1.0,>=2.0.4
30
29
  Provides-Extra: langchain
31
30
  Description-Content-Type: text/markdown
32
31
 
@@ -0,0 +1,91 @@
1
+ # UiPath chat models
2
+
3
+ UiPath provides two chat models `UiPathAzureChatOpenAI` and `UiPathNormalizedChatModel`. These are compatible with langgraph as drop in replacements. You do not need to add tokens from OpenAI or Anthropic, usage of these chat models will consume `AI Units` on your account.
4
+
5
+ ## UiPathAzureChatOpenAI
6
+
7
+ `UiPathAzureChatOpenAI` can be used as a drop in replacement for `ChatOpenAI` or `AzureChatOpenAI`.
8
+
9
+ ### Example usage
10
+
11
+ Here is a code that is using `ChatOpenAI`
12
+ ```python
13
+ from langchain_openai import ChatOpenAI
14
+
15
+ llm = ChatOpenAI(
16
+ model="gpt-4o",
17
+ temperature=0,
18
+ max_tokens=None,
19
+ timeout=None,
20
+ max_retries=2,
21
+ # api_key="...", # if you prefer to pass api key in directly instaed of using env vars
22
+ # base_url="...",
23
+ # organization="...",
24
+ # other params...
25
+ )
26
+ ```
27
+
28
+ You can simply change `ChatOpenAi` with `UiPathAzureChatOpenAI`, you don't have to provide an `OPEN_AI_TOKEN`
29
+
30
+
31
+ ```python
32
+ from uipath_langchain.chat.models import UiPathAzureChatOpenAI
33
+
34
+ llm = UiPathAzureChatOpenAI(
35
+ model="gpt-4o",
36
+ temperature=0,
37
+ max_tokens=None,
38
+ timeout=None,
39
+ max_retries=2,
40
+ # other params...
41
+ )
42
+ ```
43
+
44
+ Currently the following models can be used with `UiPathAzureChatOpenAI` (this list can be updated in the future):
45
+ - `gpt-4`, `gpt-4-1106-Preview`, `gpt-4-32k`, `gpt-4-turbo-2024-04-09`, `gpt-4-vision-preview`, `gpt-4o-2024-05-13`, `gpt-4o-2024-08-06`, `gpt-4o-mini-2024-07-18`, `o3-mini-2025-01-31`
46
+
47
+
48
+ ## UiPathNormalizedChatModel
49
+
50
+ `UiPathNormalizedChatModel` is a more versatile clas that can suport models from diferent vendors including OpenAI.
51
+
52
+ ### Example usage
53
+
54
+ Given the following code:
55
+
56
+ ```python
57
+ from langchain_anthropic import ChatAnthropic
58
+
59
+ llm = ChatAnthropic(
60
+ model="claude-3-5-sonnet-20240620",
61
+ temperature=0,
62
+ max_tokens=1024,
63
+ timeout=None,
64
+ max_retries=2,
65
+ # other params...
66
+ )
67
+ ```
68
+
69
+ You can replace it with `UiPathNormalizedChatModel` like so:
70
+
71
+ ```python
72
+ from uipath_langchain.chat.models import UiPathNormalizedChatModel
73
+
74
+ llm = UiPathNormalizedChatModel(
75
+ model="anthropic.claude-3-opus-20240229-v1:0",
76
+ temperature=0,
77
+ max_tokens=1024,
78
+ timeout=None,
79
+ max_retries=2,
80
+ # other params...
81
+ )
82
+ ```
83
+
84
+ Currently the following models can be used with `UiPathAzureChatOpenAI` (this list can be updated in the future):
85
+ - `anthropic.claude-3-5-sonnet-20240620-v1:0`, `anthropic.claude-3-5-sonnet-20241022-v2:0`, `anthropic.claude-3-7-sonnet-20250219-v1:0`, `anthropic.claude-3-haiku-20240307-v1:0`, `gemini-1.5-pro-001`, `gemini-2.0-flash-001`, `gpt-4o-2024-05-13`, `gpt-4o-2024-08-06`, `gpt-4o-2024-11-20`, `gpt-4o-mini-2024-07-18`, `o3-mini-2025-01-31`
86
+
87
+ ### Note
88
+
89
+ Please note that that you may get errors related to data residency, as some models are not available on all regions.
90
+
91
+ Example: `[Enforced Region] No model configuration found for product uipath-python-sdk in EU using model anthropic.claude-3-opus-20240229-v1:0`.
@@ -0,0 +1,38 @@
1
+ # ContextGroundingVectorStore
2
+
3
+ `ContextGroundingVectorStore` is a vector store implementation designed for context-aware document retrieval. It allows you to perform semantic searches and create retrieval chains with language models.
4
+
5
+ ## Initialization
6
+
7
+ You can initialize the vector store with an index name:
8
+
9
+ ```python
10
+ from uipath_langchain.vectorstores.context_grounding_vectorstore import ContextGroundingVectorStore
11
+
12
+ vectorstore = ContextGroundingVectorStore(index_name=index_name)
13
+ ```
14
+
15
+ ## Searching Documents
16
+
17
+ The vector store supports various search methods:
18
+
19
+ ```python
20
+ # Perform semantic searches with distance scores
21
+ docs_with_scores = await vectorstore.asimilarity_search_with_score(query=query, k=5)
22
+
23
+ # Perform a similarity search with relevance scores
24
+ docs_with_relevance_scores = await vectorstore.asimilarity_search_with_relevance_scores(query=query, k=5)
25
+ ```
26
+
27
+ ## Creating a Retrieval Chain
28
+
29
+ You can integrate the vector store into a retrieval chain with a language model:
30
+
31
+ ```python
32
+ # Run a retrieval chain
33
+ model = UiPathAzureChatOpenAI(model="gpt-4o-2024-08-06", max_retries=3)
34
+ retrieval_chain = create_retrieval_chain(vectorstore=vectorstore, model=model)
35
+
36
+ query = "What is the ECCN for a laptop?"
37
+ result = retrieval_chain(query)
38
+ ```
@@ -0,0 +1,46 @@
1
+ # Context Grounding Retriever
2
+
3
+ The `ContextGroundingRetriever` is a document retrieval system that uses vector search to efficiently find and retrieve relevant information from your document store.
4
+
5
+ ## Overview
6
+
7
+ `ContextGroundingRetriever` allows you to:
8
+ - Search through indexed documents using natural language queries
9
+ - Ground LLM responses in your organization's specific information
10
+ - Retrieve context-relevant documents for various applications
11
+
12
+
13
+ ## Basic Usage
14
+
15
+ Create a simple retriever by specifying an index name:
16
+
17
+ ```python
18
+ from uipath_langchain.retrievers import ContextGroundingRetriever
19
+
20
+ retriever = ContextGroundingRetriever(index_name = "Company Policy Context")
21
+ pprint(retriever.invoke("What is the company policy on remote work?"))
22
+ ```
23
+
24
+ ## Integration with LangChain Tools
25
+
26
+ You can easily integrate the retriever with LangChain's tool system:
27
+
28
+ ```python
29
+ from langchain.tools.retriever import create_retriever_tool
30
+ from uipath_langchain.retrievers import ContextGroundingRetriever
31
+
32
+ retriever = ContextGroundingRetriever(index_name = "Company Policy Context")
33
+ retriever_tool = create_retriever_tool(
34
+ retriever,
35
+ "ContextforInvoiceDisputeInvestigation",
36
+ """
37
+ Use this tool to search the company internal documents for information about policies around dispute resolution.
38
+ Use a meaningful query to load relevant information from the documents. Save the citation for later use.
39
+ """
40
+ )
41
+ ```
42
+
43
+
44
+ ## Advanced Usage
45
+
46
+ For complex applications, the retriever can be combined with other LangChain components to create robust document QA systems, agents, or knowledge bases.
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "uipath-langchain"
3
- version = "0.0.87"
3
+ version = "0.0.88"
4
4
  description = "UiPath Langchain"
5
5
  readme = { file = "README.md", content-type = "text/markdown" }
6
6
  requires-python = ">=3.10"
7
7
  dependencies = [
8
- "uipath==2.0.1",
8
+ "uipath>=2.0.4, <2.1.0",
9
9
  "langgraph>=0.2.70",
10
10
  "langchain-core>=0.3.34",
11
11
  "langgraph-checkpoint-sqlite>=2.0.3",
@@ -23,7 +23,6 @@ classifiers = [
23
23
  "Development Status :: 3 - Alpha",
24
24
  "Intended Audience :: Developers",
25
25
  "Topic :: Software Development :: Build Tools",
26
- "Programming Language :: Python :: 3.9",
27
26
  "Programming Language :: Python :: 3.10",
28
27
  "Programming Language :: Python :: 3.11",
29
28
  "Programming Language :: Python :: 3.12",
@@ -38,7 +37,7 @@ register = "uipath_langchain.middlewares:register_middleware"
38
37
 
39
38
  [project.urls]
40
39
  Homepage = "https://uipath.com"
41
- Repository = "https://github.com/UiPath/uipath-python"
40
+ Repository = "https://github.com/UiPath/uipath-langchain-python"
42
41
 
43
42
  [build-system]
44
43
  requires = ["hatchling"]
@@ -5,14 +5,13 @@ description = "Company research agent with Tavily web search"
5
5
  authors = [
6
6
  { name = "John Doe" }
7
7
  ]
8
- requires-python = ">=3.9"
8
+ requires-python = ">=3.10"
9
9
  dependencies = [
10
10
  "langgraph>=0.2.55",
11
11
  "langchain-community>=0.3.9",
12
12
  "langchain-anthropic>=0.3.8",
13
13
  "tavily-python>=0.5.0",
14
- "uipath-sdk==0.0.110",
15
- "uipath-langchain==0.0.81"
14
+ "uipath-langchain==0.0.87"
16
15
  ]
17
16
 
18
17
  [project.optional-dependencies]