uipath-langchain 0.0.103__tar.gz → 0.0.105__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 (161) hide show
  1. uipath_langchain-0.0.105/.github/workflows/slack.yml +20 -0
  2. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/PKG-INFO +2 -3
  3. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/chat_models.md +2 -2
  4. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/context_grounding.md +90 -89
  5. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/quick_start.md +88 -47
  6. uipath_langchain-0.0.105/docs/quick_start_images/cloud_env_var_dark.png +0 -0
  7. uipath_langchain-0.0.105/docs/quick_start_images/cloud_env_var_light.png +0 -0
  8. uipath_langchain-0.0.105/docs/quick_start_images/invoke_output_dark.png +0 -0
  9. uipath_langchain-0.0.105/docs/quick_start_images/invoke_output_light.png +0 -0
  10. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/pyproject.toml +2 -3
  11. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/retrievers/context_grounding_retriever.py +6 -0
  12. uipath_langchain-0.0.105/src/uipath_langchain/vectorstores/__init__.py +3 -0
  13. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/tests/test_langchain_client.py +1 -1
  14. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/uv.lock +1423 -1429
  15. uipath_langchain-0.0.103/docs/quick_start_images/cloud_env_var.png +0 -0
  16. uipath_langchain-0.0.103/src/uipath_langchain/chat/utils/__init__.py +0 -0
  17. uipath_langchain-0.0.103/src/uipath_langchain/chat/utils/_chat_types.py +0 -54
  18. uipath_langchain-0.0.103/src/uipath_langchain/utils/__init__.py +0 -3
  19. uipath_langchain-0.0.103/src/uipath_langchain/utils/_request_mixin.py +0 -488
  20. uipath_langchain-0.0.103/src/uipath_langchain/utils/_settings.py +0 -91
  21. uipath_langchain-0.0.103/src/uipath_langchain/utils/_sleep_policy.py +0 -41
  22. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.cursorrules +0 -0
  23. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.editorconfig +0 -0
  24. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.gitattributes +0 -0
  25. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.github/workflows/build.yml +0 -0
  26. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.github/workflows/cd.yml +0 -0
  27. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.github/workflows/ci.yml +0 -0
  28. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.github/workflows/commitlint.yml +0 -0
  29. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.github/workflows/lint.yml +0 -0
  30. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.github/workflows/publish-dev.yml +0 -0
  31. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.github/workflows/test.yml +0 -0
  32. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.gitignore +0 -0
  33. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.pre-commit-config.yaml +0 -0
  34. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.python-version +0 -0
  35. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.vscode/extensions.json +0 -0
  36. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/.vscode/settings.json +0 -0
  37. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/CONTRIBUTING.md +0 -0
  38. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/LICENSE +0 -0
  39. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/README.md +0 -0
  40. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/human_in_the_loop.md +0 -0
  41. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/multi-agent-distributed/coder-agent-package-overview.png +0 -0
  42. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/multi-agent-distributed/coder-agent-process-configuration.png +0 -0
  43. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/multi-agent-distributed/planner-agent-package-overview.png +0 -0
  44. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/multi-agent-distributed/planner-agent-process-configuration.png +0 -0
  45. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/multi-agent-distributed/researcher-agent-package-overview.png +0 -0
  46. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/multi-agent-distributed/researcher-agent-process-configuration.png +0 -0
  47. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/activate-apps.png +0 -0
  48. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/activate-deployment.png +0 -0
  49. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/copy-folder-path.png +0 -0
  50. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/deploy-solution-package-wizard.png +0 -0
  51. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/deploy-solution-package.png +0 -0
  52. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/monitor-agent.png +0 -0
  53. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/navigate-to-solution-folder.png +0 -0
  54. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/resume-condition.png +0 -0
  55. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/run-agent.png +0 -0
  56. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/solution-destination-folder.png +0 -0
  57. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/start-job.png +0 -0
  58. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/docs/sample_images/ticket-classification/upload-solution-package.png +0 -0
  59. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/README.md +0 -0
  60. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/company-research-agent/.env.example +0 -0
  61. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/company-research-agent/agent.mermaid +0 -0
  62. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/company-research-agent/graph.py +0 -0
  63. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/company-research-agent/langgraph.json +0 -0
  64. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/company-research-agent/pyproject.toml +0 -0
  65. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/company-research-agent/uipath.json +0 -0
  66. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/company-research-agent/uv.lock +0 -0
  67. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/hitl-inbox-server/database.py +0 -0
  68. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/hitl-inbox-server/main.py +0 -0
  69. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/hitl-inbox-server/models.py +0 -0
  70. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/hitl-inbox-server/pyproject.toml +0 -0
  71. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/hitl-inbox-server/schemas.py +0 -0
  72. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/hitl-inbox-server/templates/index.html +0 -0
  73. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/hitl-inbox-server/uv.lock +0 -0
  74. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/.env.example +0 -0
  75. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/README.md +0 -0
  76. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/coder.mermaid +0 -0
  77. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/langgraph.json +0 -0
  78. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/planner.mermaid +0 -0
  79. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/pyproject.toml +0 -0
  80. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/researcher.mermaid +0 -0
  81. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/coder.py +0 -0
  82. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/planner.py +0 -0
  83. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/researcher.py +0 -0
  84. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/uipath.json +0 -0
  85. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-planner-researcher-coder-distributed/uv.lock +0 -0
  86. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-supervisor-researcher-coder/.env.example +0 -0
  87. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-supervisor-researcher-coder/README.md +0 -0
  88. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-supervisor-researcher-coder/agent.mermaid +0 -0
  89. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-supervisor-researcher-coder/graph.py +0 -0
  90. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-supervisor-researcher-coder/langgraph.json +0 -0
  91. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-supervisor-researcher-coder/pyproject.toml +0 -0
  92. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-supervisor-researcher-coder/uipath.json +0 -0
  93. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/multi-agent-supervisor-researcher-coder/uv.lock +0 -0
  94. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/retrieval-chain/.env.example +0 -0
  95. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/retrieval-chain/README.md +0 -0
  96. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/retrieval-chain/main.py +0 -0
  97. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/retrieval-chain/pyproject.toml +0 -0
  98. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/retrieval-chain/uv.lock +0 -0
  99. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/.env.example +0 -0
  100. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/README.md +0 -0
  101. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/agent.mermaid +0 -0
  102. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/langgraph.json +0 -0
  103. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/pyproject.toml +0 -0
  104. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/src/simple-local-mcp/graph.py +0 -0
  105. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/src/simple-local-mcp/math_server.py +0 -0
  106. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/src/simple-local-mcp/weather_server.py +0 -0
  107. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/uipath.json +0 -0
  108. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-local-mcp/uv.lock +0 -0
  109. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-remote-mcp/.env.example +0 -0
  110. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-remote-mcp/README.md +0 -0
  111. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-remote-mcp/agent.mermaid +0 -0
  112. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-remote-mcp/langgraph.json +0 -0
  113. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-remote-mcp/main.py +0 -0
  114. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-remote-mcp/pyproject.toml +0 -0
  115. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-remote-mcp/uipath.json +0 -0
  116. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/simple-remote-mcp/uv.lock +0 -0
  117. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/.env.example +0 -0
  118. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/README.md +0 -0
  119. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/agent.mermaid +0 -0
  120. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/escalation_app_solution/generic-escalation-app-solution-1.0.0.zip +0 -0
  121. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/langgraph.json +0 -0
  122. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/main.py +0 -0
  123. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/pyproject.toml +0 -0
  124. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/uipath.json +0 -0
  125. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/samples/ticket-classification/uv.lock +0 -0
  126. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/__init__.py +0 -0
  127. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/__init__.py +0 -0
  128. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_runtime/_context.py +0 -0
  129. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_runtime/_escalation.py +0 -0
  130. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_runtime/_exception.py +0 -0
  131. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_runtime/_input.py +0 -0
  132. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_runtime/_output.py +0 -0
  133. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_runtime/_runtime.py +0 -0
  134. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_templates/langgraph.json.template +0 -0
  135. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_templates/main.py.template +0 -0
  136. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/_utils/_graph.py +0 -0
  137. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/cli_init.py +0 -0
  138. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/cli_new.py +0 -0
  139. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_cli/cli_run.py +0 -0
  140. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_utils/__init__.py +0 -0
  141. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_utils/_request_mixin.py +0 -0
  142. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_utils/_settings.py +0 -0
  143. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/_utils/_sleep_policy.py +0 -0
  144. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/chat/__init__.py +0 -0
  145. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/chat/models.py +0 -0
  146. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/embeddings/__init__.py +0 -0
  147. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/embeddings/embeddings.py +0 -0
  148. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/middlewares.py +0 -0
  149. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/retrievers/__init__.py +0 -0
  150. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/tracers/AsyncUiPathTracer.py +0 -0
  151. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/tracers/UiPathTracer.py +0 -0
  152. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/tracers/__init__.py +0 -0
  153. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/tracers/_events.py +0 -0
  154. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/tracers/_instrument_traceable.py +0 -0
  155. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/tracers/_utils.py +0 -0
  156. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/src/uipath_langchain/vectorstores/context_grounding_vectorstore.py +0 -0
  157. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/tests/__init__.py +0 -0
  158. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/tests/test_dummy.py +0 -0
  159. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/tests/tracers/__init__.py +0 -0
  160. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/tests/tracers/test_async_uipath_tracer.py +0 -0
  161. {uipath_langchain-0.0.103 → uipath_langchain-0.0.105}/tests/tracers/test_instrument_traceable.py +0 -0
@@ -0,0 +1,20 @@
1
+ name: GitHub Reviewer Slack Agent
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened]
6
+
7
+ jobs:
8
+ trigger-uipath-agent:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Install Python dependencies
12
+ run: pip install requests
13
+
14
+ - name: Trigger UiPath Agent
15
+ env:
16
+ PR_NUMBER: ${{ github.event.number }}
17
+ REPO_NAME: ${{ github.repository }}
18
+ OWNER_NAME: ${{ github.repository_owner }}
19
+ run: |
20
+ python -c "import requests; import json; import os; comment = {'messages': [{'role': 'user', 'content': f'You are reviewing PR #{os.environ['PR_NUMBER']}, repo: {os.environ['REPO_NAME']}, owner: {os.environ['OWNER_NAME']}'}]}; payload = json.dumps(comment); resp = requests.post('${{ secrets.UIPATH_SLACK_URL }}/orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs', headers={'Authorization': 'Bearer ${{ secrets.UIPATH_SLACK_PAT }}', 'Content-Type': 'application/json', 'X-UiPath-FolderPath': 'MCP Folder'}, json={'startInfo': {'releaseName': 'github-slack-agent', 'inputArguments': payload}}); print(f'Status code: {resp.status_code}'); print(f'Response: {resp.text}')"
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath-langchain
3
- Version: 0.0.103
3
+ Version: 0.0.105
4
4
  Summary: UiPath Langchain
5
5
  Project-URL: Homepage, https://uipath.com
6
6
  Project-URL: Repository, https://github.com/UiPath/uipath-langchain-python
7
+ Project-URL: Documentation, https://uipath.github.io/uipath-python/
7
8
  Maintainer-email: Marius Cosareanu <marius.cosareanu@uipath.com>, Cristian Pufu <cristian.pufu@uipath.com>
8
9
  License-File: LICENSE
9
10
  Classifier: Development Status :: 3 - Alpha
@@ -23,8 +24,6 @@ Requires-Dist: langgraph>=0.2.70
23
24
  Requires-Dist: openai>=1.65.5
24
25
  Requires-Dist: pydantic-settings>=2.6.0
25
26
  Requires-Dist: python-dotenv>=1.0.1
26
- Requires-Dist: requests>=2.23.3
27
- Requires-Dist: types-requests>=2.32.0.20241016
28
27
  Requires-Dist: uipath<2.1.0,>=2.0.33
29
28
  Provides-Extra: langchain
30
29
  Description-Content-Type: text/markdown
@@ -1,4 +1,4 @@
1
- # UiPath Chat Models
1
+ # Chat Models
2
2
 
3
3
  UiPath provides two chat models `UiPathAzureChatOpenAI` and `UiPathChat`. 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
4
 
@@ -47,7 +47,7 @@ Currently the following models can be used with `UiPathAzureChatOpenAI` (this li
47
47
 
48
48
  ## UiPathChat
49
49
 
50
- `UiPathChat` is a more versatile clas that can suport models from diferent vendors including OpenAI.
50
+ `UiPathChat` is a more versatile class that can suport models from diferent vendors including OpenAI.
51
51
 
52
52
  ### Example usage
53
53
 
@@ -1,90 +1,91 @@
1
- # Context Grounding
2
-
3
- Context Grounding Service allows you to:
4
- - Search through indexed documents using natural language queries
5
- - Ground LLM responses in your organization's specific information
6
- - Retrieve context-relevant documents for various applications
7
-
8
-
9
- You will need to create an index in `Context Grounding` to use this feature. To create an index go to organization `Admin` -> `AI Trust Layer` -> `Context Grounding`. There you can create a new index and add documents to it. See the full documentation [here](https://docs.uipath.com/automation-cloud/automation-cloud/latest/admin-guide/about-context-grounding) for more details.
10
-
11
-
12
- # ContextGroundingRetriever
13
-
14
- The `ContextGroundingRetriever` is a document retrieval system that uses vector search to efficiently find and retrieve relevant information from your document store.
15
-
16
- ## Basic Usage
17
-
18
- Create a simple retriever by specifying an index name:
19
-
20
- ```python
21
- from uipath_langchain.retrievers import ContextGroundingRetriever
22
-
23
- retriever = ContextGroundingRetriever(index_name = "Company Policy Context")
24
- print(retriever.invoke("What is the company policy on remote work?"))
25
- ```
26
-
27
- ## Integration with LangChain Tools
28
-
29
- You can easily integrate the retriever with LangChain's tool system:
30
-
31
- ```python
32
- from langchain.agents import create_react_agent
33
- from langchain.tools.retriever import create_retriever_tool
34
- from uipath_langchain.retrievers import ContextGroundingRetriever
35
-
36
- retriever = ContextGroundingRetriever(index_name = "Company Policy Context")
37
- retriever_tool = create_retriever_tool(
38
- retriever,
39
- "ContextforInvoiceDisputeInvestigation",
40
- """
41
- Use this tool to search the company internal documents for information about policies around dispute resolution.
42
- Use a meaningful query to load relevant information from the documents. Save the citation for later use.
43
- """
44
- )
45
-
46
- # You can use the tool in your agents
47
- model = OpenAI()
48
- tools = [retriever_tool]
49
- agent = create_react_agent(model, tools, prompt="Answer user questions as best as you can using the search tool.")
50
- ```
51
-
52
-
53
- ## Advanced Usage
54
-
55
- For complex applications, the retriever can be combined with other LangChain components to create robust document QA systems, agents, or knowledge bases.
56
-
57
-
58
-
59
- # ContextGroundingVectorStore
60
-
61
- `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.
62
-
63
- ## Searching Documents
64
-
65
- The vector store supports various search methods:
66
-
67
- ```python
68
- from uipath_langchain.vectorstores.context_grounding_vectorstore import ContextGroundingVectorStore
69
-
70
- vectorstore = ContextGroundingVectorStore(index_name="Company policy")
71
-
72
- # Perform semantic searches with distance scores
73
- docs_with_scores = vectorstore.asimilarity_search_with_score(query="What is the company policy on data storage?", k=5)
74
-
75
- # Perform a similarity search with relevance scores
76
- docs_with_relevance_scores = await vectorstore.asimilarity_search_with_relevance_scores(query=query, k=5)
77
- ```
78
-
79
- ## Creating a Retrieval Chain
80
-
81
- You can integrate the vector store into a retrieval chain with a language model:
82
-
83
- ```python
84
- # Run a retrieval chain
85
- model = UiPathAzureChatOpenAI(model="gpt-4o-2024-08-06", max_retries=3)
86
- retrieval_chain = create_retrieval_chain(vectorstore=vectorstore, model=model)
87
-
88
- query = "What is the ECCN for a laptop?"
89
- result = retrieval_chain(query)
1
+ # Context Grounding
2
+
3
+ Context Grounding Service allows you to:
4
+
5
+ - Search through indexed documents using natural language queries
6
+ - Ground LLM responses in your organization's specific information
7
+ - Retrieve context-relevant documents for various applications
8
+
9
+
10
+ You will need to create an index in `Context Grounding` to use this feature. To create an index go to organization `Admin` -> `AI Trust Layer` -> `Context Grounding`. There you can create a new index and add documents to it. See the full documentation [here](https://docs.uipath.com/automation-cloud/automation-cloud/latest/admin-guide/about-context-grounding) for more details.
11
+
12
+
13
+ ## ContextGroundingRetriever
14
+
15
+ The `ContextGroundingRetriever` is a document retrieval system that uses vector search to efficiently find and retrieve relevant information from your document store.
16
+
17
+ ### Basic Usage
18
+
19
+ Create a simple retriever by specifying an index name:
20
+
21
+ ```python
22
+ from uipath_langchain.retrievers import ContextGroundingRetriever
23
+
24
+ retriever = ContextGroundingRetriever(index_name = "Company Policy Context")
25
+ print(retriever.invoke("What is the company policy on remote work?"))
26
+ ```
27
+
28
+ ### Integration with LangChain Tools
29
+
30
+ You can easily integrate the retriever with LangChain's tool system:
31
+
32
+ ```python
33
+ from langchain.agents import create_react_agent
34
+ from langchain.tools.retriever import create_retriever_tool
35
+ from uipath_langchain.retrievers import ContextGroundingRetriever
36
+
37
+ retriever = ContextGroundingRetriever(index_name = "Company Policy Context")
38
+ retriever_tool = create_retriever_tool(
39
+ retriever,
40
+ "ContextforInvoiceDisputeInvestigation",
41
+ """
42
+ Use this tool to search the company internal documents for information about policies around dispute resolution.
43
+ Use a meaningful query to load relevant information from the documents. Save the citation for later use.
44
+ """
45
+ )
46
+
47
+ # You can use the tool in your agents
48
+ model = OpenAI()
49
+ tools = [retriever_tool]
50
+ agent = create_react_agent(model, tools, prompt="Answer user questions as best as you can using the search tool.")
51
+ ```
52
+
53
+
54
+ ### Advanced Usage
55
+
56
+ For complex applications, the retriever can be combined with other LangChain components to create robust document QA systems, agents, or knowledge bases.
57
+
58
+
59
+
60
+ ## ContextGroundingVectorStore
61
+
62
+ `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.
63
+
64
+ ### Searching Documents
65
+
66
+ The vector store supports various search methods:
67
+
68
+ ```python
69
+ from uipath_langchain.vectorstores.context_grounding_vectorstore import ContextGroundingVectorStore
70
+
71
+ vectorstore = ContextGroundingVectorStore(index_name="Company policy")
72
+
73
+ # Perform semantic searches with distance scores
74
+ docs_with_scores = vectorstore.asimilarity_search_with_score(query="What is the company policy on data storage?", k=5)
75
+
76
+ # Perform a similarity search with relevance scores
77
+ docs_with_relevance_scores = await vectorstore.asimilarity_search_with_relevance_scores(query=query, k=5)
78
+ ```
79
+
80
+ ### Creating a Retrieval Chain
81
+
82
+ You can integrate the vector store into a retrieval chain with a language model:
83
+
84
+ ```python
85
+ # Run a retrieval chain
86
+ model = UiPathAzureChatOpenAI(model="gpt-4o-2024-08-06", max_retries=3)
87
+ retrieval_chain = create_retrieval_chain(vectorstore=vectorstore, model=model)
88
+
89
+ query = "What is the ECCN for a laptop?"
90
+ result = retrieval_chain(query)
90
91
  ```
@@ -2,11 +2,11 @@
2
2
 
3
3
  ## Introduction
4
4
 
5
- This guide walks you through the process of setting up, creating, publishing, and running your first UiPath-LangChain Agent.
5
+ This guide provides step-by-step instructions for setting up, creating, publishing, and running your first UiPath-LangChain Agent.
6
6
 
7
7
  ## Prerequisites
8
8
 
9
- Ensure you have the following installed before proceeding:
9
+ Before proceeding, ensure you have the following installed:
10
10
 
11
11
  - Python 3.10 or higher
12
12
  - `pip` or `uv` package manager
@@ -17,13 +17,10 @@ Ensure you have the following installed before proceeding:
17
17
 
18
18
  1. **Anthropic** - Generate an Anthropic API key [here](https://console.anthropic.com/settings/keys).
19
19
 
20
- 2. **OpenAi** - Generate an OpenAI API key [here](https://platform.openai.com).
20
+ 2. **OpenAI** - Generate an OpenAI API key [here](https://platform.openai.com).
21
+ ///
21
22
 
22
- ///
23
-
24
- ## Step-by-Step Guide
25
-
26
- ## Creating a New Project
23
+ ## Creating A New Project
27
24
 
28
25
  We recommend using `uv` for package management. To create a new project:
29
26
 
@@ -66,7 +63,7 @@ Creating virtual environment at: .venv
66
63
  Activate with: source .venv/bin/activate
67
64
 
68
65
  # Activate the virtual environment
69
- # For Windows PowerShell: .venv\Scripts\Activate.ps1
66
+ # For Windows PowerShell/ Windows CMD: .venv\Scripts\activate
70
67
  # For Windows Bash: source .venv/Scripts/activate
71
68
  > source .venv/bin/activate
72
69
 
@@ -74,7 +71,7 @@ Activate with: source .venv/bin/activate
74
71
  > uv add uipath-langchain
75
72
 
76
73
  # Verify the uipath installation
77
- > uipath --lv
74
+ > uipath -lv
78
75
  uipath-langchain version 0.0.100
79
76
  ```
80
77
 
@@ -100,7 +97,7 @@ uipath-langchain version 0.0.100
100
97
  > pip install uipath-langchain
101
98
 
102
99
  # Verify the uipath installation
103
- > uipath --lv
100
+ > uipath -lv
104
101
  uipath-langchain version 0.0.100
105
102
  ```
106
103
 
@@ -108,7 +105,7 @@ uipath-langchain version 0.0.100
108
105
 
109
106
  ## Create Your First UiPath Agent
110
107
 
111
- Generate your first UiPath LangChain:
108
+ Generate your first UiPath LangChain agent:
112
109
 
113
110
  <!-- termynal -->
114
111
 
@@ -137,19 +134,17 @@ This command creates the following files:
137
134
  | ---------------- | --------------------------------------------------------------------------------------------------------------------------------- |
138
135
  | `.env` | Environment variables and secrets (this file will not be packed & published). |
139
136
  | `main.py` | LangGraph agent code. |
140
- | `uipath.json` | Input/output json schemas and bindings. |
137
+ | `uipath.json` | Input/output JSON schemas and bindings. |
141
138
  | `langgraph.json` | [LangGraph](https://langchain-ai.github.io/langgraph/concepts/application_structure/#file-structure) specific configuration file. |
142
139
  | `agent.mermaid` | Graph visual representation. |
143
140
 
144
141
  ## Set Up Environment Variables
145
142
 
146
- Before running the agent, set either `OPENAI_API_KEY` or `ANTHROPIC_API_KEY` in the previously created `.env` file:
143
+ Before running the agent, configure either `OPENAI_API_KEY` or `ANTHROPIC_API_KEY` in the `.env` file:
147
144
 
148
145
  //// tab | Open AI
149
146
 
150
- ```hl_lines="3"
151
- UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE
152
- UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
147
+ ```
153
148
  OPENAI_API_KEY=sk-proj-......
154
149
  ```
155
150
 
@@ -157,15 +152,29 @@ OPENAI_API_KEY=sk-proj-......
157
152
 
158
153
  //// tab | ANTHROPIC_API_KEY
159
154
 
160
- ```hl_lines="3"
161
- UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE
162
- UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
163
- ANTHROPIC_API_KEY=your_api_key_here
155
+ ```
156
+ ANTHROPIC_API_KEY=sk-ant-a.....
164
157
  ```
165
158
 
166
159
  ////
167
160
 
168
- ## Run the Agent Locally
161
+ ## Authenticate With UiPath
162
+
163
+ <!-- termynal -->
164
+
165
+ ```shell
166
+ > uipath auth
167
+ ⠋ Authenticating with UiPath ...
168
+ 🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
169
+ 👇 Select tenant:
170
+ 0: Tenant1
171
+ 1: Tenant2
172
+ Select tenant number: 0
173
+ Selected tenant: Tenant1
174
+ ✓ Authentication successful.
175
+ ```
176
+
177
+ ## Run The Agent Locally
169
178
 
170
179
  Execute the agent with a sample input:
171
180
 
@@ -177,35 +186,51 @@ Execute the agent with a sample input:
177
186
  [2025-04-29 12:32:07,689][INFO] ((), {'topic': 'UiPath', 'report': "..."})
178
187
  ```
179
188
 
180
- This command runs your agent locally and generates the report at standard output.
181
-
182
- ## Pack and Publish the agent on UiPath Cloud Platform
189
+ This command runs your agent locally and displays the report in the standard output.
183
190
 
184
- Follow these steps to publish and run your agent on UiPath Cloud Platform:
191
+ /// warning
192
+ Depending on the shell you are using, it may be necessary to escape the input json:
185
193
 
186
- ### Authenticate with UiPath
194
+ /// tab | Bash/ZSH/PowerShell
195
+ ```console
196
+ uipath run agent '{"topic": "UiPath"}'
197
+ ```
198
+ ///
187
199
 
188
- <!-- termynal -->
200
+ /// tab | Windows CMD
201
+ ```console
202
+ uipath run agent "{""topic"": ""UiPath""}"
203
+ ```
204
+ ///
189
205
 
190
- ```shell
191
- > uipath auth
192
- Authenticating with UiPath ...
193
- 🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
194
- 👇 Select tenant:
195
- 0: Tenant1
196
- 1: Tenant2
197
- Select tenant number: 0
198
- Selected tenant: Tenant1
199
- ✓ Authentication successful.
206
+ /// tab | Windows PowerShell
207
+ ```console
208
+ uipath run agent '{\"topic\":\"uipath\"}'
200
209
  ```
210
+ ///
211
+
212
+ ///
213
+
214
+ /// info
215
+
216
+ Run command also accepts a _.json_ file as input:
217
+ >uipath run agent -f <path_to_input_json_file>
201
218
 
202
- ### (Optional) Update author details in `pyproject.toml`
219
+ ///
220
+
221
+ ## Deploy The Agent On UiPath Cloud Platform
222
+
223
+ Follow these steps to publish and run your agent on UiPath Cloud Platform:
224
+
225
+ ### (Optional) Customize The Package
226
+
227
+ Update author details in `pyproject.toml`:
203
228
 
204
229
  ```toml
205
230
  authors = [{ name = "Your Name", email = "your.name@example.com" }]
206
231
  ```
207
232
 
208
- ### Package your project:
233
+ ### Package Your Project
209
234
 
210
235
  <!-- termynal -->
211
236
 
@@ -219,7 +244,7 @@ Authors : Your Name
219
244
  ✓ Project successfully packaged.
220
245
  ```
221
246
 
222
- ### Publish to your workspace
247
+ ### Publish To My Workspace
223
248
 
224
249
  <!-- termynal -->
225
250
 
@@ -234,13 +259,19 @@ Authors : Your Name
234
259
 
235
260
  > Please note that a process will be auto-created only upon publishing to **my-workspace** package feed.
236
261
 
237
- ### Configure environment variables using the provided link
238
-
239
- ![Set Environment Variables](quick_start_images/cloud_env_var.png)
262
+ Set the environment variables using the provided link:
240
263
 
241
- ## Invoke the Agent on UiPath Cloud Platform
264
+ <picture data-light="quick_start_images/cloud_env_var_light.png" data-dark="quick_start_images/cloud_env_var_dark.png">
265
+ <source
266
+ media="(prefers-color-scheme: dark)"
267
+ srcset="quick_start_images/cloud_env_var_dark.png"
268
+ />
269
+ <img
270
+ src="quick_start_images/cloud_env_var_light.png"
271
+ />
272
+ </picture>
242
273
 
243
- Invoke the agent in UiPath Cloud Platform:
274
+ ## Invoke The Agent On UiPath Cloud Platform
244
275
 
245
276
  <!-- termynal -->
246
277
 
@@ -254,7 +285,17 @@ Invoke the agent in UiPath Cloud Platform:
254
285
 
255
286
  Use the provided link to monitor your job and view detailed traces.
256
287
 
257
- ## Next steps
288
+ <picture data-light="quick_start_images/invoke_output_light.png" data-dark="quick_start_images/invoke_output_dark.png">
289
+ <source
290
+ media="(prefers-color-scheme: dark)"
291
+ srcset="quick_start_images/invoke_output_dark.png"
292
+ />
293
+ <img
294
+ src="quick_start_images/invoke_output_light.png"
295
+ />
296
+ </picture>
297
+
298
+ ## Next Steps
258
299
 
259
300
  Congratulations! You have successfully set up, created, published, and run a UiPath LangChain Agent. 🚀
260
301
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "uipath-langchain"
3
- version = "0.0.103"
3
+ version = "0.0.105"
4
4
  description = "UiPath Langchain"
5
5
  readme = { file = "README.md", content-type = "text/markdown" }
6
6
  requires-python = ">=3.10"
@@ -12,8 +12,6 @@ dependencies = [
12
12
  "langchain-community>=0.3.21",
13
13
  "langchain-openai>=0.3.3",
14
14
  "langchain>=0.3.4",
15
- "requests>=2.23.3",
16
- "types-requests>=2.32.0.20241016",
17
15
  "pydantic-settings>=2.6.0",
18
16
  "python-dotenv>=1.0.1",
19
17
  "httpx>=0.27.0",
@@ -38,6 +36,7 @@ register = "uipath_langchain.middlewares:register_middleware"
38
36
  [project.urls]
39
37
  Homepage = "https://uipath.com"
40
38
  Repository = "https://github.com/UiPath/uipath-langchain-python"
39
+ Documentation = "https://uipath.github.io/uipath-python/"
41
40
 
42
41
  [build-system]
43
42
  requires = ["hatchling"]
@@ -11,6 +11,8 @@ from uipath import UiPath
11
11
 
12
12
  class ContextGroundingRetriever(BaseRetriever):
13
13
  index_name: str
14
+ folder_path: Optional[str] = None
15
+ folder_key: Optional[str] = None
14
16
  uipath_sdk: Optional[UiPath] = None
15
17
  number_of_results: Optional[int] = 10
16
18
 
@@ -24,6 +26,8 @@ class ContextGroundingRetriever(BaseRetriever):
24
26
  self.index_name,
25
27
  query,
26
28
  self.number_of_results if self.number_of_results is not None else 10,
29
+ folder_path=self.folder_path,
30
+ folder_key=self.folder_key,
27
31
  )
28
32
 
29
33
  return [
@@ -47,6 +51,8 @@ class ContextGroundingRetriever(BaseRetriever):
47
51
  self.index_name,
48
52
  query,
49
53
  self.number_of_results if self.number_of_results is not None else 10,
54
+ folder_path=self.folder_path,
55
+ folder_key=self.folder_key,
50
56
  )
51
57
 
52
58
  return [
@@ -0,0 +1,3 @@
1
+ from .context_grounding_vectorstore import ContextGroundingVectorStore
2
+
3
+ __all__ = ["ContextGroundingVectorStore"]
@@ -16,6 +16,7 @@ from langchain_core.messages import HumanMessage, SystemMessage
16
16
  from langchain_core.tools import tool
17
17
  from pydantic import BaseModel, ValidationError
18
18
 
19
+ from uipath_langchain._utils._settings import UiPathCachedPathsSettings
19
20
  from uipath_langchain.chat import (
20
21
  UiPathAzureChatOpenAI,
21
22
  UiPathChat,
@@ -24,7 +25,6 @@ from uipath_langchain.embeddings import (
24
25
  UiPathAzureOpenAIEmbeddings,
25
26
  UiPathOpenAIEmbeddings,
26
27
  )
27
- from uipath_langchain.utils._settings import UiPathCachedPathsSettings
28
28
 
29
29
  test_cache_settings = UiPathCachedPathsSettings(
30
30
  CACHED_COMPLETION_DB="tests/llm_cache/tests_uipath_cache.sqlite",